Current section

Files

Jump to
procore_sdk lib procore model instruction_1.ex
Raw

lib/procore/model/instruction_1.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.8.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Procore.Model.Instruction1 do
@moduledoc """
"""
@derive Jason.Encoder
defstruct [
:number,
:title,
:status,
:instruction_type_id,
:instruction_from_id,
:date_received,
:schedule_impact,
:cost_impact,
:private,
:description,
:attention_ids,
:distribution_member_ids,
:trade_ids,
:attachments
]
@type t :: %__MODULE__{
:number => String.t() | nil,
:title => String.t() | nil,
:status => String.t() | nil,
:instruction_type_id => integer() | nil,
:instruction_from_id => integer() | nil,
:date_received => Date.t() | nil,
:schedule_impact => Procore.Model.InstructionScheduleImpact.t() | nil,
:cost_impact => Procore.Model.InstructionCostImpact.t() | nil,
:private => boolean() | nil,
:description => String.t() | nil,
:attention_ids => [integer()] | nil,
:distribution_member_ids => [integer()] | nil,
:trade_ids => [integer()] | nil,
:attachments => [String.t()] | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:date_received, :date, nil)
|> Deserializer.deserialize(
:schedule_impact,
:struct,
Procore.Model.InstructionScheduleImpact
)
|> Deserializer.deserialize(:cost_impact, :struct, Procore.Model.InstructionCostImpact)
end
end