module PlentyClient::Category

Constants

CREATE_CATEGORY
DELETE_CATEGORY
DELETE_CATEGORY_CLIENTS
DELETE_CATEGORY_DETAILS
FIND_CATEGORY
LIST_CATEGORIES
UPDATE_CATEGORIES
UPDATE_CATEGORY

Public Class Methods

create(body = {}) click to toggle source
# File lib/plenty_client/category.rb, line 26
def create(body = {})
  post(CREATE_CATEGORY, body)
end
destroy(cat_id, body = {}) click to toggle source
# File lib/plenty_client/category.rb, line 38
def destroy(cat_id, body = {})
  delete(build_endpoint(DELETE_CATEGORY, cat: cat_id), body)
end
destroy_clients(cat_id, body = {}) click to toggle source
# File lib/plenty_client/category.rb, line 46
def destroy_clients(cat_id, body = {})
  delete(build_endpoint(DELETE_CATEGORY_CLIENTS, cat: cat_id), body)
end
destroy_details(cat_id, body = {}) click to toggle source
# File lib/plenty_client/category.rb, line 42
def destroy_details(cat_id, body = {})
  delete(build_endpoint(DELETE_CATEGORY_DETAILS, cat: cat_id), body)
end
find(cat_id = nil, headers = {}, &block) click to toggle source
# File lib/plenty_client/category.rb, line 22
def find(cat_id = nil, headers = {}, &block)
  get(build_endpoint(FIND_CATEGORY, cat: cat_id), headers, &block)
end
list(headers = {}, &block) click to toggle source
# File lib/plenty_client/category.rb, line 18
def list(headers = {}, &block)
  get(build_endpoint(LIST_CATEGORIES), headers, &block)
end
update(cat_id, body = {}) click to toggle source
# File lib/plenty_client/category.rb, line 30
def update(cat_id, body = {})
  put(build_endpoint(UPDATE_CATEGORY, cat: cat_id), body)
end
update_all(body = {}) click to toggle source
# File lib/plenty_client/category.rb, line 34
def update_all(body = {})
  put(build_endpoint(UPDATE_CATEGORIES), body)
end