module GmanClient::Api::Orders

Orders API

Public Instance Methods

order(uuid) click to toggle source

Retrieve a single order

@param [String] uuid identifies the order

# File lib/gman_client/api/orders.rb, line 10
def order(uuid)
  response = attempt(@retry_attempts) do
    request
      .api
      .v1
      .orders(uuid)
      .get
  end

  response.to_h
end
orders(filter_params) click to toggle source

Retrieves a number of orders

@param [Hash] parameters to filter the orders

# File lib/gman_client/api/orders.rb, line 25
def orders(filter_params)
  response = attempt(@retry_attempts) do
    request
      .api
      .v1
      .orders
      .get(params: filter_params)
  end

  response.map(&:to_h)
end