Method: ContactOrders#get_order

Defined in:
lib/contact/ecommerce/orders.rb

#get_order(id, options = nil) ⇒ Object

Get Order.

Get an order info.

Parameters

id

(Integer) – Order id.

options

(Hash) – List of Resource Collection Options shown above can be used as parameter.

First Example

@data = @mints_pub.get_product(25)

Second Example

options = {
  fields: 'title'
}
@data = @mints_pub.get_product(25, options)


46
47
48
# File 'lib/contact/ecommerce/orders.rb', line 46

def get_order(id, options = nil)
  @client.raw('get', "/ecommerce/orders/#{id}", options, nil, @contact_v1_url)
end