Sha256: e3b4e3eb3423b09ce329f3978ecdc11d4599869f6731e53103984987816b18fa

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    module Sales
      class Line < DearInventory::Model
        extend T::Sig

        fields(
          ProductID: {
            name: :product_id,
            type: :Guid,
          },
          SKU: {
            name: :sku,
            type: :String,
          },
          Name: {
            name: :name,
            type: :String,
          },
          Quantity: {
            name: :quantity,
            type: :Numeric,
          },
          Price: {
            name: :price,
            type: :Numeric,
          },
          Discount: {
            name: :discount,
            type: :Numeric,
          },
          Tax: {
            name: :tax,
            type: :Numeric,
          },
          AverageCost: {
            name: :average_cost,
            type: :Numeric,
          },
          TaxRule: {
            name: :tax_rule,
            type: :String,
          },
          Comment: {
            name: :comment,
            type: :String,
          },
          Total: {
            name: :total,
            type: :Numeric,
          }
        )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dear_inventory-0.4.1 lib/dear_inventory/models/sales/line.rb
dear_inventory-0.4.0 lib/dear_inventory/models/sales/line.rb
dear_inventory-0.3.0 lib/dear_inventory/models/sales/line.rb