Sha256: 73d175db3aaa8ee65fdac14ce46aee6cdad1f90da8c73d4f70acee99ac0d751b

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

module Moysklad::Entities
  # Пример:
  # https://support.moysklad.ru/hc/ru/articles/203402923-Пример-загрузки-заказа-покупателя-через-REST-API
  #
  class CustomerOrder < Base
    include CommonObject
    include XmlFix

    tag 'customerOrder'

    attribute :created,     Time 
    attribute :createdBy,   String

    attribute :reservedSum,     Float

    attribute :sourceStoreUuid, String
    attribute :sourceAccountUuid, String
    attribute :sourceAgentUuid, String

    attribute :targetAgentUuid, String
    attribute :targetAccountUuid, String

    attribute :applicable,      Boolean
    attribute :moment,          Time 

    attribute :payerVat,        Boolean

    attribute :consignmentUuid, String

    attribute :rate,            Float

    attribute :vatIncluded,     Boolean
    attribute :name,            String

    element   :sum,             Moysklad::Entities::Price, tag: :sum

    element   :deleted,         Time

    has_many  :customerOrderPosition, Moysklad::Entities::CustomerOrderPosition

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
moysklad-0.2.1 lib/moysklad/entities/customer_order.rb
moysklad-0.2.0 lib/moysklad/entities/customer_order.rb
moysklad-0.1.5 lib/moysklad/entities/customer_order.rb
moysklad-0.1.4 lib/moysklad/entities/customer_order.rb
moysklad-0.1.3 lib/moysklad/entities/customer_order.rb
moysklad-0.1.2 lib/moysklad/entities/customer_order.rb
moysklad-0.1.1 lib/moysklad/entities/customer_order.rb