module PlentyClient::OrderSummary
Constants
- CREATE_ORDER_SUMMARY
- DELETE_ORDER_SUMMARY
- FIND_ORDER_SUMMARY
- FIND_ORDER_SUMMARY_BY_ADDRESS
- FIND_ORDER_SUMMARY_BY_CONTACT
- LIST_ORDER_SUMMARYS
- UPDATE_ORDER_SUMMARY
Public Class Methods
create(body = {})
click to toggle source
# File lib/plenty_client/order_summary.rb, line 17 def create(body = {}) post(build_endpoint(CREATE_ORDER_SUMMARY), body) end
destroy(order_summary_id, body = {})
click to toggle source
# File lib/plenty_client/order_summary.rb, line 41 def destroy(order_summary_id, body = {}) delete(build_endpoint(DELETE_ORDER_SUMMARY, order_summary: order_summary_id), body) end
find(order_summary_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/order_summary.rb, line 25 def find(order_summary_id, headers = {}, &block) get(build_endpoint(FIND_ORDER_SUMMARY, order_summary: order_summary_id), headers, &block) end
find_by_address(address_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/order_summary.rb, line 33 def find_by_address(address_id, headers = {}, &block) get(build_endpoint(LIST_ORDER_SUMMARYS_PACKAGE_NUMBERS, address: address_id), headers, &block) end
find_by_contact(contact_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/order_summary.rb, line 29 def find_by_contact(contact_id, headers = {}, &block) get(build_endpoint(FIND_ORDER_SUMMARY_BY_CONTACT, contact: contact_id), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/order_summary.rb, line 21 def list(headers = {}, &block) get(build_endpoint(LIST_ORDER_SUMMARYS), headers, &block) end
update(order_summary_id, body = {})
click to toggle source
# File lib/plenty_client/order_summary.rb, line 37 def update(order_summary_id, body = {}) put(build_endpoint(UPDATE_ORDER_SUMMARY, order_summary: order_summary_id), body) end