package com.ing.baker.tutorials.interactions

import com.ing.baker.recipe.annotations.FiresEvent
import com.ing.baker.recipe.annotations.RequiresIngredient
import com.ing.baker.recipe.javadsl.Interaction
import com.ing.baker.tutorials.events.ValidateOrderEvents.*

interface ValidateOrder: Interaction {

    @FiresEvent(oneOf = [OrderValid::class, OrderInvalid::class])
    fun apply(@RequiresIngredient("order") order: String): ValidateOrderOutcome
}