diff --git a/lib/lightspeed/account.rb b/lib/lightspeed/account.rb index 50c0795..45bbaaf 100644 --- a/lib/lightspeed/account.rb +++ b/lib/lightspeed/account.rb @@ -6,6 +6,9 @@ require_relative 'item_attribute_sets' require_relative 'images' require_relative 'inventories' +require_relative 'inventory_count_items' +require_relative 'inventory_count_reconciles' +require_relative 'inventory_counts' require_relative 'orders' require_relative 'sales' require_relative 'shops' @@ -24,6 +27,9 @@ class Account < Lightspeed::Resource :Employees, :Images, :Inventories, + :InventoryCountItems, + :InventoryCountReconciles, + :InventoryCounts, :ItemMatrices, :ItemAttributeSets, :Items, diff --git a/lib/lightspeed/inventory_count.rb b/lib/lightspeed/inventory_count.rb new file mode 100644 index 0000000..22b4e16 --- /dev/null +++ b/lib/lightspeed/inventory_count.rb @@ -0,0 +1,16 @@ + +require_relative 'resource' + +module Lightspeed + class InventoryCount < Lightspeed::Resource + alias_method :archive, :destroy + + fields( + inventoryCountID: :id, + name: :string, + timeStamp: :datetime, + archived: :boolean, + shopID: :id + ) + end +end diff --git a/lib/lightspeed/inventory_count_item.rb b/lib/lightspeed/inventory_count_item.rb new file mode 100644 index 0000000..254749a --- /dev/null +++ b/lib/lightspeed/inventory_count_item.rb @@ -0,0 +1,17 @@ + +require_relative 'resource' + +module Lightspeed + class InventoryCountItem < Lightspeed::Resource + alias_method :archive, :destroy + + fields( + inventoryCountItemID: :id, + qty: :integer, + timeStamp: :datetime, + inventoryCountID: :id, + itemID: :id, + employeeID: :id + ) + end +end diff --git a/lib/lightspeed/inventory_count_items.rb b/lib/lightspeed/inventory_count_items.rb new file mode 100644 index 0000000..0419d1f --- /dev/null +++ b/lib/lightspeed/inventory_count_items.rb @@ -0,0 +1,9 @@ +require_relative 'collection' + +require_relative 'inventory_count_item' + +module Lightspeed + class InventoryCountItems < Lightspeed::Collection + alias_method :archive, :destroy + end +end diff --git a/lib/lightspeed/inventory_count_reconcile.rb b/lib/lightspeed/inventory_count_reconcile.rb new file mode 100644 index 0000000..9406746 --- /dev/null +++ b/lib/lightspeed/inventory_count_reconcile.rb @@ -0,0 +1,17 @@ + +require_relative 'resource' + +module Lightspeed + class InventoryCountReconcile < Lightspeed::Resource + alias_method :archive, :destroy + + fields( + inventoryCountReconcileID: :id, + createTime: :datetime, + costChange: :decimal, + qohChange: :integer, + inventoryCountID: :id, + itemID: :id + ) + end +end diff --git a/lib/lightspeed/inventory_count_reconciles.rb b/lib/lightspeed/inventory_count_reconciles.rb new file mode 100644 index 0000000..937988d --- /dev/null +++ b/lib/lightspeed/inventory_count_reconciles.rb @@ -0,0 +1,9 @@ +require_relative 'collection' + +require_relative 'inventory_count_reconcile' + +module Lightspeed + class InventoryCountReconciles < Lightspeed::Collection + alias_method :archive, :destroy + end +end diff --git a/lib/lightspeed/inventory_counts.rb b/lib/lightspeed/inventory_counts.rb new file mode 100644 index 0000000..605c1cb --- /dev/null +++ b/lib/lightspeed/inventory_counts.rb @@ -0,0 +1,9 @@ +require_relative 'collection' + +require_relative 'inventory_count' + +module Lightspeed + class InventoryCounts < Lightspeed::Collection + alias_method :archive, :destroy + end +end