Module: ContactOrderItems

Included in:
ContactEcommerce
Defined in:
lib/contact/ecommerce/order_items.rb

Instance Method Summary collapse

Instance Method Details

#get_order_item(id, options = nil) ⇒ Object

Get Order Item.

Get an order item info. TODO: Find a way to show order items.



16
17
18
# File 'lib/contact/ecommerce/order_items.rb', line 16

def get_order_item(id, options = nil)
  @client.raw('get', "/ecommerce/order-items/#{id}", options, nil, @contact_v1_url)
end

#get_order_items(options = nil) ⇒ Object

Get Order Items.

Get a collection of order items. TODO: Find a way to show order items.



8
9
10
# File 'lib/contact/ecommerce/order_items.rb', line 8

def get_order_items(options = nil)
  @client.raw('get', '/ecommerce/order-items', options, nil, @contact_v1_url)
end