Method: Mints::Contact#get_order

Defined in:
lib/contact.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)


590
591
592
# File 'lib/contact.rb', line 590

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