class PlentyClient::Order::Shipping::Information

Constants

MULTIPLE_PATH
SINGLE_PATH
UPDATE_ADDITIONAL_DATA
UPDATE_STATUS

Public Class Methods

create(body = {}) click to toggle source
# File lib/plenty_client/order/shipping/information.rb, line 21
def create(body = {})
  post(MULTIPLE_PATH, body)
end
destroy(order_id, body = {}) click to toggle source
# File lib/plenty_client/order/shipping/information.rb, line 33
def destroy(order_id, body = {})
  delete(build_endpoint(SINGLE_PATH, order: order_id), body)
end
list(order_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/order/shipping/information.rb, line 17
def list(order_id, headers = {}, &block)
  get(build_endpoint(SINGLE_PATH, order: order_id), headers, &block)
end
update_data(order_id, body = {}) click to toggle source
# File lib/plenty_client/order/shipping/information.rb, line 29
def update_data(order_id, body = {})
  put(build_endpoint(UPDATE_ADDITIONAL_DATA, order: order_id), body)
end
update_status(order_id, body = {}) click to toggle source
# File lib/plenty_client/order/shipping/information.rb, line 25
def update_status(order_id, body = {})
  put(build_endpoint(UPDATE_STATUS, order: order_id), body)
end