module PlentyClient::Listing::Market

Constants

CREATE_LISTING_MARKET
DELETE_LISTING_MARKET
FIND_LISTING_MARKET
LIST_LISTING_MARKETS
START_LISTING_MARKET
UPDATE_LISTING_MARKET
VERIFY_LISTING_MARKET

Public Class Methods

create(body = {}) click to toggle source
# File lib/plenty_client/listing/market.rb, line 26
def create(body = {})
  post(build_endpoint(CREATE_LISTING_MARKET), body)
end
destroy(market_listing_id, body = {}) click to toggle source
# File lib/plenty_client/listing/market.rb, line 34
def destroy(market_listing_id, body = {})
  delete(build_endpoint(DELETE_LISTING_MARKET, market_listing: market_listing_id), body)
end
find(market_listing_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/listing/market.rb, line 18
def find(market_listing_id, headers = {}, &block)
  get(build_endpoint(FIND_LISTING_MARKET, market_listing: market_listing_id), headers, &block)
end
list(headers = {}, &block) click to toggle source
# File lib/plenty_client/listing/market.rb, line 22
def list(headers = {}, &block)
  get(build_endpoint(LIST_LISTING_MARKETS), headers, &block)
end
start(market_listing_id, body = {}) click to toggle source
# File lib/plenty_client/listing/market.rb, line 38
def start(market_listing_id, body = {})
  post(build_endpoint(START_LISTING_MARKET, market_listing: market_listing_id), body)
end
update(market_listing_id, body = {}) click to toggle source
# File lib/plenty_client/listing/market.rb, line 30
def update(market_listing_id, body = {})
  put(build_endpoint(UPDATE_LISTING_MARKET, market_listing: market_listing_id), body)
end
verify(market_listing_id, body = {}) click to toggle source
# File lib/plenty_client/listing/market.rb, line 42
def verify(market_listing_id, body = {})
  post(build_endpoint(VERIFY_LISTING_MARKET, market_listing: market_listing_id), body)
end