AskWhen

uk.gov.hmrc.apiplatform.modules.submissions.domain.models.AskWhen
See theAskWhen companion trait
object AskWhen

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
AskWhen.type

Members list

Type members

Classlikes

case object AlwaysAsk extends AskWhen

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait AskWhen
class Object
trait Matchable
class Any
Show all
Self type
AlwaysAsk.type
case class AskWhenAnswer(questionId: Id, expectedValue: SingleChoiceAnswer) extends AskWhen

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait AskWhen
class Object
trait Matchable
class Any
Show all
object AskWhenAnswer

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class AskWhenContext(contextKey: String, expectedValue: String) extends AskWhen

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait AskWhen
class Object
trait Matchable
class Any
Show all
object Context

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Context.type

Types

type Context = Map[String, String]

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def shouldAsk(context: Context, answersToQuestions: AnswersToQuestions)(askWhen: AskWhen): Boolean