Class: PlentyClient::Basket::Item

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Request
Defined in:
lib/plenty_client/basket/item.rb

Constant Summary collapse

CREATE_BASKET_ITEM =
'/basket/items'
LIST_BASKET_ITEMS =
'/basket/items'

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.create(body = {}) ⇒ Object



17
18
19
# File 'lib/plenty_client/basket/item.rb', line 17

def create(body = {})
  post(CREATE_BASKET_ITEM, body)
end

.list(headers = {}, &block) ⇒ Object



13
14
15
# File 'lib/plenty_client/basket/item.rb', line 13

def list(headers = {}, &block)
  get(LIST_BASKET_ITEMS, headers, &block)
end