EngageSoftware / elm-engage-common / Engage.Entity.Account

Entity.Account


type alias Account =
{ accountId : Maybe Basics.Int
, name : String
, description : String
, address : String
, address2 : String
, city : String
, region : Maybe Engage.ListItem.ListItem
, country : Maybe Engage.ListItem.ListItem
, postalCode : String
, phone : Engage.Entity.PhoneNumber.PhoneNumber 
}

The Account type

decoder : Json.Decode.Decoder Account

The Account decoder

empty : Account

Get an empty account

encoder : Account -> Json.Encode.Value

The Account encoder

encoderWith : List ( String, Json.Encode.Value ) -> Account -> Json.Encode.Value

The Account encoder with fields