Current section
Files
Jump to
Current section
Files
lib/procore/model/project_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.Project2 do
@moduledoc """
"""
@derive Jason.Encoder
defstruct [
:active,
:address,
:city,
:code,
:country_code,
:description,
:start_date,
:completion_date,
:total_value,
:warranty_start_date,
:warranty_end_date,
:flag,
:image_id,
:locale,
:name,
:office_id,
:phone,
:project_number,
:public_notes,
:project_stage_id,
:square_feet,
:state_code,
:time_zone,
:zip,
:parent_job_id,
:program_id,
:project_bid_type_id,
:project_type_id,
:project_owner_type_id,
:project_region_id,
:project_template_id,
:origin_id,
:origin_data,
:origin_code,
:override_start_date,
:override_start_date_check,
:override_end_date,
:override_end_date_check,
:department_ids,
:estimated_value,
:estimated_start_date,
:estimated_completion_date,
:store_number,
:accounting_project_number,
:designated_market_area,
:erp_integrated,
:latitude,
:longitude,
:enable_copy_of_standard_cost_codes,
:sector,
:work_scope,
:delivery_method
]
@type t :: %__MODULE__{
:active => boolean() | nil,
:address => String.t() | nil,
:city => String.t() | nil,
:code => String.t() | nil,
:country_code => String.t() | nil,
:description => String.t() | nil,
:start_date => Date.t() | nil,
:completion_date => Date.t() | nil,
:total_value => float() | nil,
:warranty_start_date => Date.t() | nil,
:warranty_end_date => Date.t() | nil,
:flag => String.t() | nil,
:image_id => integer() | nil,
:locale => String.t() | nil,
:name => String.t(),
:office_id => integer() | nil,
:phone => String.t() | nil,
:project_number => String.t() | nil,
:public_notes => String.t() | nil,
:project_stage_id => integer() | nil,
:square_feet => integer() | nil,
:state_code => String.t() | nil,
:time_zone => String.t() | nil,
:zip => String.t() | nil,
:parent_job_id => integer() | nil,
:program_id => integer() | nil,
:project_bid_type_id => integer() | nil,
:project_type_id => integer() | nil,
:project_owner_type_id => integer() | nil,
:project_region_id => integer() | nil,
:project_template_id => integer() | nil,
:origin_id => String.t() | nil,
:origin_data => String.t() | nil,
:origin_code => String.t() | nil,
:override_start_date => Date.t() | nil,
:override_start_date_check => boolean() | nil,
:override_end_date => Date.t() | nil,
:override_end_date_check => boolean() | nil,
:department_ids => [integer()] | nil,
:estimated_value => float() | nil,
:estimated_start_date => Date.t() | nil,
:estimated_completion_date => Date.t() | nil,
:store_number => String.t() | nil,
:accounting_project_number => String.t() | nil,
:designated_market_area => String.t() | nil,
:erp_integrated => boolean() | nil,
:latitude => float() | nil,
:longitude => float() | nil,
:enable_copy_of_standard_cost_codes => boolean() | nil,
:sector => String.t() | nil,
:work_scope => String.t() | nil,
:delivery_method => String.t() | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:start_date, :date, nil)
|> Deserializer.deserialize(:completion_date, :date, nil)
|> Deserializer.deserialize(:warranty_start_date, :date, nil)
|> Deserializer.deserialize(:warranty_end_date, :date, nil)
|> Deserializer.deserialize(:override_start_date, :date, nil)
|> Deserializer.deserialize(:override_end_date, :date, nil)
|> Deserializer.deserialize(:estimated_start_date, :date, nil)
|> Deserializer.deserialize(:estimated_completion_date, :date, nil)
end
end