14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/resources/line_item.rb', line 14
def self.schema_props
{
"id" => {"type" => "string", "identity" => true , "readonly" => true},
"position" => {"type" => "integer"},
"product_id" => {"type" => "string", "optional" => true},
"quantity" => {"type" => "number"},
"quantity_unit" => {"type" => "string", "optional" => true},
"name" => {"type" => "string", "optional" => true},
"description" => {"type" => "string", "optional" => true},
"price_single" => {"type" => "number"},
"discount" => {"type" => "number", "optional" => true},
"tax" => {"type" => "number", "optional" => true},
"use_product" => {"type" => "integer", "optional" => true},
"created_at" => {"type" => "string", "format" =>"date-time", "optional" => true, "readonly" => true},
"updated_at" => {"type" => "string", "format" =>"date-time", "optional" => true, "readonly" => true}
}
end
|