class PlentyClient::Document::Order

Constants

DOWNLOAD_ORDERS_DOCUMENTS
DOWNLOAD_ORDER_DOCUMENTS_BY_TYPE
LIST_ORDER_DOCUMENTS
LIST_ORDER_DOCUMENTS_BY_TYPE
UPLOAD_ORDER_DOCUMENT

Public Class Methods

download(order_id, type_string, headers = {}, &block) click to toggle source
# File lib/plenty_client/document/order.rb, line 16
def download(order_id, type_string, headers = {}, &block)
  get(build_endpoint(DOWNLOAD_ORDERS_DOCUMENTS, order: order_id, type_string: type_string), headers, &block)
end
download_by_type(type_string, headers = {}, &block) click to toggle source
# File lib/plenty_client/document/order.rb, line 20
def download_by_type(type_string, headers = {}, &block)
  get(build_endpoint(DOWNLOAD_ORDER_DOCUMENTS_BY_TYPE, type_string: type_string), headers, &block)
end
list(order_id, type_string = nil, headers = {}, &block) click to toggle source
# File lib/plenty_client/document/order.rb, line 24
def list(order_id, type_string = nil, headers = {}, &block)
  get(build_endpoint(LIST_ORDER_DOCUMENTS, order: order_id, type_string: type_string), headers, &block)
end
list_by_type(type_string = nil, headers = {}, &block) click to toggle source
# File lib/plenty_client/document/order.rb, line 28
def list_by_type(type_string = nil, headers = {}, &block)
  get(build_endpoint(LIST_ORDER_DOCUMENTS_BY_TYPE, type_string: type_string), headers, &block)
end
upload(order_id, type_string, body = {}) click to toggle source
# File lib/plenty_client/document/order.rb, line 32
def upload(order_id, type_string, body = {})
  post(build_endpoint(UPLOAD_ORDER_DOCUMENT, order: order_id, type_string: type_string), body)
end