Skip to content
← Back to Index

OnSkuBeforeCreated

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

filtrera
{
  hook: 'OnSkuBeforeCreated'
  sku: Sku
}

Effects

[`messageActor`](/resources/components/runtimes/rule-effects/messageActor) Sends a message to another actor after the payment has been saved. Responses from the target actor is ignored.
[`validationError`](/resources/components/runtimes/rule-effects/validationError) Aborts the creation of the sku and returns the error to the caller.
[`skuCommand`](/resources/components/runtimes/rule-effects/skuCommand) Applies a command to the actor.

© 2024 Hantera AB. All rights reserved.