class PlentyClient::Listing::OptionTemplate

Constants

CREATE_LISTINGS_OPTION_TEMPLATE
DELTE_LISTINGS_OPTION_TEMPLATE
FIND_LISTINGS_OPTION_TEMPLATE
PREVIEW_LISTINGS_OPTION_TEMPLATE
UPDATE_LISTINGS_OPTION_TEMPLATE

Public Class Methods

create(body = {}) click to toggle source
# File lib/plenty_client/listing/option_template.rb, line 24
def create(body = {})
  post(build_endpoint(CREATE_LISTINGS_OPTION_TEMPLATE), body)
end
destroy(option_template_id, body = {}) click to toggle source
# File lib/plenty_client/listing/option_template.rb, line 32
def destroy(option_template_id, body = {})
  delete(build_endpoint(DELTE_LISTINGS_OPTION_TEMPLATE, option_template: option_template_id), body)
end
find(option_template_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/listing/option_template.rb, line 20
def find(option_template_id, headers = {}, &block)
  get(build_endpoint(FIND_LISTINGS_OPTION_TEMPLATE, option_template: option_template_id), headers, &block)
end
preview(headers = {}, &block) click to toggle source
# File lib/plenty_client/listing/option_template.rb, line 16
def preview(headers = {}, &block)
  get(build_endpoint(PREVIEW_LISTINGS_OPTION_TEMPLATE), headers, &block)
end
update(option_template_id, body = {}) click to toggle source
# File lib/plenty_client/listing/option_template.rb, line 28
def update(option_template_id, body = {})
  put(build_endpoint(UPDATE_LISTINGS_OPTION_TEMPLATE, option_template: option_template_id), body)
end