Sha256: b53d9c8cf32b451c5717de9fe2627454d0ef3ccc1a257bda70129e43aeeac35e

Contents?: true

Size: 1.16 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
dear_inventory-0.2.0 lib/dear_inventory/models/sales/line.rb