Module: BaseApi::Client::Orders
- Included in:
- BaseApi::Client
- Defined in:
- lib/base_api/client/orders.rb
Instance Method Summary collapse
-
#orders(option = {}, &block) ⇒ HTTParty::Response
Get orders.
-
#orders_detail(unique_key, &block) ⇒ HTTParty::Response
Get a single order.
Instance Method Details
#orders(option = {}, &block) ⇒ HTTParty::Response
Get orders
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
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 |