module PlentyClient::Order
Constants
- CREATE_ORDER
- DELETE_ORDER
- FIND_ORDER
- LIST_CONTACTS_ORDERS
- LIST_ORDERS
- LIST_ORDERS_PACKAGE_NUMBERS
- UPDATE_ORDER
Public Class Methods
create(body = {})
click to toggle source
# File lib/plenty_client/order.rb, line 17 def create(body = {}) post(build_endpoint(CREATE_ORDER), body) end
destroy(order_id, body = {})
click to toggle source
# File lib/plenty_client/order.rb, line 41 def destroy(order_id, body = {}) delete(build_endpoint(DELETE_ORDER, order: order_id), body) end
find(order_id = nil, headers = {}, &block)
click to toggle source
# File lib/plenty_client/order.rb, line 33 def find(order_id = nil, headers = {}, &block) get(build_endpoint(FIND_ORDER, order: order_id), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/order.rb, line 21 def list(headers = {}, &block) get(build_endpoint(LIST_ORDERS), headers, &block) end
list_contacts_orders(contact_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/order.rb, line 25 def list_contacts_orders(contact_id, headers = {}, &block) get(build_endpoint(LIST_CONTACTS_ORDERS, contact: contact_id), headers, &block) end
list_package_numbers(order_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/order.rb, line 29 def list_package_numbers(order_id, headers = {}, &block) get(build_endpoint(LIST_ORDERS_PACKAGE_NUMBERS, order: order_id), headers, &block) end
update(order_id, body = {})
click to toggle source
# File lib/plenty_client/order.rb, line 37 def update(order_id, body = {}) put(build_endpoint(UPDATE_ORDER, order: order_id), body) end