Sha256: 546b709d31ca0977b0b8a2f02d0172af669295865a7971c854b9ad7c16ed3767

Contents?: true

Size: 728 Bytes

Versions: 5

Compression:

Stored size: 728 Bytes

Contents

module XeroGateway
  class Item < BaseRecord
    attributes({
        "ItemID" => :string,
        "Code"          => :string,
        "InventoryAssetAccountCode" => :string,
        "Name"          => :string,
        "IsSold"        => :boolean,
        "IsPurchased"   => :boolean,
        "Description"   => :string,
        "PurchaseDescription" => :string,
        "IsTrackedAsInventory" => :boolean,
        "TotalCostPool" => :float,
        "QuantityOnHand" => :integer,

        "SalesDetails"  => {
          "UnitPrice"     => :float,
          "AccountCode"   => :string
        },

        "PurchaseDetails" => {
          "UnitPrice"     => :float,
          "AccountCode"   => :string
        }
    })
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xero_gateway-2.7.0 lib/xero_gateway/item.rb
xero_gateway-2.6.0 lib/xero_gateway/item.rb
xero_gateway-2.5.0 lib/xero_gateway/item.rb
xero_gateway-2.4.0 lib/xero_gateway/item.rb
xero_gateway-2.3.0 lib/xero_gateway/item.rb