@cfxlabsinc/b2b-services
    Preparing search index...
    Customer: Omit<
        SelectCustomer,
        | "id"
        | "externalId"
        | "description"
        | "organizationId"
        | "data"
        | "notifications"
        | "bankPartners"
        | "terms",
    > & SelectCustomer["data"] & {
        aipriseIdentityPersonProfileAmlTemplateId?: string;
        aipriseIdentityPersonProfileIdentityDocumentTemplateId?: string;
        aipriseOrganizationBusinessProfileTemplateId?: string;
        aiprisePaymentInstrumentBusinessProfileTemplateId?: string;
        aiprisePaymentInstrumentPersonProfileTemplateId?: string;
        description?: NonNullable<SelectCustomer["description"]>;
        id: SelectCustomer["externalId"];
        legalEntityName: string;
        organizationId: string;
    }

    Type Declaration

    • OptionalaipriseIdentityPersonProfileAmlTemplateId?: string
    • OptionalaipriseIdentityPersonProfileIdentityDocumentTemplateId?: string
    • OptionalaipriseOrganizationBusinessProfileTemplateId?: string
    • OptionalaiprisePaymentInstrumentBusinessProfileTemplateId?: string
    • OptionalaiprisePaymentInstrumentPersonProfileTemplateId?: string
    • Optionaldescription?: NonNullable<SelectCustomer["description"]>
    • id: SelectCustomer["externalId"]
    • legalEntityName: string

      Display name of the organization referenced by organizationId, resolved via the same SQL inner join.

    • organizationId: string

      External id (org_…) of the customer's primary organization — the one row with organization.is_main_org set for this customer.

      Resolved from the primary-organization JOIN, never from the legacy customer.organization_id column (which is unread and slated to be dropped). Non-null because that join is an INNER one.