app/helpers/spree/api/api_helpers.rb in spree_api-1.1.0 vs app/helpers/spree/api/api_helpers.rb in spree_api-1.1.1
- old
+ new
@@ -10,12 +10,12 @@
required_fields.map!(&:to_s).delete("permalink")
required_fields
end
def product_attributes
- [:id, :name, :description, :price,
- :available_on, :permalink, :count_on_hand, :meta_description, :meta_keywords]
+ [:id, :name, :description, :price, :available_on, :permalink,
+ :count_on_hand, :meta_description, :meta_keywords, :taxon_ids]
end
def variant_attributes
[:id, :name, :count_on_hand, :sku, :price, :weight, :height, :width, :depth, :is_master, :cost_price, :permalink]
end
@@ -48,9 +48,17 @@
[:id, :name, :description]
end
def shipment_attributes
[:id, :tracking, :number, :cost, :shipped_at, :state]
+ end
+
+ def taxonomy_attributes
+ [:id, :name]
+ end
+
+ def taxon_attributes
+ [:id, :name, :permalink, :position, :parent_id, :taxonomy_id]
end
end
end
end