Class: Brightpearl::OrderRow

Inherits:
Resource show all
Defined in:
lib/brightpearl/resources/order_row.rb

Class Method Summary collapse

Methods inherited from Resource

send_request, to_query

Class Method Details

.delete(order_id, id) ⇒ Object



15
16
17
# File 'lib/brightpearl/resources/order_row.rb', line 15

def delete(order_id, id)
  send_request(path: "order-service/order/#{order_id}/row/#{id}", method: :delete)
end

.patch(order_id, id, params) ⇒ Object



10
11
12
# File 'lib/brightpearl/resources/order_row.rb', line 10

def patch(order_id, id, params)
  send_request(path: "order-service/order/#{order_id}/row/#{id}", method: :patch, body: params)
end

.post(order_id, params) ⇒ Object



5
6
7
# File 'lib/brightpearl/resources/order_row.rb', line 5

def post(order_id, params)
  send_request(path: "order-service/order/#{order_id}/row", method: :post, body: params)
end