Sha256: 8dfbc4a06fabe686fd8acb6b1cd58ee32d6b44c801d52c631f3a3518c429037e
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
module SKApi module Resources class Product < SKApi::Resources::Base def save save_with_validation end def self.schema { "type" => "object", "properties" => SKApi::Resources::Product.schema_props} end def self.schema_props { "id" => {"type" => "string", "identity" => true , "readonly" => true}, "number" => {"type" => "string", "optional" => true}, "name" => {"type" => "string"}, "description" => {"type" => "string", "optional" => true}, "price" => {"type" => "number"}, "tax" => {"type" => "number", "optional" => true}, "quantity_unit"=> {"type" => "string", "optional" => true}, "tag_list" => {"type" => "string", "optional" => true}, "lock_version" => {"type" => "integer", "readonly" => true, "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 #schema_props end #Product end #Resources end #SKApi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sk-api-1.1.1 | lib/resources/product.rb |
sk-api-1.1.0 | lib/resources/product.rb |