Current section

Files

Jump to
procore_sdk lib procore model extended_2.ex
Raw

lib/procore/model/extended_2.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Procore.Model.Extended2 do
@moduledoc """
"""
@derive Jason.Encoder
defstruct [
:id,
:accounting_project_number,
:active,
:actual_start_date,
:address,
:city,
:company,
:completion_date,
:country_code,
:county,
:created_at,
:custom_fields,
:departments,
:description,
:designated_market_area,
:dictionary_type,
:display_name,
:estimated_completion_date,
:estimated_start_date,
:estimated_value,
:flag,
:inbound_email,
:latitude,
:logo_url,
:longitude,
:name,
:office,
:origin_code,
:origin_data,
:origin_id,
:owners_project_id,
:parent_job_id,
:persistent_message,
:phone,
:photo_id,
:program,
:project_bid_type,
:project_number,
:project_owner_type,
:project_owner_type_id,
:project_region,
:project_region_id,
:project_stage,
:project_type,
:projected_finish_date,
:public_notes,
:square_feet,
:standard_cost_code_list_id,
:start_date,
:state_code,
:store_number,
:time_zone,
:total_value,
:tz_name,
:updated_at,
:warranty_end_date,
:warranty_start_date,
:zip
]
@type t :: %__MODULE__{
:id => integer() | nil,
:accounting_project_number => String.t() | nil,
:active => boolean() | nil,
:actual_start_date => Date.t() | nil,
:address => String.t() | nil,
:city => String.t() | nil,
:company => Procore.Model.ProjectCompany1.t() | nil,
:completion_date => Date.t() | nil,
:country_code => String.t() | nil,
:county => String.t() | nil,
:created_at => DateTime.t() | nil,
:custom_fields => Procore.Model.NormalCustomFields.t() | nil,
:departments => [Procore.Model.ProjectDepartment.t()] | nil,
:description => String.t() | nil,
:designated_market_area => String.t() | nil,
:dictionary_type => String.t() | nil,
:display_name => String.t() | nil,
:estimated_completion_date => Date.t() | nil,
:estimated_start_date => Date.t() | nil,
:estimated_value => String.t() | nil,
:flag => String.t() | nil,
:inbound_email => String.t() | nil,
:latitude => float() | nil,
:logo_url => String.t() | nil,
:longitude => float() | nil,
:name => String.t() | nil,
:office => Procore.Model.ProjectOffice.t() | nil,
:origin_code => String.t() | nil,
:origin_data => String.t() | nil,
:origin_id => String.t() | nil,
:owners_project_id => integer() | nil,
:parent_job_id => integer() | nil,
:persistent_message => Procore.Model.ProjectPersistentMessage.t() | nil,
:phone => String.t() | nil,
:photo_id => integer() | nil,
:program => Procore.Model.ProjectProgram.t() | nil,
:project_bid_type => Procore.Model.ProjectBidType.t() | nil,
:project_number => String.t() | nil,
:project_owner_type => Procore.Model.ProjectOwnerType.t() | nil,
:project_owner_type_id => integer() | nil,
:project_region => Procore.Model.ProjectRegion.t() | nil,
:project_region_id => integer() | nil,
:project_stage => Procore.Model.ProjectStage1.t() | nil,
:project_type => Procore.Model.ProjectType1.t() | nil,
:projected_finish_date => Date.t() | nil,
:public_notes => String.t() | nil,
:square_feet => integer() | nil,
:standard_cost_code_list_id => integer() | nil,
:start_date => Date.t() | nil,
:state_code => String.t() | nil,
:store_number => String.t() | nil,
:time_zone => String.t() | nil,
:total_value => String.t() | nil,
:tz_name => String.t() | nil,
:updated_at => DateTime.t() | nil,
:warranty_end_date => Date.t() | nil,
:warranty_start_date => Date.t() | nil,
:zip => String.t() | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:actual_start_date, :date, nil)
|> Deserializer.deserialize(:company, :struct, Procore.Model.ProjectCompany1)
|> Deserializer.deserialize(:completion_date, :date, nil)
|> Deserializer.deserialize(:created_at, :datetime, nil)
|> Deserializer.deserialize(:custom_fields, :struct, Procore.Model.NormalCustomFields)
|> Deserializer.deserialize(:departments, :list, Procore.Model.ProjectDepartment)
|> Deserializer.deserialize(:estimated_completion_date, :date, nil)
|> Deserializer.deserialize(:estimated_start_date, :date, nil)
|> Deserializer.deserialize(:office, :struct, Procore.Model.ProjectOffice)
|> Deserializer.deserialize(
:persistent_message,
:struct,
Procore.Model.ProjectPersistentMessage
)
|> Deserializer.deserialize(:program, :struct, Procore.Model.ProjectProgram)
|> Deserializer.deserialize(:project_bid_type, :struct, Procore.Model.ProjectBidType)
|> Deserializer.deserialize(:project_owner_type, :struct, Procore.Model.ProjectOwnerType)
|> Deserializer.deserialize(:project_region, :struct, Procore.Model.ProjectRegion)
|> Deserializer.deserialize(:project_stage, :struct, Procore.Model.ProjectStage1)
|> Deserializer.deserialize(:project_type, :struct, Procore.Model.ProjectType1)
|> Deserializer.deserialize(:projected_finish_date, :date, nil)
|> Deserializer.deserialize(:start_date, :date, nil)
|> Deserializer.deserialize(:updated_at, :datetime, nil)
|> Deserializer.deserialize(:warranty_end_date, :date, nil)
|> Deserializer.deserialize(:warranty_start_date, :date, nil)
end
end