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'.freeze
LIST_BASKET_ITEMS =
'/basket/items'.freeze

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.create(body = {}) ⇒ Object



15
16
17
# File 'lib/plenty_client/basket/item.rb', line 15

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

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



11
12
13
# File 'lib/plenty_client/basket/item.rb', line 11

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