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

    Builds the LEDGER_ACCOUNT email payload for a newly-created ledger account and hands it to the CustomerNotificationService core. Lives in ledger-account-services (next to the writer) so it can use the LedgerAccount domain type; the writer calls notify right where it publishes the event + busts its cache.

    Relocated from the customer-dashboard account.ledgerAccount.created handler.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Notify the relevant recipients that a ledger account was created. Best-effort.

      Parameters

      • __namedParameters: {
            customerId: string;
            ledgerAccount: {
                address: Address;
                balance: BigNumber;
                createdAt: Date;
                id: string;
                name: string;
                notes?: string;
                paymentInstrumentId?: string;
                permissions: "ALL" | "ADMIN";
                referenceId?: string;
                tokenAccounts: Record<"MOVEUSD", { address: Address }>;
                updatedAt: Date;
                visibility: "PRIVATE" | "PUBLIC";
            };
        }

      Returns Promise<void>