Skip to content

OnCustomerBeforeCreated

Back to Index

This hook runs before any command have been applied to a Customer Actor from the [create]/reference/actors/customer/messages/create) message. Commands returned will be applied to the order before the create message’s commands.

Type

{
hook: 'OnCustomerBeforeCreated'
customer: Customer
}

Effects

effects.common.sendMessage Sends a message to another actor after the customer has been saved. Responses from the target actor is ignored.

effects.common.validationError Aborts the creation of the customer and returns the error to the caller.

effects.customer.command.* Applies a command to the actor. Replace * with the type of [command]/reference/actors/customer/commands) you want to apply.

Back to Index