Module: PlentyClient::Order::StatusHistory

Includes:
Endpoint, Request
Defined in:
lib/plenty_client/order/status_history.rb

Constant Summary collapse

FIND_ORDER_STATUS_HISTORY =
'/orders/{orderId}/status-history'
LIST_ORDER_STATUS_HISTORIES =
'/orders/status-history'

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.find(order_id, headers = {}, &block) ⇒ Object



13
14
15
# File 'lib/plenty_client/order/status_history.rb', line 13

def find(order_id, headers = {}, &block)
  get(build_endpoint(FIND_ORDER_STATUS_HISTORY, order: order_id), headers, &block)
end

.list(headers = {}, &block) ⇒ Object



17
18
19
# File 'lib/plenty_client/order/status_history.rb', line 17

def list(headers = {}, &block)
  get(build_endpoint(LIST_ORDER_STATUS_HISTORIES), headers, &block)
end