class PlentyClient::Market::Ebay::PartsFitment

Constants

CREATE_MARKET_EBAY_PARTS_FITMENT
DELETE_MARKET_EBAY_PARTS_FITMENT
FIND_MARKET_EBAY_PARTS_FITMENT
LIST_MARKET_EBAY_PARTS_FITMENTS
SEARCH_MARKET_EBAY_PARTS_FITMENTS
UPDATE_MARKET_EBAY_PARTS_FITMENT

Public Class Methods

create(body = {}) click to toggle source
# File lib/plenty_client/market/ebay/parts_fitment.rb, line 30
def create(body = {})
  post(build_endpoint(CREATE_MARKET_EBAY_PARTS_FITMENT), body)
end
destroy(fitment_id, body = {}) click to toggle source
# File lib/plenty_client/market/ebay/parts_fitment.rb, line 38
def destroy(fitment_id, body = {})
  delete(build_endpoint(DELETE_MARKET_EBAY_PARTS_FITMENT, fitment: fitment_id), body)
end
find(fitment_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/market/ebay/parts_fitment.rb, line 26
def find(fitment_id, headers = {}, &block)
  get(build_endpoint(FIND_MARKET_EBAY_PARTS_FITMENT, fitment: fitment_id), headers, &block)
end
list(headers = {}, &block) click to toggle source
# File lib/plenty_client/market/ebay/parts_fitment.rb, line 18
def list(headers = {}, &block)
  get(build_endpoint(LIST_MARKET_EBAY_PARTS_FITMENTS), headers, &block)
end
update(fitment_id, body = {}) click to toggle source
# File lib/plenty_client/market/ebay/parts_fitment.rb, line 34
def update(fitment_id, body = {})
  put(build_endpoint(UPDATE_MARKET_EBAY_PARTS_FITMENT, fitment: fitment_id), body)
end