Class: PlentyClient::Item::CrossSelling
- Inherits:
-
Object
- Object
- PlentyClient::Item::CrossSelling
- Defined in:
- lib/plenty_client/item/cross_selling.rb
Constant Summary collapse
- CREATE_ITEMS_CROSS_SELLING =
'/items/{itemId}/item_cross_selling'
- GET_ITEMS_CROSS_SELLING =
'/items/{itemId}/item_cross_selling'
- DELETE_ITEMS_CROSS_SELLING =
'/items/{itemId}/item_cross_selling/{crossItemId}'
Class Method Summary collapse
- .create(item_id, headers = {}) ⇒ Object
- .destroy(item_id, cross_item_id) ⇒ Object
- .list(item_id, headers = {}, &block) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.create(item_id, headers = {}) ⇒ Object
14 15 16 |
# File 'lib/plenty_client/item/cross_selling.rb', line 14 def create(item_id, headers = {}) post(build_endpoint(CREATE_ITEMS_CROSS_SELLING, item: item_id), headers) end |
.destroy(item_id, cross_item_id) ⇒ Object
22 23 24 |
# File 'lib/plenty_client/item/cross_selling.rb', line 22 def destroy(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
18 19 20 |
# File 'lib/plenty_client/item/cross_selling.rb', line 18 def list(item_id, headers = {}, &block) get(build_endpoint(GET_ITEMS_CROSS_SELLING, item: item_id), headers, &block) end |