Skip to content

OnCustomerCreated

Back to Index

This hook runs after commands have been applied to a Customer Actor from the create message, but before the OnCustomerCommands hook. Commands returned will be applied to the payment and changes are available to the the OnCustomerCommands hook.

Type

{
hook: 'OnPaymentCreated'
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 you want to apply.

Back to Index