Sha256: a1650975d133b41549ec76da6eed8784194ee15cc9218bce05deea60f293b1dd

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class Purchases < DearInventory::Model
      module Advanced
        class StockLine < DearInventory::Model
          extend T::Sig

          fields(
            Date: {
              name: :date,
              type: :Date,
            },
            Quantity: {
              name: :quantity,
              type: :Float,
            },
            ProductID: {
              name: :product_id,
              type: :Guid,
            },
            SKU: {
              name: :sku,
              type: :String,
            },
            Name: {
              name: :name,
              type: :String,
            },
            Location: {
              name: :location,
              type: :String,
            },
            LocationID: {
              name: :location_id,
              type: :Guid,
            },
            Received: {
              name: :received,
              type: :Boolean,
            },
            BatchSN: {
              name: :batch_sn,
              type: :String,
            },
            SupplierSKU: {
              name: :supplier_sku,
              type: :String,
            },
            ExpiryDate: {
              name: :expiry_date,
              type: :Date,
            }
          )
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 lib/dear_inventory/models/purchases/advanced/stock_line.rb
dear_inventory-1.3.0 lib/dear_inventory/models/purchases/advanced/stock_line.rb
dear_inventory-1.2.0 lib/dear_inventory/models/purchases/advanced/stock_line.rb
dear_inventory-1.1.1 lib/dear_inventory/models/purchases/advanced/stock_line.rb
dear_inventory-1.1.0 lib/dear_inventory/models/purchases/advanced/stock_line.rb
dear_inventory-1.0.0 lib/dear_inventory/models/purchases/advanced/stock_line.rb