Class: Zaikio::Procurement::Order

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/procurement/order.rb

Instance Method Summary collapse

Instance Method Details

#cancelObject



28
29
30
31
32
# File 'lib/zaikio/procurement/order.rb', line 28

def cancel
  Zaikio::Procurement::MaterialRequirement.new(
    self.class.request(:patch, "orders/#{id}/cancel").data
  )
end

#placeObject



22
23
24
25
26
# File 'lib/zaikio/procurement/order.rb', line 22

def place
  Zaikio::Procurement::MaterialRequirement.new(
    self.class.request(:patch, "orders/#{id}/place").data
  )
end