Sha256: 51b557d57588e519f0358b7c25fa29dcda50d850e3f8bd12bd7f625bb7d9a5a4

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 Bytes

Contents

require_relative 'entity'
require_relative 'assortment'

module Moysklad::Entities
  class Consignment < Entity
    attribute :meta, Meta
    attribute :id,                String
    attribute :version,           Integer
    attribute :updated,           String
    attribute :name,              String
    attribute :label,              String
    attribute :externalCode,      String
    attribute :archived,          Boolean

    attribute :accountId,         String
    attribute :assortment,        Assortment

    # Когда загружаем через ассортименты эти поля устанавливаются
    attribute :stock, Float
    attribute :reserve, Float
    attribute :inTransit, Float
    attribute :quantity, Float
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moysklad-0.3.0 lib/moysklad/entities/consignment.rb