Class: PlentyClient::Item::Variation::Bundle
- Inherits:
-
Object
- Object
- PlentyClient::Item::Variation::Bundle
show all
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/item/variation/bundle.rb
Constant Summary
collapse
- ITEM_VARIATION_BUNDLE_PATH =
'/items/{itemId}/variations/{variationId}'.freeze
- LIST_ITEM_VARIATIONS_BUNDLE =
'/variation_bundles'.freeze
- GET_ITEM_VARIATIONS_BUNDLE =
'/variation_bundles/{bundleId}'.freeze
- CREATE_ITEM_VARIATIONS_BUNDLE =
'/variation_bundles'.freeze
- UPDATE_ITEM_VARIATIONS_BUNDLE =
'/variation_bundles/{bundleId}'.freeze
- DELETE_ITEM_VARIATIONS_BUNDLE =
'/variation_bundles/{bundleId}'.freeze
Class Method Summary
collapse
-
.create(item_id, variation_id, body = {}) ⇒ Object
-
.delete(item_id, variation_id, bundle_id) ⇒ Object
-
.find(item_id, variation_id, bundle_id, headers = {}, &block) ⇒ Object
-
.list(item_id, variation_id, headers = {}, &block) ⇒ Object
-
.update(item_id, variation_id, bundle_id, body = {}) ⇒ Object
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.create(item_id, variation_id, body = {}) ⇒ Object
30
31
32
33
34
|
# File 'lib/plenty_client/item/variation/bundle.rb', line 30
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
|
.delete(item_id, variation_id, bundle_id) ⇒ Object
42
43
44
45
46
47
|
# File 'lib/plenty_client/item/variation/bundle.rb', line 42
def delete(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) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/plenty_client/item/variation/bundle.rb', line 23
def find(item_id, variation_id, bundle_id, = {}, &block)
get(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{GET_ITEM_VARIATIONS_BUNDLE}",
item: item_id,
variation: variation_id,
bundle: bundle_id), , &block)
end
|
.list(item_id, variation_id, headers = {}, &block) ⇒ Object
17
18
19
20
21
|
# File 'lib/plenty_client/item/variation/bundle.rb', line 17
def list(item_id, variation_id, = {}, &block)
get(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{LIST_ITEM_VARIATIONS_BUNDLE}",
item: item_id,
variation: variation_id), , &block)
end
|
.update(item_id, variation_id, bundle_id, body = {}) ⇒ Object
36
37
38
39
40
|
# File 'lib/plenty_client/item/variation/bundle.rb', line 36
def update(item_id, variation_id, bundle_id, body = {})
put(build_endpoint("#{ITEM_VARIATION_BUNDLE_PATH}#{CREATE_ITEM_VARIATIONS_BUNDLE}",
item: item_id,
variation: variation_id), body)
end
|