class PlentyClient::Order::Referrer

Constants

CREATE_ORDER_REFERRER
LIST_REFERRERS

Public Class Methods

create(parent_referrer_id, body = {}) click to toggle source
# File lib/plenty_client/order/referrer.rb, line 17
def create(parent_referrer_id, body = {})
  post(build_endpoint(CREATE_ORDER_REFERRER, parent_referrer: parent_referrer_id), body)
end
list(headers = {}) click to toggle source
# File lib/plenty_client/order/referrer.rb, line 13
def list(headers = {})
  get(build_endpoint(LIST_REFERRERS), headers)
end