Sha256: 149397c8f7f6836bc9e5e2aa89dd09a5319fd59439f5ddfbb2bbbe9a79b87da9

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    module Purchases
      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,
          },
          TaxRule: {
            name: :tax_rule,
            type: :String,
          },
          SupplierSKU: {
            name: :supplier_sku,
            type: :String,
          },
          Comment: {
            name: :comment,
            type: :String,
          },
          Total: {
            name: :total,
            type: :BigDecimal,
          }
        )
      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/line.rb
dear_inventory-0.7.4 lib/dear_inventory/models/purchases/line.rb
dear_inventory-0.7.3 lib/dear_inventory/models/purchases/line.rb
dear_inventory-0.7.2 lib/dear_inventory/models/purchases/line.rb
dear_inventory-0.7.1 lib/dear_inventory/models/purchases/line.rb
dear_inventory-0.7.0 lib/dear_inventory/models/purchases/line.rb
dear_inventory-0.6.3 lib/dear_inventory/models/purchases/line.rb