@justifi/webcomponents 6.1.1 → 6.2.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-DCRzZf0w.js → Business-DWHy_-z9.js} +299 -9
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +132 -0
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-b8P-0T0O.js → business-additional-questions-schema-CetDMUp7.js} +26 -4
- package/dist/cjs/{business-form-options-CMII7nIK.js → business-form-options-e9UFw4P-.js} +1 -1
- package/dist/cjs/business-identity-schema-Cd0tvfJr.js +101 -0
- package/dist/cjs/{business.service-Cj_NUZsr.js → business.service-DRZurAMP.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-CEZpYUNV.js → check-pkg-version-DHOBcjoo.js} +2 -2
- package/dist/cjs/{checkout.service-Bc8L9ixO.js → checkout.service-vZbSE3A3.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -4
- package/dist/cjs/country-config-MCOhn8o3.js +68 -0
- package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +2 -22
- package/dist/cjs/{dispute.service-DhO_tuDc.js → dispute.service-DV9a61Tu.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +25 -15
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +119 -0
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +23 -4
- package/dist/cjs/{form-input-masks-DgXd0f4V.js → form-input-masks-BnNFJ3IJ.js} +9 -4
- package/dist/cjs/{get-business-o5jPq_ME.js → get-business-D9ZHyPem.js} +1 -1
- package/dist/cjs/{get-payment-details-BinT-ZEP.js → get-payment-details-AYzxPu-X.js} +1 -1
- package/dist/cjs/{get-subaccounts-BoTVdl7v.js → get-subaccounts-C_KD197w.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/{input-handlers-DYl_0IwC.js → input-handlers-D6QMwPTB.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +121 -64
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -18
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +8 -10
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +16 -17
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -12
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +14 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -7
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -8
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -9
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +22 -13
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -7
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +36 -21
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -7
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -7
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -6
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -7
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -8
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -7
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -5
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D2S7GRvh.js → package-BacF7Q_h.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -11
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-C9thkR4g.js → payment.service-1t60I69m.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-CGZxpQMq.js → payout.service-CQEXfufW.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -4
- package/dist/cjs/{schema-validations-Bj7eYNO8.js → schema-validations-0mjPveQ0.js} +45 -6
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -5
- package/dist/cjs/{terminal-orders-table-7ew1vCKk.js → terminal-orders-table-B4ZXHj3w.js} +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-BkKxH-k4.js → terminal.service-BlW-CJ67.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/BankAccount.js +4 -0
- package/dist/collection/api/Business.js +16 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +36 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +6 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +46 -9
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +32 -10
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +26 -6
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +29 -3
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +48 -6
- package/dist/collection/components/business-forms/owner-form/owner-form.js +26 -1
- 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-canada.js +88 -0
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +50 -0
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +36 -5
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +26 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +47 -7
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +26 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +26 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +43 -4
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +33 -4
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +26 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +101 -0
- 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 +35 -10
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +26 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +39 -20
- 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 +34 -6
- 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/payment-provisioning/test/mockBusiness.js +52 -0
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +41 -19
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +74 -39
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +27 -4
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +7 -4
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +53 -24
- package/dist/collection/components/business-forms/schemas/schema-validations.js +41 -4
- package/dist/collection/components/business-forms/utils/country-config.js +47 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -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 +3 -4
- 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 +8 -8
- 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/payout-details/payout-details-core.js +3 -3
- 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 +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
- 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/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/country-codes.js +5 -0
- package/dist/collection/utils/form-input-masks.js +8 -0
- package/dist/collection/utils/province-options.js +20 -0
- package/dist/docs.json +1129 -147
- package/dist/esm/{Api-DhiA2e_P.js → Api-K9QH1Aki.js} +1 -1
- package/dist/esm/{Business-BCoP0TAV.js → Business-B5rtFhtR.js} +290 -3
- package/dist/esm/{Refund-B-iOTRxz.js → Refund-L_muwEAh.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-CtdO-tEY.js → badge-B8fF98jp.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +125 -0
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/{business-additional-questions-schema-9FAJSx_D.js → business-additional-questions-schema-DSvdNuI1.js} +26 -5
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-form-options-CgssATyg.js → business-form-options-D6s5H4RI.js} +2 -2
- package/dist/esm/business-identity-schema-mN4VhA1v.js +94 -0
- package/dist/esm/{business.service-D55OVyco.js → business.service-BJcGEUDH.js} +3 -3
- package/dist/esm/{button-DtTaQHMK.js → button-DZoLTGMB.js} +1 -1
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-Ba95SWgY.js → check-pkg-version-D2zmagAo.js} +4 -4
- package/dist/esm/{checkout.service-fwbqSq8g.js → checkout.service-aymuZDC9.js} +3 -3
- package/dist/esm/checkouts-list-core.entry.js +9 -11
- package/dist/esm/{checkouts-table-B6gGDtOr.js → checkouts-table-B8k-Aylm.js} +3 -3
- package/dist/esm/country-config-BQ4D46Lb.js +64 -0
- package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +3 -22
- package/dist/esm/{dispute.service-Cdq3_yRo.js → dispute.service-DiPbsswm.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +25 -15
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-bprS-t9d.js → form-control-error-text-BmD6bGbR.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-Bvnp-IAG.js → form-control-help-text-DbIhIcc6.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_3.entry.js +115 -0
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +25 -7
- package/dist/esm/{form-input-masks-B-iV5cYd.js → form-input-masks-CVaOFfrI.js} +9 -3
- package/dist/esm/{get-business-Crb6P-iI.js → get-business-Xt7B5dSo.js} +1 -1
- package/dist/esm/{get-payment-details-sGoWyAat.js → get-payment-details-DcC5v85s.js} +2 -2
- package/dist/esm/{get-subaccounts-BsJSlShO.js → get-subaccounts-CMJMDwSP.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-C1Hnxki8.js → header-1-umkpdspt.js} +1 -1
- package/dist/esm/{header-3-Bq8fpjm-.js → header-3-CD5K5vCa.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{input-handlers-CX6mSvOM.js → input-handlers-D3y0TzH9.js} +1 -1
- package/dist/esm/{insurance-state-CVme82j7.js → insurance-state-sR5DrCdu.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +127 -70
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +22 -23
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-apple-pay_8.entry.js +16 -18
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +22 -23
- package/dist/esm/justifi-business-details.entry.js +10 -12
- package/dist/esm/justifi-business-form.entry.js +23 -19
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +15 -7
- package/dist/esm/justifi-checkout.entry.js +9 -11
- package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -7
- package/dist/esm/justifi-checkouts-list.entry.js +12 -14
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +8 -10
- package/dist/esm/justifi-dispute-notification_3.entry.js +13 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +8 -10
- package/dist/esm/justifi-order-terminals.entry.js +12 -14
- package/dist/esm/justifi-owner-form_3.entry.js +27 -18
- package/dist/esm/justifi-payment-details.entry.js +10 -12
- package/dist/esm/justifi-payment-provisioning-core.entry.js +38 -23
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -10
- package/dist/esm/justifi-payment-transactions-list.entry.js +11 -13
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +12 -14
- package/dist/esm/justifi-payout-details.entry.js +9 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +11 -13
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +13 -15
- package/dist/esm/justifi-refund-payment.entry.js +11 -13
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -11
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +10 -12
- package/dist/esm/justifi-terminals-list-filters.entry.js +5 -7
- package/dist/esm/justifi-terminals-list.entry.js +12 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Csfiax9X.js → package-C7cvPZSk.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +4 -4
- package/dist/esm/{parts-xDbRW9xn.js → parts-Dj_zevuD.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -18
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment.service-BoQ1MW1k.js → payment.service-C0xnydJ8.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +10 -12
- package/dist/esm/{payments-status-cvtVmtY5.js → payments-status-CzazNnFv.js} +1 -1
- package/dist/esm/{payments-table-D_BlyU1F.js → payments-table-BPKxBAJ0.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-xcBdom3q.js → payout.service-Cl4yxnrx.js} +3 -3
- package/dist/esm/payouts-list-core.entry.js +10 -12
- package/dist/esm/{payouts-status-D-vjrqBb.js → payouts-status-rKlX41bK.js} +1 -1
- package/dist/esm/{payouts-table-Clj8YGLV.js → payouts-table-C6ZDcd_-.js} +3 -3
- package/dist/esm/{schema-validations-B9dmY7ME.js → schema-validations-BFoU1cR8.js} +41 -6
- package/dist/esm/{skeleton-B8EUwt4b.js → skeleton-BEoPu3My.js} +1 -1
- package/dist/esm/{spinner-CYXkn1fh.js → spinner-Ac-w5zWg.js} +1 -1
- package/dist/esm/{table-Bj20uWfu.js → table-BCwizIf9.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +9 -11
- package/dist/esm/{terminal-orders-table-DzBpIW8i.js → terminal-orders-table-BBQsoUh8.js} +5 -5
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-l6zTIPZ3.js → terminal.service-mwaS-Mbj.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +9 -11
- package/dist/esm/{terminals-table-BMS5tazC.js → terminals-table-ByiFdTfy.js} +3 -3
- package/dist/esm/{utils-BOijEGPV.js → utils-CIaHqjQt.js} +1 -1
- package/dist/esm/{utils-DRwofES0.js → utils-KBIYAa0D.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +290 -3
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs-canada.d.ts +11 -0
- package/dist/module/bank-account-form-inputs-canada.js +6 -0
- package/dist/module/bank-account-form-inputs-canada2.js +68 -0
- package/dist/module/bank-account-form-inputs2.js +9 -2
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account-read-only-value.d.ts +11 -0
- package/dist/module/bank-account-read-only-value.js +6 -0
- package/dist/module/bank-account-read-only-value2.js +33 -0
- package/dist/module/bank-account.js +2 -2
- package/dist/module/billing-form-full.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-address-schema.js +40 -20
- package/dist/module/business-bank-account-form-step-core.js +101 -48
- package/dist/module/business-bank-account-form-step.js +18 -5
- package/dist/module/business-core-info-form-step-core.js +22 -7
- package/dist/module/business-core-info-form-step.js +2 -1
- package/dist/module/business-core-info-schema.js +26 -5
- package/dist/module/business-core-info.js +12 -4
- package/dist/module/business-identity-schema.js +52 -25
- package/dist/module/business-owners-form-step-core.js +20 -13
- package/dist/module/business-owners-form-step.js +22 -15
- package/dist/module/business-representative-form-inputs.js +34 -17
- package/dist/module/business-representative-form-step-core.js +29 -18
- package/dist/module/business-representative-form-step.js +24 -17
- package/dist/module/business-representative.js +37 -19
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/country-config.js +64 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/form-address-fields.js +65 -0
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/form-input-masks.js +9 -3
- package/dist/module/get-business.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form.js +16 -14
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/input-handlers.js +1 -1
- package/dist/module/justifi-business-form.js +41 -29
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-form-address-fields.d.ts +11 -0
- package/dist/module/justifi-form-address-fields.js +6 -0
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-provisioning.js +67 -49
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/legal-address-form-step-core.js +26 -19
- package/dist/module/legal-address-form-step.js +16 -9
- package/dist/module/legal-address-form.js +18 -15
- package/dist/module/modular-checkout.js +1 -1
- package/dist/module/owner-form-core2.js +23 -15
- package/dist/module/owner-form-inputs2.js +34 -15
- package/dist/module/owner-form.js +20 -13
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-core.js +104 -69
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +75 -54
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/schema-validations.js +41 -6
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +1 -1
- package/dist/types/api/BankAccount.d.ts +6 -0
- package/dist/types/api/Business.d.ts +9 -0
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +3 -0
- package/dist/types/components/business-forms/business-form/business-form.d.ts +2 -0
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +4 -1
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +2 -0
- package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +2 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +3 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +5 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +5 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +3 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +8 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +4 -2
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +12 -0
- package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +54 -2
- package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +14 -16
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +67 -3
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +165 -7
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +122 -2
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +5 -0
- package/dist/types/components.d.ts +119 -10
- package/dist/types/utils/country-codes.d.ts +4 -0
- package/dist/types/utils/form-input-masks.d.ts +1 -0
- package/dist/types/utils/province-options.d.ts +5 -0
- package/dist/webcomponents/p-005a79d5.entry.js +1 -0
- package/dist/webcomponents/p-07f7aaf6.entry.js +1 -0
- package/dist/webcomponents/p-0926c397.entry.js +1 -0
- package/dist/webcomponents/p-14e26a6c.entry.js +1 -0
- package/dist/webcomponents/{p-0eb69f41.entry.js → p-1c362f36.entry.js} +1 -1
- package/dist/webcomponents/{p-0217783c.entry.js → p-221ec54e.entry.js} +4 -4
- package/dist/webcomponents/p-24621c40.entry.js +1 -0
- package/dist/webcomponents/p-33bf5532.entry.js +1 -0
- package/dist/webcomponents/p-3467fa38.entry.js +1 -0
- package/dist/webcomponents/p-3af0b0ad.entry.js +1 -0
- package/dist/webcomponents/p-3b43f8c0.entry.js +1 -0
- package/dist/webcomponents/p-3f7703bf.entry.js +1 -0
- package/dist/webcomponents/p-4180a11b.entry.js +1 -0
- package/dist/webcomponents/p-4d243123.entry.js +1 -0
- package/dist/webcomponents/p-4d6e0ebe.entry.js +1 -0
- package/dist/webcomponents/p-5277f2a6.entry.js +1 -0
- package/dist/webcomponents/p-54cea29e.entry.js +1 -0
- package/dist/webcomponents/{p-7c8deca8.entry.js → p-580f3bb6.entry.js} +1 -1
- package/dist/webcomponents/p-641100ac.entry.js +1 -0
- package/dist/webcomponents/p-65090485.entry.js +1 -0
- package/dist/webcomponents/p-66833631.entry.js +1 -0
- package/dist/webcomponents/p-68aeb5bd.entry.js +1 -0
- package/dist/webcomponents/p-694b24e5.entry.js +1 -0
- package/dist/webcomponents/p-6a247ab5.entry.js +1 -0
- package/dist/webcomponents/p-6a910d9b.entry.js +1 -0
- package/dist/webcomponents/p-6d61092c.entry.js +1 -0
- package/dist/webcomponents/p-72f5e234.entry.js +1 -0
- package/dist/webcomponents/p-7498759d.entry.js +1 -0
- package/dist/webcomponents/p-82723f07.entry.js +1 -0
- package/dist/webcomponents/p-86372164.entry.js +1 -0
- package/dist/webcomponents/{p-b608add9.entry.js → p-8896ab68.entry.js} +1 -1
- package/dist/webcomponents/p-89052ce0.entry.js +1 -0
- package/dist/webcomponents/{p-ClvhB3WW.js → p-890S0Nwr.js} +1 -1
- package/dist/webcomponents/{p-37a93597.entry.js → p-8a156528.entry.js} +1 -1
- package/dist/webcomponents/p-8a68be8f.entry.js +1 -0
- package/dist/webcomponents/p-91b09245.entry.js +1 -0
- package/dist/webcomponents/p-9ce44689.entry.js +1 -0
- package/dist/webcomponents/p-B5rtFhtR.js +1 -0
- package/dist/webcomponents/{p-CEk3bv0x.js → p-B9MN_vv4.js} +1 -1
- package/dist/webcomponents/p-BIcS6lTe.js +1 -0
- package/dist/webcomponents/{p-BBx_EQqR.js → p-BRbqaU66.js} +1 -1
- package/dist/webcomponents/{p-Bgnhf5c9.js → p-BS7OgSQe.js} +1 -1
- package/dist/webcomponents/p-BT473_5I.js +1 -0
- package/dist/webcomponents/p-BXMAoCNA.js +1 -0
- package/dist/webcomponents/{p-B6IWa9Ph.js → p-BYrSeoci.js} +1 -1
- package/dist/webcomponents/{p-CCmDcLao.js → p-BdmYH_IK.js} +1 -1
- package/dist/webcomponents/p-BkaPXFTl.js +1 -0
- package/dist/webcomponents/{p-hbWSMN3O.js → p-Bm8T-MOQ.js} +1 -1
- package/dist/webcomponents/p-BwBb2Opu.js +1 -0
- package/dist/webcomponents/p-C6g4MbnB.js +1 -0
- package/dist/webcomponents/{p-1ydcg9ti.js → p-C77ElQ41.js} +1 -1
- package/dist/webcomponents/p-C7cvPZSk.js +1 -0
- package/dist/webcomponents/p-CJ9qo7_g.js +1 -0
- package/dist/webcomponents/{p-C98BC5W5.js → p-CPKSE7M4.js} +1 -1
- package/dist/webcomponents/{p-yH3TC3ZQ.js → p-CPpUGsw5.js} +1 -1
- package/dist/webcomponents/p-CQQ0H4Pb.js +1 -0
- package/dist/webcomponents/p-CTAOJGVx.js +1 -0
- package/dist/webcomponents/p-CVaOFfrI.js +1 -0
- package/dist/webcomponents/p-CVtpEQBE.js +1 -0
- package/dist/webcomponents/{p-l8F_7Ihw.js → p-CeSmGv6o.js} +1 -1
- package/dist/webcomponents/p-D9Yus-je.js +1 -0
- package/dist/webcomponents/p-DIdnZUSh.js +1 -0
- package/dist/webcomponents/{p-CH8Y3GSr.js → p-DSCBoCn-.js} +1 -1
- package/dist/webcomponents/p-DfKxeSrC.js +1 -0
- package/dist/webcomponents/{p-xDbRW9xn.js → p-Dj_zevuD.js} +1 -1
- package/dist/webcomponents/p-DqPvh0aN.js +1 -0
- package/dist/webcomponents/p-DxVCqvBt.js +1 -0
- package/dist/webcomponents/p-DxnXyWPn.js +1 -0
- package/dist/webcomponents/p-Dy3-IlQ3.js +1 -0
- package/dist/webcomponents/p-Dyk0thEr.js +1 -0
- package/dist/webcomponents/p-DzWLLt4t.js +1 -0
- package/dist/webcomponents/{p-CmBCj61h.js → p-F6TcNeK4.js} +1 -1
- package/dist/webcomponents/{p-au49QgoI.js → p-IYf7zn5J.js} +1 -1
- package/dist/webcomponents/{p-C0wTyoTh.js → p-UUJudj_5.js} +1 -1
- package/dist/webcomponents/{p-0cac8468.entry.js → p-a2344efb.entry.js} +1 -1
- package/dist/webcomponents/p-a42ec25b.entry.js +1 -0
- package/dist/webcomponents/p-a81f9fc3.entry.js +1 -0
- package/dist/webcomponents/p-b4b5dd24.entry.js +1 -0
- package/dist/webcomponents/p-b72794e3.entry.js +1 -0
- package/dist/webcomponents/p-be53e425.entry.js +1 -0
- package/dist/webcomponents/p-c4d919be.entry.js +1 -0
- package/dist/webcomponents/p-c4fb2fe8.entry.js +1 -0
- package/dist/webcomponents/p-c6e64ed5.entry.js +1 -0
- package/dist/webcomponents/p-c796f813.entry.js +1 -0
- package/dist/webcomponents/p-c8656d20.entry.js +1 -0
- package/dist/webcomponents/{p-0cf71cbd.entry.js → p-c8e94ab9.entry.js} +1 -1
- package/dist/webcomponents/p-c9bed02a.entry.js +1 -0
- package/dist/webcomponents/p-cca865be.entry.js +1 -0
- package/dist/webcomponents/p-cd108cae.entry.js +1 -0
- package/dist/webcomponents/p-cd20dc8f.entry.js +1 -0
- package/dist/webcomponents/p-cfd3035e.entry.js +1 -0
- package/dist/webcomponents/p-d1e99aac.entry.js +1 -0
- package/dist/webcomponents/p-d50f8328.entry.js +1 -0
- package/dist/webcomponents/p-d7558874.entry.js +1 -0
- package/dist/webcomponents/p-d8bef4b7.entry.js +1 -0
- package/dist/webcomponents/p-d8c2cea4.entry.js +1 -0
- package/dist/webcomponents/p-d8ef1d2b.entry.js +1 -0
- package/dist/webcomponents/p-e4e6f3b8.entry.js +1 -0
- package/dist/webcomponents/p-e60e7f6a.entry.js +1 -0
- package/dist/webcomponents/{p-2d9b817b.entry.js → p-ea746fa0.entry.js} +1 -1
- package/dist/webcomponents/p-f222426b.entry.js +1 -0
- package/dist/webcomponents/p-f72f67ef.entry.js +1 -0
- package/dist/webcomponents/p-fdf5a349.entry.js +1 -0
- package/dist/webcomponents/{p-C8k7a6D-.js → p-i--LPP1s.js} +1 -1
- package/dist/webcomponents/p-sCHf--Vc.js +1 -0
- package/dist/webcomponents/{p-DdZLLkQ5.js → p-ty1sI-fI.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -21
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +0 -112
- package/dist/cjs/business-identity-schema-aFUle0C9.js +0 -51
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +0 -107
- package/dist/cjs/helpers-B5OCqlIM.js +0 -35
- package/dist/cjs/state-options-CIT9xdTz.js +0 -246
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +0 -107
- package/dist/esm/business-identity-schema-CDJzknbg.js +0 -48
- package/dist/esm/form-control-number-masked_2.entry.js +0 -104
- package/dist/esm/helpers-Mu7LQT-w.js +0 -29
- package/dist/esm/state-options-BX8GieXu.js +0 -244
- package/dist/module/helpers.js +0 -29
- package/dist/module/state-options.js +0 -244
- package/dist/webcomponents/p-000d6b5d.entry.js +0 -1
- package/dist/webcomponents/p-0256af65.entry.js +0 -1
- package/dist/webcomponents/p-0af5269e.entry.js +0 -1
- package/dist/webcomponents/p-0f16c00f.entry.js +0 -1
- package/dist/webcomponents/p-0f47f052.entry.js +0 -1
- package/dist/webcomponents/p-1872ee94.entry.js +0 -1
- package/dist/webcomponents/p-281ea1f6.entry.js +0 -1
- package/dist/webcomponents/p-2b568e8e.entry.js +0 -1
- package/dist/webcomponents/p-2d300faa.entry.js +0 -1
- package/dist/webcomponents/p-328117e4.entry.js +0 -1
- package/dist/webcomponents/p-32978110.entry.js +0 -1
- package/dist/webcomponents/p-40c3d17c.entry.js +0 -1
- package/dist/webcomponents/p-44ec2d88.entry.js +0 -1
- package/dist/webcomponents/p-44f9739e.entry.js +0 -1
- package/dist/webcomponents/p-47997bc2.entry.js +0 -1
- package/dist/webcomponents/p-50701f16.entry.js +0 -1
- package/dist/webcomponents/p-5235230f.entry.js +0 -1
- package/dist/webcomponents/p-526b7442.entry.js +0 -1
- package/dist/webcomponents/p-5aae36f3.entry.js +0 -1
- package/dist/webcomponents/p-5bd3d86e.entry.js +0 -1
- package/dist/webcomponents/p-5c0c35ac.entry.js +0 -1
- package/dist/webcomponents/p-78cb62a8.entry.js +0 -1
- package/dist/webcomponents/p-7dc9ef8a.entry.js +0 -1
- package/dist/webcomponents/p-7eb4b9b4.entry.js +0 -1
- package/dist/webcomponents/p-84551ee4.entry.js +0 -1
- package/dist/webcomponents/p-854b3db0.entry.js +0 -1
- package/dist/webcomponents/p-8663e8bd.entry.js +0 -1
- package/dist/webcomponents/p-8S_ROmnq.js +0 -1
- package/dist/webcomponents/p-8b3245c4.entry.js +0 -1
- package/dist/webcomponents/p-8ca21fab.entry.js +0 -1
- package/dist/webcomponents/p-8f8dfd4b.entry.js +0 -1
- package/dist/webcomponents/p-9365c7c2.entry.js +0 -1
- package/dist/webcomponents/p-9ad7d724.entry.js +0 -1
- package/dist/webcomponents/p-B-iV5cYd.js +0 -1
- package/dist/webcomponents/p-BX8GieXu.js +0 -1
- package/dist/webcomponents/p-BjNuRWXK.js +0 -1
- package/dist/webcomponents/p-BlJnA265.js +0 -1
- package/dist/webcomponents/p-BoQ6_4Ks.js +0 -1
- package/dist/webcomponents/p-C9EQ459H.js +0 -1
- package/dist/webcomponents/p-C9iide2W.js +0 -1
- package/dist/webcomponents/p-CCLgieAN.js +0 -1
- package/dist/webcomponents/p-Csfiax9X.js +0 -1
- package/dist/webcomponents/p-D0Peuz-m.js +0 -1
- package/dist/webcomponents/p-D6BImiVi.js +0 -1
- package/dist/webcomponents/p-DH8F0bsw.js +0 -1
- package/dist/webcomponents/p-DQZ5VHTZ.js +0 -1
- package/dist/webcomponents/p-DWn9BiNn.js +0 -1
- package/dist/webcomponents/p-DfV3dFDB.js +0 -1
- package/dist/webcomponents/p-Dt-vy9Le.js +0 -1
- package/dist/webcomponents/p-NAjz1Xfo.js +0 -1
- package/dist/webcomponents/p-PSJOKMWp.js +0 -1
- package/dist/webcomponents/p-RQzxYnz_.js +0 -1
- package/dist/webcomponents/p-T2yENPvU.js +0 -1
- package/dist/webcomponents/p-a10ae013.entry.js +0 -1
- package/dist/webcomponents/p-a8ad5f5c.entry.js +0 -1
- package/dist/webcomponents/p-a8e8d944.entry.js +0 -1
- package/dist/webcomponents/p-aa14cc74.entry.js +0 -1
- package/dist/webcomponents/p-ae8ae5bb.entry.js +0 -1
- package/dist/webcomponents/p-b3094b8f.entry.js +0 -1
- package/dist/webcomponents/p-baf0d3e7.entry.js +0 -1
- package/dist/webcomponents/p-bb53e2e9.entry.js +0 -1
- package/dist/webcomponents/p-bdf293f6.entry.js +0 -1
- package/dist/webcomponents/p-c089fb5f.entry.js +0 -1
- package/dist/webcomponents/p-c6dc30e2.entry.js +0 -1
- package/dist/webcomponents/p-d0a2035f.entry.js +0 -1
- package/dist/webcomponents/p-d1bceac6.entry.js +0 -1
- package/dist/webcomponents/p-d37d752e.entry.js +0 -1
- package/dist/webcomponents/p-d4476052.entry.js +0 -1
- package/dist/webcomponents/p-da1fb2a3.entry.js +0 -1
- package/dist/webcomponents/p-ddc0b742.entry.js +0 -1
- package/dist/webcomponents/p-e6011271.entry.js +0 -1
- package/dist/webcomponents/p-e6be4e19.entry.js +0 -1
- package/dist/webcomponents/p-eaefb320.entry.js +0 -1
- package/dist/webcomponents/p-ec9514f8.entry.js +0 -1
- package/dist/webcomponents/p-f11a74c3.entry.js +0 -1
- package/dist/webcomponents/p-f705fc49.entry.js +0 -1
- package/dist/webcomponents/p-fedfe376.entry.js +0 -1
- package/dist/webcomponents/p-ffefa09c.entry.js +0 -1
- package/dist/webcomponents/p-h5pyZngT.js +0 -1
- package/dist/webcomponents/p-tYuXMkCd.js +0 -1
- package/dist/webcomponents/p-wQgEEOq_.js +0 -1
|
@@ -1,53 +1,88 @@
|
|
|
1
|
-
import { object, mixed } from "yup";
|
|
1
|
+
import { object, mixed, string } from "yup";
|
|
2
|
+
import { CountryCode } from "../../../utils/country-codes";
|
|
2
3
|
import { EntityDocumentType } from "../../../api/Document";
|
|
3
|
-
import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation } from "./schema-validations";
|
|
4
|
+
import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation, } from "./schema-validations";
|
|
5
|
+
import { numbersOnlyRegex } from "./schema-helpers";
|
|
4
6
|
const checkExistingDocs = (documents, documentType) => {
|
|
5
7
|
return documents.some((doc) => doc.document_type === documentType);
|
|
6
8
|
};
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const buildCommonFieldRules = (allowOptionalFields) => {
|
|
10
|
+
if (allowOptionalFields) {
|
|
11
|
+
return {
|
|
12
|
+
bank_name: bankNameValidation.nullable(),
|
|
13
|
+
nickname: nicknameValidation.nullable(),
|
|
14
|
+
account_owner_name: identityNameValidation.nullable(),
|
|
15
|
+
account_type: accountTypeValidation.nullable(),
|
|
16
|
+
account_number: accountNumberValidation.nullable(),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
13
20
|
bank_name: bankNameValidation.required('Enter bank name'),
|
|
14
21
|
nickname: nicknameValidation.required('Enter nickname'),
|
|
15
22
|
account_owner_name: identityNameValidation.required('Enter account owner name'),
|
|
16
23
|
account_type: accountTypeValidation.required('Select account type'),
|
|
17
24
|
account_number: accountNumberValidation.required('Enter account number'),
|
|
18
|
-
|
|
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 {
|
|
19
39
|
voided_check: mixed().when('bank_statement', {
|
|
20
|
-
is: (val) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
then: (schema) => {
|
|
24
|
-
return schema.required(documentErrorText);
|
|
25
|
-
},
|
|
26
|
-
otherwise: (schema) => {
|
|
27
|
-
return schema.notRequired();
|
|
28
|
-
}
|
|
40
|
+
is: (val) => !val && !existingDocument,
|
|
41
|
+
then: (schema) => schema.required(documentErrorText),
|
|
42
|
+
otherwise: (schema) => schema.notRequired(),
|
|
29
43
|
}),
|
|
30
44
|
bank_statement: mixed().when('voided_check', {
|
|
31
|
-
is: (val) =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
then: (schema) => {
|
|
35
|
-
return schema.required(documentErrorText);
|
|
36
|
-
},
|
|
37
|
-
otherwise: (schema) => {
|
|
38
|
-
return schema.notRequired();
|
|
39
|
-
}
|
|
45
|
+
is: (val) => !val && !existingDocument,
|
|
46
|
+
then: (schema) => schema.required(documentErrorText),
|
|
47
|
+
otherwise: (schema) => schema.notRequired(),
|
|
40
48
|
}),
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
const buildUSARules = (allowOptionalFields) => {
|
|
52
|
+
if (allowOptionalFields) {
|
|
53
|
+
return { routing_number: routingNumberValidation.nullable() };
|
|
54
|
+
}
|
|
55
|
+
return { routing_number: routingNumberValidation.required('Enter routing number') };
|
|
56
|
+
};
|
|
57
|
+
const buildCANRules = (allowOptionalFields) => {
|
|
58
|
+
const institutionNumberValidation = string()
|
|
59
|
+
.length(3, 'Institution number must be 3 digits')
|
|
60
|
+
.matches(numbersOnlyRegex, 'Enter valid institution number');
|
|
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),
|
|
53
88
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { object } from "yup";
|
|
2
|
-
import { doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessClassificationValidation } from "./schema-validations";
|
|
3
|
-
|
|
1
|
+
import { object, string } from "yup";
|
|
2
|
+
import { doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessClassificationValidation, makeTaxIdValidation } from "./schema-validations";
|
|
3
|
+
import { CountryCode } from "../../../utils/country-codes";
|
|
4
|
+
import { countryLabels } from "../utils/country-config";
|
|
5
|
+
// Base schema (no country-specific rules for classification/tax id)
|
|
6
|
+
export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
4
7
|
const schema = object({
|
|
5
8
|
legal_name: businessNameValidation.required('Enter legal name'),
|
|
6
9
|
website_url: websiteUrlValidation.required('Enter business website url'),
|
|
@@ -9,7 +12,6 @@ export const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
9
12
|
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
10
13
|
classification: businessClassificationValidation.required('Select business classification'),
|
|
11
14
|
industry: industryValidation.required('Enter a business industry'),
|
|
12
|
-
tax_id: taxIdValidation.required('Enter valid tax ID (SSN or EIN) without dashes'),
|
|
13
15
|
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
|
|
14
16
|
});
|
|
15
17
|
const easySchema = object({
|
|
@@ -25,3 +27,24 @@ export const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
25
27
|
});
|
|
26
28
|
return allowOptionalFields ? easySchema : schema;
|
|
27
29
|
};
|
|
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,6 +1,9 @@
|
|
|
1
1
|
import { object } from "yup";
|
|
2
|
-
import {
|
|
2
|
+
import { businessCoreInfoSchemaUSA, businessCoreInfoSchemaCAN } from "./business-core-info-schema";
|
|
3
3
|
import { additionalQuestionsSchema } from "./business-additional-questions-schema";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
export const
|
|
4
|
+
import { identitySchemaUSA, identitySchemaCAN } from "./business-identity-schema";
|
|
5
|
+
import { addressSchemaUSA, addressSchemaCAN } from "./business-address-schema";
|
|
6
|
+
export const businessFormSchemaUSA = object(Object.assign(Object.assign({}, businessCoreInfoSchemaUSA().fields), { legal_address: addressSchemaUSA(), additional_questions: additionalQuestionsSchema(), representative: identitySchemaUSA('representative') }));
|
|
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;
|
|
@@ -1,26 +1,55 @@
|
|
|
1
1
|
import { object, string } from "yup";
|
|
2
|
-
import {
|
|
3
|
-
import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation } from "./schema-validations";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
import { addressSchemaUSA, addressSchemaCAN } from "./business-address-schema";
|
|
3
|
+
import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation, makeIdentityNumberValidation, } from "./schema-validations";
|
|
4
|
+
import { CountryCode } from "../../../utils/country-codes";
|
|
5
|
+
// Internal USA schemas
|
|
6
|
+
const schemaUSA = (role) => object({
|
|
7
|
+
name: identityNameValidation.required(`Enter ${role} name`),
|
|
8
|
+
title: identityTitleValidation.nullable(),
|
|
9
|
+
email: emailValidation.nullable(),
|
|
10
|
+
phone: phoneValidation.nullable(),
|
|
11
|
+
dob_full: dobValidation(role).nullable(),
|
|
12
|
+
ssn_last4: string().nullable(),
|
|
13
|
+
identification_number: ssnValidation.nullable(),
|
|
14
|
+
address: addressSchemaUSA(true),
|
|
15
|
+
});
|
|
16
|
+
const strictSchemaUSA = (role) => object({
|
|
17
|
+
name: identityNameValidation.required(`Enter ${role} name`),
|
|
18
|
+
title: identityTitleValidation.required(`Enter ${role} title`),
|
|
19
|
+
email: emailValidation.required(`Enter ${role} email`),
|
|
20
|
+
phone: phoneValidation.required('Enter phone number'),
|
|
21
|
+
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
22
|
+
ssn_last4: string().nullable(),
|
|
23
|
+
// ssn required unless last4 provided (handled inside ssnValidation)
|
|
24
|
+
identification_number: ssnValidation,
|
|
25
|
+
address: addressSchemaUSA(false),
|
|
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,
|
|
26
55
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { string } from "yup";
|
|
2
2
|
import StateOptions from "../../../utils/state-options";
|
|
3
|
-
import {
|
|
3
|
+
import { CountryCode } from "../../../utils/country-codes";
|
|
4
|
+
import { countryValidation } from "../utils/country-config";
|
|
5
|
+
import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, } from "../utils/business-form-options";
|
|
4
6
|
import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
|
|
5
7
|
// Common Validations
|
|
6
8
|
export const emailValidation = string()
|
|
@@ -21,9 +23,7 @@ export const doingBusinessAsValidation = string()
|
|
|
21
23
|
export const websiteUrlValidation = string()
|
|
22
24
|
.matches(urlRegex, 'Enter valid website url')
|
|
23
25
|
.transform(transformEmptyString);
|
|
24
|
-
export const businessClassificationValidation = string()
|
|
25
|
-
.oneOf(businessClassificationOptions.map((option) => option.value), 'Select business classification')
|
|
26
|
-
.transform(transformEmptyString);
|
|
26
|
+
export const businessClassificationValidation = string().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,6 +37,43 @@ 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);
|
|
40
77
|
export const dateOfIncorporationValidation = string()
|
|
41
78
|
.test('not-future', 'Date of incorporation cannot be in the future', (value) => {
|
|
42
79
|
const inputDate = new Date(value);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import StateOptions from "../../../utils/state-options";
|
|
2
|
+
import ProvinceOptions from "../../../utils/province-options";
|
|
3
|
+
import { businessClassificationOptions } from "./business-form-options";
|
|
4
|
+
export const countryLabels = {
|
|
5
|
+
USA: {
|
|
6
|
+
stateLabel: 'State',
|
|
7
|
+
postalLabel: 'Zip Code',
|
|
8
|
+
idNumberLabel: 'SSN',
|
|
9
|
+
idNumberLabelOptional: 'SSN (optional)',
|
|
10
|
+
identityHelpText: 'Enter your full Social Security Number. It is required for Federal OFAC check.',
|
|
11
|
+
taxIdLabel: 'Tax ID (EIN or SSN)',
|
|
12
|
+
taxIdHelpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes.",
|
|
13
|
+
},
|
|
14
|
+
CAN: {
|
|
15
|
+
stateLabel: 'Province',
|
|
16
|
+
postalLabel: 'Postal Code',
|
|
17
|
+
idNumberLabel: 'SIN',
|
|
18
|
+
idNumberLabelOptional: 'SIN (optional)',
|
|
19
|
+
identityHelpText: 'Enter your full Social Insurance Number.',
|
|
20
|
+
taxIdLabel: 'Business Number (BN)',
|
|
21
|
+
taxIdHelpText: 'Business Numbers (BN) are nine digits. Enter value without spaces or dashes.',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export const countryOptions = {
|
|
25
|
+
USA: {
|
|
26
|
+
stateOptions: StateOptions,
|
|
27
|
+
},
|
|
28
|
+
CAN: {
|
|
29
|
+
stateOptions: ProvinceOptions,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export const countryValidation = {
|
|
33
|
+
USA: {
|
|
34
|
+
postalRegex: /^[0-9]{5}(-[0-9]{4})?$/,
|
|
35
|
+
identityDigits: 9,
|
|
36
|
+
taxIdDigits: 9,
|
|
37
|
+
},
|
|
38
|
+
CAN: {
|
|
39
|
+
postalRegex: /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/,
|
|
40
|
+
identityDigits: 9,
|
|
41
|
+
taxIdDigits: 9,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export const getStateValues = (country) => (countryOptions[country].stateOptions || []).map((o) => o.value);
|
|
45
|
+
// Business structures (placeholder for CAN duplicates USA for now)
|
|
46
|
+
export const businessClassificationOptionsUSA = businessClassificationOptions;
|
|
47
|
+
export const businessClassificationOptionsCAN = businessClassificationOptions;
|
|
@@ -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: '1c142c117694002871cfcb0f9c419febda59ee1b' }, h(BankAccountFormSkeleton, { key: '06ee99086ab92d21f098bc266d9a3860cf0cfee3', isReady: this.isReady }), h("div", { key: 'f1ff30c399806c07854701c45698ee3b2a4d1492', 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: 'b9225fef945018fea713a58bf0f2d58b24069826', class: "row mb-3" }, h("iframe-input", { key: '116526dcaa3325b9f9de8c70f6a0dafdf9ec7ced', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: 'ef4856499b18125170f6b1117981cab79aa69914', class: "row" }, h("iframe-input", { key: 'ed3c4988a2eb856450f36ff225a91104f5c10422', 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() {
|
|
@@ -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: '663c1f9a452e8d33ccf001044c2f8b1ba041f80e' }, h(CardFormSkeleton, { key: '4c0c267f180ab6c16e0f524631b7fef3c212a2c5', isReady: this.isReady }), h("div", { key: '5ee9adfcb131adbc972ea9c1806886534185d462', 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: 'f1c7b6b7b23870ba0d39d08e04c113f464be2ea9', class: "mb-3" }, h("iframe-input", { key: 'dcd776b12d26c6561d5b630c09783e0c9c71f658', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: 'f76687d1aad013195aec06f0fec3166aa0d0ba71', class: "d-flex align-items-start" }, h("div", { key: '8321d1eaa1c1fee49106ca8a88f31b723d69d328', class: "flex-fill me-3" }, h("iframe-input", { key: 'f3740ecace8a988bf87475861fc5383920044e15', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '1b689045613f137cb4dfe41bae400dec27a93ae9', class: "flex-fill me-3" }, h("iframe-input", { key: '91d5b86f0de32c2635d3569dabd17230c1062c28', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: '78f69077b9cc4c55694ee0dc3cbf43cc09de74a3', class: "flex-fill" }, h("iframe-input", { key: 'af2bb37ec9a2386dac4ebc17f4296e280c865271', 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: '40765f54a977fb2e8e450eba0bf9731132ae4897' }, h("justifi-modular-checkout", { key: '3e698888a43c585749644d874dd49510889b04ca', 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: '2491242f0619ea24fbd0e50fbdda4cc2bad9915f', class: "row gy-3 jfi-checkout-core" }, h("div", { key: 'a965de56c5190e62bbad82116874c78c57f9d9c6', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: 'ad29fd4619a5bf9e38cbca2e24f8c6818419c022', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '4b1691f7f54a8e83f649a3d1346ec5e0f4ebb588' }, h("justifi-checkout-summary", { key: '8ea50acbcd67ea9f26dbdf74f3a0a30062926364' }))), h("div", { key: 'b024b6c6debc74443abca6b7776c29ce0253da34', class: "col-12 mt-4" }, h("slot", { key: '00b9e18b4fb5278085a3752cdd009d29b0a97a04', name: "insurance" })), h("div", { key: '7dac621b116926cbd860ca975aa642bc207fc62e', class: "col-12 mt-4" }, h("justifi-header", { key: '228d89e8fc31e9e0d6e67907b45f74b8af601e30', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '6cc7b7a742f679029f40d8c64c9d59004604f67b', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'd5ca29544817acbd96c6cff74de27ed13b9ac42f', class: "d-flex flex-column" }, h("section", { key: 'd149835076b70d73c61cfa6e219ac613cf93e817' }, h("div", { key: 'c4562096a2bbd0bacb907c1bbb5cf741d5c77cb3' }, h("justifi-saved-payment-methods", { key: '077666867b456945c6da965a2ebebfd2faaa66b9' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '7db9e4f2bc82ed36dce329e83c4fbbfea23aa615', class: "mb-3" }, h("justifi-apple-pay", { key: '50f02bd90d1f3ca1d43a2d027a596382b2e0b589' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '41b15052934bd38c021de57e35d116fcf756e996', 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: '19669551d9835b62b02d38308f713f255fbf5276', 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: 'adce7f493b7b17d315c839290e04e1f89b7b033a', 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: 'bcb348f1d16b64ca7bc9cb30e5dbe7bccc84ddd6', class: "mt-4" }, h("justifi-button", { key: 'f1fbd73274ea2d0674ae4979fab09b142446ad4e', 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: 'e40e77b8ef70b343c870a4cb0b6cf3fa51543ff9' }, h("form-control-checkbox", { key: '1429e670405e0d43eef2d3b5ed2d071db339129d', 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: '2636f9038b83a384a2a3bc4bbc7695ff237a6584', class: "payment-method" }, h("div", { key: '2995201b40f93a916fe6a32c2d27bc43cd22d8d1', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '7f8382f0d3cbc596c329fc32badc6c4b40e4493f', 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: 'a227a356ba08e39e4b60849d8615a5b1cd845739' }, h(TableComponent, { key: '51b96d4be5773975397eadfc6c3c0ec983bdb38f' }, h(TableHead, { key: '868cf524b90bcc2671fc487dc5c7f9c71756d24f' }, h(TableHeadRow, { key: '3bc7b727e4e3c8f0a61b55993c965779c0fac73b' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '06adebe1455360d37d3eed7a27af2698b35047b4' }, h(TableLoadingState, { key: '241f49bd2ed6d3548e286de8f75f1cc92ffae23f', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '9739415d15f73457aa5125c85be88566e70d233b', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '43b1fa74ba01c89b2d22fc238295c343bf6379b6', 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: '3a4b974a07bbe7d0fe246ad93724be2bec449166' }, h(TableFootRow, { key: '6ec16663674ea87026fc3400d164fa2d9907c35a' }, h(TableFootCell, { key: '1eb2943ba2e6885a1a520430eb257e7499553c80', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'd4719b9e2166d0577e620a5575303294127833a9', 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: 'e2c74f8194963dd89cfec003100160243d5b557a' }, h("table-filters-menu", { key: '11e1de006ba3449b055522566c8bf6ed7c7d0149', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'c9e381e473f76eca245cc3c8f63902fddde04536', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '335068bb6399da10ea58a39a918ab6e847a1b7fb', class: "p-2" }, h("form-control-select", { key: '3a5ff6562756bc17c1ff29a08dccef8f398d3b3c', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: 'a7101ad94377c3211219b9b2d4031f2fd4c0b623', class: "p-2" }, h("form-control-select", { key: '96613a62d42a61164959939cbaaacf14f28683b0', 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: 'f20c74e616c92115985587dc56d6ef62e86fbf02' }, h("checkouts-list-core", { key: 'e3afd6af4d8db35f4119d93cc550a1827e1d52cb', 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: 'd931098227eb3c8d2a1eb4dd10fd8ce93101f424' }, 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: '60b2220edc8d7862cda6388040e7b1f9434100fc', 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: 'd268295bb070b948984332bd763407dd2abe8467' }, this.isLoading && (h("div", { key: 'e9083c5f4f8cb88a348dc5099be678cf0c44c6fd', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'dd847619a087adcf9ca142bd705073b5bd2cbb38', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'abce0be539824cabcdc91cc1935acda2928738be', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'fd50de2ce4ff82a99bd9435438f8714173f07a63', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '44d88a0e658669f0cb703e7a80008788957b4075', part: text }, h("h1", { key: 'cbcf492cd4cb236f8241a03e9a722650c4a86a33', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: 'c30d8f5246aaf75415e6334acc2d3ab53fb200c5' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '929bdc03a93e66cd95ad0985df42cee6e1448ee1', class: "h5" }, "Dispute details"), h("div", { key: '71ace963ec6035edfadb8e3391c2a025203ffb8b', class: "d-table gap-2" }, h("div", { key: '13feb89ef8720eb97fb58bb5a01c650339b044a0', class: "d-table-row gap-2" }, h("span", { key: 'f53edd37be55640f22d6fc8418c2c7a2fb68d4eb', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: 'ee91d5ecc2c3c921106fed6437b0122d87ffc590', 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: 'f8d03855088572719cc69eb70846baaca626873f', class: "d-table-row gap-2" }, h("span", { key: '1da829c98c3799d5f426078084d472fe21ea8714', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '66251cc54a379c54d1f10de9b63c3acc8441102e', 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: '75fb4722061c2ce1552aaf019cd55fe2e18d69bc', class: "d-table-row gap-2" }, h("span", { key: '0e1207c6ec9b5e0a1987c3dc27c7237b829c0e24', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: 'f59cee5df009fbe55a5afc7c862d127dcf9c39bc', 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: '843db57269e37dc9a6fe870efaac3345acd69f8c', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '6bc8dc5a4d5b5fb3b4bd060f869cc154b5f38911', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: 'ece8a6e944501b889d9d881ae08181261aa630c1', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: '5801625ebc25850e4001d9961e20b9f589ba071a' }, h("h1", { key: '6a20320f19deea6e4cd2ad391ef6e3adf16d9272', class: "h4" }, "This payment is disputed and under review"), h("p", { key: '5fbfbe7a8c80674f1d65fa5f989a2db428dcce73' }, "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: '7531e3e361613accf7f6b6085ba94dbaafcb4915' }, h("h1", { key: '6f613bf334d77f89ff9fff4fb95bcb60b81154fd', class: "h4" }, "This payment was disputed"), h("p", { key: '148b60d2220cdd181cc4fa7692b524c1da049aea' }, "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: '905c1f81c5d4d0e2dac524fa11cb7ae977bd8c35' }, h("h1", { key: 'de0004f4f08d07e3bbeb224e900c5f89d58f3ecd', class: "h4" }, "This payment was disputed"), h("p", { key: '40f37c79108a79989b7e5a6d2d90a855b37ea2a3' }, "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: 'a03e78a3610b5bf23bf9611ed2225e839da41c5d' }, h("div", { key: '235029013598b89a4d92c06cc468b1fb4147fc4c', class: "row gy-3" }, h("div", { key: 'f18cdb52f20817dc6dc3d16e91b4fee09ccda690', class: "col-12" }, h("h2", { key: '37a18cbc0027cb3fd170fa5afad295d57cfc0f19', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '9cc4ef86508b8232e343f46fc64ccc78b42ac22f', class: "col-12" }, h("form-control-textarea", { key: '93fb66f2e4ee72b58ff53c5010b1e5e16e9abbd7', 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: 'cb3fe8f241e08df1984fc47820e723f00d34641d', class: "col-12" }, h("form-control-file-v2", { key: 'eeae63012b624078bfc3fa34553ed7aa8288a24b', 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: '37c63086ec0dece44992be20f44d0b0f06ce3996' }, h("div", { key: '0aab4b70d17ce769d847470b74cd2f0946845ed2', class: "row gy-3" }, h("div", { key: '7cacadffe3a11231d9791dd3b536686e7cc2d539', class: "col-12" }, h("h2", { key: '09c8227375b4231c4135a18d31667f069c5c847d', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '4636e5b456294e6493e09859cf4d001d7e7b6c1a', class: "col-12" }, h("form-control-textarea", { key: 'e5e7be99ae8b18016c28388e7d165321b7aae062', 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: '0885ca69088851f240ae22b5106a9989b4321f96', class: "col-12" }, h("form-control-textarea", { key: '80ebcdae7bbf223109820735dacb4d2a8c1c8809', 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: '3ddc4eaa4f086eee2758c2b53172a0f43622e741', class: "col-12" }, h("form-control-file-v2", { key: 'cb975ba4e455d2fc5959319a781a084b5af7b9f8', 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() {
|