lib/gman_client/api/orders.rb in gman_client-0.0.9 vs lib/gman_client/api/orders.rb in gman_client-0.0.10
- old
+ new
@@ -14,8 +14,23 @@
.get
end
response.to_h
end
+
+ # Retrieves a number of orders
+ #
+ # @param [Hash] parameters to filter the orders
+ def orders(filter_params)
+ response = attempt(@retry_attempts) do
+ request
+ .api
+ .v1
+ .orders
+ .get(params: filter_params)
+ end
+
+ response.map(&:to_h)
+ end
end
end
end