Sha256: ededaadcac4e31205ea53abf54403feaef88a95fb270ce485553adef6ba4b55d

Contents?: true

Size: 1.2 KB

Versions: 6

Compression:

Stored size: 1.2 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class Sales < DearInventory::Model
      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: :Float,
          },
          Price: {
            name: :price,
            type: :BigDecimal,
          },
          Discount: {
            name: :discount,
            type: :BigDecimal,
          },
          Tax: {
            name: :tax,
            type: :BigDecimal,
          },
          AverageCost: {
            name: :average_cost,
            type: :BigDecimal,
          },
          TaxRule: {
            name: :tax_rule,
            type: :String,
          },
          Comment: {
            name: :comment,
            type: :String,
          },
          Total: {
            name: :total,
            type: :BigDecimal,
          }
        )
      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/sales/line.rb
dear_inventory-1.3.0 lib/dear_inventory/models/sales/line.rb
dear_inventory-1.2.0 lib/dear_inventory/models/sales/line.rb
dear_inventory-1.1.1 lib/dear_inventory/models/sales/line.rb
dear_inventory-1.1.0 lib/dear_inventory/models/sales/line.rb
dear_inventory-1.0.0 lib/dear_inventory/models/sales/line.rb