Sha256: 134773cbad418c021de11a81ffef53f46ff573d049f8cad74150c14cd9f2fc0e

Contents?: true

Size: 1.27 KB

Versions: 7

Compression:

Stored size: 1.27 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    module Purchases
      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,
          },
          CardID: {
            name: :card_id,
            type: :Guid,
          }
        )
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dear_inventory-0.7.5 lib/dear_inventory/models/purchases/stock_line.rb
dear_inventory-0.7.4 lib/dear_inventory/models/purchases/stock_line.rb
dear_inventory-0.7.3 lib/dear_inventory/models/purchases/stock_line.rb
dear_inventory-0.7.2 lib/dear_inventory/models/purchases/stock_line.rb
dear_inventory-0.7.1 lib/dear_inventory/models/purchases/stock_line.rb
dear_inventory-0.7.0 lib/dear_inventory/models/purchases/stock_line.rb
dear_inventory-0.6.3 lib/dear_inventory/models/purchases/stock_line.rb