Class: Brightpearl::OrderRow
- Defined in:
- lib/brightpearl/resources/order_row.rb
Class Method Summary collapse
- .delete(order_id, id) ⇒ Object
- .patch(order_id, id, params) ⇒ Object
- .post(order_id, params) ⇒ Object
Methods inherited from Resource
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 |