Skip to content

Rule Hook

OnSkuBeforeCreated

Back to Index

This hook runs before any command have been applied to a Sku Actor from the create message. Commands returned will be applied to the sku before the create message’s commands.

Type

{
hook: 'OnSkuBeforeCreated'
sku: Sku
}

Effects

messageActor Sends a message to another actor after the payment has been saved. Responses from the target actor is ignored.

validationError Aborts the creation of the sku and returns the error to the caller.

skuCommand Applies a command to the actor.

Back to Index