class PlentyClient::Item::Variation::Bundle

Constants

CREATE_ITEM_VARIATIONS_BUNDLE
DELETE_ITEM_VARIATIONS_BUNDLE
GET_ITEM_VARIATIONS_BUNDLE
ITEM_VARIATION_BUNDLE_PATH
LIST_ITEM_VARIATIONS_BUNDLE
UPDATE_ITEM_VARIATIONS_BUNDLE

Public Class Methods

create(item_id, variation_id, body = {}) click to toggle source
# File lib/plenty_client/item/variation/bundle.rb, line 32
def create(item_id, variation_id, body = {})
  post(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{CREATE_ITEM_VARIATIONS_BUNDLE}",
                      item: item_id, variation: variation_id),
       body)
end
destroy(item_id, variation_id, bundle_id) click to toggle source
# File lib/plenty_client/item/variation/bundle.rb, line 44
def destroy(item_id, variation_id, bundle_id)
  delete(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{DELETE_ITEM_VARIATIONS_BUNDLE}",
                        item: item_id, variation: variation_id, bundle: bundle_id))
end
find(item_id, variation_id, bundle_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/variation/bundle.rb, line 26
def find(item_id, variation_id, bundle_id, headers = {}, &block)
  get(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{GET_ITEM_VARIATIONS_BUNDLE}",
                     item: item_id, variation: variation_id, bundle: bundle_id),
      headers, &block)
end
list(item_id, variation_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/variation/bundle.rb, line 20
def list(item_id, variation_id, headers = {}, &block)
  get(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{LIST_ITEM_VARIATIONS_BUNDLE}",
                     item: item_id, variation: variation_id),
      headers, &block)
end
update(item_id, variation_id, bundle_id, body = {}) click to toggle source
# File lib/plenty_client/item/variation/bundle.rb, line 38
def update(item_id, variation_id, bundle_id, body = {})
  put(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{UPDATE_ITEM_VARIATIONS_BUNDLE}",
                     item: item_id, variation: variation_id, bundle: bundle_id),
      body)
end