Our legalEntityType comes from AiPrise KYB / manual entry as an
uncontrolled string (e.g. "LLC", "C-Corp", "S-Corp"), so match on a
punctuation- and case-insensitive key. A bare "corporation"/"inc" defaults to
c_corporation (the US default absent an S-election); "LLP" folds into
limited_partnership (RouteFusion has no distinct LLP member).
Mirrors LEGAL_ENTITY_TYPE_ALIASES in
@cfxlabsinc/entity-services/legal-entity-type (same keys, plus the
RouteFusion-only nonus sentinel); exported read-only so the drift test in
virtual-account-services (legalEntityTypeToRouteFusion.test.ts) can prove
the two stay in sync.
Free-form legal-entity-type strings → RouteFusion's
BusinessTypeenum.Our
legalEntityTypecomes from AiPrise KYB / manual entry as an uncontrolled string (e.g. "LLC", "C-Corp", "S-Corp"), so match on a punctuation- and case-insensitive key. A bare "corporation"/"inc" defaults toc_corporation(the US default absent an S-election); "LLP" folds intolimited_partnership(RouteFusion has no distinct LLP member).Mirrors
LEGAL_ENTITY_TYPE_ALIASESin@cfxlabsinc/entity-services/legal-entity-type(same keys, plus the RouteFusion-onlynonussentinel); exported read-only so the drift test in virtual-account-services (legalEntityTypeToRouteFusion.test.ts) can prove the two stay in sync.