class AmoCRM::Entities::CustomerOrder
Пример: support.moysklad.ru/hc/ru/articles/203402923-Пример-загрузки-заказа-покупателя-через-REST-API
Public Instance Methods
state(universe)
click to toggle source
# File lib/amo_crm/entities/customer_order.rb, line 43 def state universe cache :customer_order_states, universe do fail "No stateUuid in CustomerOrder #{uuid}" unless stateUuid workflow = universe.workflows.findWhere name: 'CustomerOrder' workflow.states.find { |s| s.uuid == stateUuid } end end