@cfxlabsinc/b2b-services
    Preparing search index...

    Builds the IDENTITY email payload for an identity status change and hands it to the CustomerNotificationService core. Lives in entity-services (next to the writer) so it can use the Identity domain type; the writer calls notify right where it publishes the identity.identity.statusUpdated event.

    Relocated from the customer-dashboard handleIdentityEvent handler.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Notify the relevant recipients of an identity status change. Best-effort.

      Parameters

      • __namedParameters: {
            customerId: string;
            identity: {
                amlVerification?: {
                    id: string;
                    status: "PENDING" | "REVIEW" | "APPROVED" | "DECLINED";
                };
                capabilities: (
                    | "TRANSACT"
                    | "MANAGE_PAYMENT_INSTRUMENT"
                    | "MANAGE_LEDGER_ACCOUNT"
                    | "MANAGE_DEPOSIT_MEMO"
                )[];
                countryCode: string;
                countryOfResidence: string;
                createdAt: Date;
                customerVerification?: { id: string };
                dateOfBirth?: string;
                deletedAt?: Date;
                displayName: string;
                email: string;
                fullName?: string;
                id: string;
                identityDocumentVerification?: {
                    id: string;
                    status: "PENDING" | "REVIEW" | "APPROVED" | "DECLINED";
                };
                name?: { firstName: string; lastName: string; middleName?: string };
                phone: string;
                referenceId?: string;
                status:
                    | "ACTIVE"
                    | "DISABLED"
                    | "DELETED"
                    | "PENDING_VERIFICATION"
                    | "REVIEW"
                    | "BLOCKED";
                type: "IDENTITY";
                updatedAt: Date;
                uuid: string;
                verificationProfileId?: string;
            };
        }

      Returns Promise<void>