lib/placetel_api/model/contact.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.3.0-SNAPSHOT (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule PlacetelAPI.Model.Contact do
  @moduledoc """
  Contact model
  """

  @derive [Poison.Encoder]
  defstruct [
    :id,
    :user_id,
    :speeddial,
    :first_name,
    :last_name,
    :email,
    :email_work,
    :company,
    :address,
    :address_work,
    :phone_work,
    :mobile_work,
    :phone,
    :mobile,
    :fax,
    :fax_work,
    :facebook_url,
    :linkedin_url,
    :xing_url,
    :twitter_account,
    :blocked,
    :color,
    :updated_at,
    :created_at
  ]

  @type t :: %__MODULE__{
          :id => integer() | nil,
          :user_id => integer() | nil,
          :speeddial => integer() | nil,
          :first_name => String.t() | nil,
          :last_name => String.t() | nil,
          :email => String.t() | nil,
          :email_work => String.t() | nil,
          :company => String.t() | nil,
          :address => String.t() | nil,
          :address_work => String.t() | nil,
          :phone_work => String.t() | nil,
          :mobile_work => String.t() | nil,
          :phone => String.t() | nil,
          :mobile => String.t() | nil,
          :fax => String.t() | nil,
          :fax_work => String.t() | nil,
          :facebook_url => String.t() | nil,
          :linkedin_url => String.t() | nil,
          :xing_url => String.t() | nil,
          :twitter_account => String.t() | nil,
          :blocked => boolean() | nil,
          :color => String.t() | nil,
          :updated_at => DateTime.t() | nil,
          :created_at => DateTime.t() | nil
        }
end

defimpl Poison.Decoder, for: PlacetelAPI.Model.Contact do
  def decode(value, _options) do
    value
  end
end