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

    Class CustomerEventPublisher

    The public bus publisher. Typed against the registry, so an unregistered event name or a payload that does not match its schema is a type error at the call site rather than a validation failure in a consumer.

    This is the only customer-event publisher. A second one used to wrap it to add entity references; that is now the entityId arm of PublishableCustomerEvent.

    Index
    • Type Parameters

      • N extends
            | "account.depositMemo.created"
            | "account.depositMemo.deleted"
            | "account.ledgerAccount.balanceUpdated"
            | "account.ledgerAccount.created"
            | "account.ledgerAccount.statusUpdated"
            | "account.virtualAccount.created"
            | "account.virtualAccount.statusUpdated"
            | "card.cardTransaction.statusUpdated"
            | "customer.document.created"
            | "customer.document.deleted"
            | "customer.pricingSchedule.statusUpdated"
            | "customer.terms.statusUpdated"
            | "deposit.cashRequest.statusUpdated"
            | "deposit.deposit.created"
            | "deposit.deposit.statusUpdated"
            | "deposit.manualMint.created"
            | "deposit.manualMint.statusUpdated"
            | "entity.document.deleted"
            | "entity.document.uploaded"
            | "identity.identity.statusUpdated"
            | "identity.verification.statusUpdated"
            | "ledger.account.transfer.statusUpdated"
            | "organization.organization.created"
            | "organization.organization.statusUpdated"
            | "organization.relatedPerson.created"
            | "organization.relatedPerson.deleted"
            | "organization.relatedPerson.updated"
            | "paymentInstrument.afBank.statusUpdated"
            | "paymentInstrument.afMomo.statusUpdated"
            | "paymentInstrument.externalUsAch.statusUpdated"
            | "paymentInstrument.mxClabe.statusUpdated"
            | "paymentInstrument.networkWallet.statusUpdated"
            | "paymentInstrument.swiftWire.statusUpdated"
            | "paymentInstrument.usAch.statusUpdated"
            | "paymentInstrument.usInstant.statusUpdated"
            | "paymentInstrument.usWire.statusUpdated"
            | "paymentInstrument.wallet.statusUpdated"
            | "redemption.transfer.statusUpdated"
            | "reward.reward.claimed"
            | "reward.reward.created"
            | "swap.swap.statusUpdated"
            | "withdrawal.withdrawal.statusUpdated"

      Parameters

      Returns Promise<void>