EngageSoftware/elm-engage-common/4.0.0

NOTE: the latest version is 8.2.10

Engage.Entity.Contact

Entity.Contact

type alias Contact =
{ contactType : Maybe ContactType
, contactId : Maybe Int
, prefix : String
, firstName : String
, middleName : String
, lastName : String
, suffix : String
, addressName : String
, address1 : String
, address2 : String
, city : String
, postalCode : String
, region : Maybe ListItem
, country : Maybe ListItem
, phone : PhoneNumber
, mobilePhone : PhoneNumber
, fax : PhoneNumber
, email : String
, notes : String
, isPrimaryContact : Bool
, isBillingContact : Bool
, relativeOrder : Int
}

The Contact type

type alias ContactType =
{ contactTypeId : Int
, shortDescription : String
, longDescription : String
}

The ContactType type

type alias ContactTypes =
Dict Int ContactType

The ContactTypes type

contactTypeDecoder : Decoder ContactType

The ContactType decoder

contactTypesDecoder : Decoder ContactTypes

The ContactTypes decoder

decoder : Decoder Contact

The Contact decoder

empty : Contact

Get an empty Contact

encoder : Contact -> Value

The Contact encoder

encoderWith : List ( String, Value ) -> Contact -> Value

The Contact encoder with values