EngageSoftware/elm-engage-common/5.0.0

NOTE: the latest version is 8.2.10

Engage.Entity.Participant

Entity.Participant

type alias Participant =
{ participantId : Maybe Int
, firstName : String
, lastName : String
, middleName : String
, email : String
, primaryAddress : Maybe Address
, phone : PhoneNumber
, mobilePhone : PhoneNumber
, profilePicture : String
, gender : Gender
, birthDate : Maybe Date
, birthDateYear : Maybe ListItem
, birthDateMonth : Maybe ListItem
, account : Maybe Account
}

The Participant type

decoder : Decoder Participant

A Participant decoder

empty : Participant

Get an empty Participant

encoder : ParticipantLike a -> Value

A Participant encoder

encoderWith : List ( String, Value ) -> ParticipantLike a -> Value

A Participant with fields encoder

toParticipant : ParticipantLike a -> Participant

Get a Participant from a partial