Class: PlentyClient::Item::CrossSelling
- Inherits:
-
Object
- Object
- PlentyClient::Item::CrossSelling
show all
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/item/cross_selling.rb
Constant Summary
collapse
- CREATE_ITEMS_CROSS_SELLING =
'/items/{itemId}/item_cross_selling'.freeze
- GET_ITEMS_CROSS_SELLING =
'/items/{itemId}/item_cross_selling'.freeze
- DELETE_ITEMS_CROSS_SELLING =
'/items/{itemId}/item_cross_selling/{crossItemId}'.freeze
Class Method Summary
collapse
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.create(item_id, headers = {}) ⇒ Object
12
13
14
|
# File 'lib/plenty_client/item/cross_selling.rb', line 12
def create(item_id, = {})
post(build_endpoint(CREATE_ITEMS_CROSS_SELLING, item: item_id), )
end
|
.delete(item_id, cross_item_id) ⇒ Object
20
21
22
|
# File 'lib/plenty_client/item/cross_selling.rb', line 20
def delete(item_id, cross_item_id)
delete(build_endpoint(DELETE_ITEMS_CROSS_SELLING, item: item_id, cross_item: cross_item_id))
end
|
.list(item_id, headers = {}, &block) ⇒ Object
16
17
18
|
# File 'lib/plenty_client/item/cross_selling.rb', line 16
def list(item_id, = {}, &block)
get(build_endpoint(GET_ITEMS_CROSS_SELLING, item: item_id), , &block)
end
|