Class: Tripletexer::Endpoints::Order::Orderline

Inherits:
AbstractEndpoint show all
Defined in:
lib/tripletexer/endpoints/order/orderline.rb

Instance Method Summary collapse

Methods inherited from AbstractEndpoint

#initialize

Constructor Details

This class inherits a constructor from Tripletexer::Endpoints::AbstractEndpoint

Instance Method Details

#create(body) ⇒ Object



7
8
9
# File 'lib/tripletexer/endpoints/order/orderline.rb', line 7

def create(body)
  create_entity('/v2/order/orderline', body)
end

#create_list(body) ⇒ Object



12
13
14
# File 'lib/tripletexer/endpoints/order/orderline.rb', line 12

def create_list(body)
  create_entities('/v2/order/orderline/list', body)
end

#find(id, params = {}) ⇒ Object



17
18
19
# File 'lib/tripletexer/endpoints/order/orderline.rb', line 17

def find(id, params = {})
  find_entity("/v2/order/orderline/#{id}", params)
end