Entity.Contact
{ contactType : Maybe ContactType
, contactId : Maybe Basics.Int
, prefix : String
, firstName : String
, middleName : String
, lastName : String
, suffix : String
, addressName : String
, address1 : String
, address2 : String
, city : String
, postalCode : String
, region : Maybe Engage.ListItem.ListItem
, country : Maybe Engage.ListItem.ListItem
, phone : Engage.Entity.PhoneNumber.PhoneNumber
, mobilePhone : Engage.Entity.PhoneNumber.PhoneNumber
, fax : Engage.Entity.PhoneNumber.PhoneNumber
, email : String
, notes : String
, isPrimaryContact : Basics.Bool
, isBillingContact : Basics.Bool
, relativeOrder : Basics.Int
}
The Contact type
{ contactTypeId : Basics.Int
, shortDescription : String
, longDescription : String
}
The ContactType type
Dict Basics.Int ContactType
The ContactTypes type
contactTypeDecoder : Json.Decode.Decoder ContactType
The ContactType decoder
contactTypesDecoder : Json.Decode.Decoder ContactTypes
The ContactTypes decoder
decoder : Json.Decode.Decoder Contact
The Contact decoder
empty : Contact
Get an empty Contact
encoder : Contact -> Json.Encode.Value
The Contact encoder
encoderWith : List ( String, Json.Encode.Value ) -> Contact -> Json.Encode.Value
The Contact encoder with values