Module: BaseApi::Client::Orders

Included in:
BaseApi::Client
Defined in:
lib/base_api/client/orders.rb

Instance Method Summary collapse

Instance Method Details

#orders(option = {}, &block) ⇒ HTTParty::Response

Get orders

Parameters:

  • params (Hash)

    a customizable set of options

Returns:

  • (HTTParty::Response)

See Also:



10
11
12
# File 'lib/base_api/client/orders.rb', line 10

def orders(option = {}, &block)
  paginate('/1/orders', option, &block)
end

#orders_detail(unique_key, &block) ⇒ HTTParty::Response

Get a single order

Parameters:

  • unique_key (String)

Returns:

  • (HTTParty::Response)

See Also:



19
20
21
# File 'lib/base_api/client/orders.rb', line 19

def orders_detail(unique_key, &block)
  call_get_api("/1/orders/detail/#{unique_key}", {}, &block)
end