lib/agrid_client/api/quotes_api.rb in agrid-client-0.0.1 vs lib/agrid_client/api/quotes_api.rb in agrid-client-0.0.2
- old
+ new
@@ -1,19 +1,5 @@
-=begin
-Agrid Quotes API
-
-
-
-OpenAPI spec version: 1.0
-
-Generated by: https://github.com/swagger-api/swagger-codegen.git
-
-
-=end
-
-require "uri"
-
module AgridClient
class QuotesApi
attr_accessor :api_client
def initialize(api_client = ApiClient.default)
@@ -88,11 +74,11 @@
# @option opts [Integer] :limit Limit number of quotes on response(default is 12)
# @option opts [Integer] :offset Number to skip rows before beginning to return quotes
# @option opts [Array<String>] :filter_categories Example: <br> filter_categories[:filter_id][]=:filter_category_id&filter_categories[:filter_id][]=:filter_category_id <br><br> :filter_id is the id of filter<br> :filter_category_id is the id of filter category
# @option opts [Float] :min_price Param to filter quotes with price is at least equal to :min_price
# @option opts [Float] :max_price Param to filter quotes with price is at most equal to :max_price
- # @return [InlineResponse2001]
+ # @return [PaginatedQuotes]
def quotes_get(service_id, opts = {})
data, _status_code, _headers = quotes_get_with_http_info(service_id, opts)
return data
end
@@ -105,11 +91,11 @@
# @option opts [Integer] :limit Limit number of quotes on response(default is 12)
# @option opts [Integer] :offset Number to skip rows before beginning to return quotes
# @option opts [Array<String>] :filter_categories Example: <br> filter_categories[:filter_id][]=:filter_category_id&filter_categories[:filter_id][]=:filter_category_id <br><br> :filter_id is the id of filter<br> :filter_category_id is the id of filter category
# @option opts [Float] :min_price Param to filter quotes with price is at least equal to :min_price
# @option opts [Float] :max_price Param to filter quotes with price is at most equal to :max_price
- # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
+ # @return [Array<(PaginatedQuotes, Fixnum, Hash)>] PaginatedQuotes data, response status code and response headers
def quotes_get_with_http_info(service_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: QuotesApi#quotes_get ..."
end
@@ -150,10 +136,10 @@
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'InlineResponse2001')
+ :return_type => 'PaginatedQuotes')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: QuotesApi#quotes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end