@@ -25,10 +25,9 @@ class EstimatesApi
25
25
def initialize ( api_client = ApiClient . default )
26
26
@api_client = api_client
27
27
end
28
-
29
28
# Create an estimate based on mass of CO2
30
- # Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate.
31
- # @param create_mass_estimate_request [CreateMassEstimateRequest]
29
+ # Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate.
30
+ # @param create_mass_estimate_request [CreateMassEstimateRequest]
32
31
# @param [Hash] opts the optional parameters
33
32
# @return [EstimateResponse]
34
33
def create_mass_estimate ( create_mass_estimate_request , opts = { } )
@@ -37,8 +36,8 @@ def create_mass_estimate(create_mass_estimate_request, opts = {})
37
36
end
38
37
39
38
# Create an estimate based on mass of CO2
40
- # Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate.
41
- # @param create_mass_estimate_request [CreateMassEstimateRequest]
39
+ # Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate.
40
+ # @param create_mass_estimate_request [CreateMassEstimateRequest]
42
41
# @param [Hash] opts the optional parameters
43
42
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
44
43
def create_mass_estimate_with_http_info ( create_mass_estimate_request , opts = { } )
@@ -49,7 +48,6 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
49
48
if @api_client . config . client_side_validation && create_mass_estimate_request . nil?
50
49
fail ArgumentError , "Missing the required parameter 'create_mass_estimate_request' when calling EstimatesApi.create_mass_estimate"
51
50
end
52
-
53
51
# resource path
54
52
local_var_path = '/v1/estimates/mass'
55
53
@@ -67,10 +65,10 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
67
65
form_params = opts [ :form_params ] || { }
68
66
69
67
# http body (model)
70
- post_body = opts [ :body ] || @api_client . object_to_http_body ( create_mass_estimate_request )
68
+ post_body = opts [ :body ] || @api_client . object_to_http_body ( create_mass_estimate_request )
71
69
72
70
# return_type
73
- return_type = opts [ :return_type ] || 'EstimateResponse'
71
+ return_type = opts [ :return_type ] || 'EstimateResponse'
74
72
75
73
# auth_names
76
74
auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
@@ -92,8 +90,8 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
92
90
end
93
91
94
92
# Retrieves an estimate
95
- # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
96
- # @param id [String]
93
+ # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
94
+ # @param id [String]
97
95
# @param [Hash] opts the optional parameters
98
96
# @return [EstimateResponse]
99
97
def retrieve_estimate ( id , opts = { } )
@@ -102,8 +100,8 @@ def retrieve_estimate(id, opts = {})
102
100
end
103
101
104
102
# Retrieves an estimate
105
- # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
106
- # @param id [String]
103
+ # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
104
+ # @param id [String]
107
105
# @param [Hash] opts the optional parameters
108
106
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
109
107
def retrieve_estimate_with_http_info ( id , opts = { } )
@@ -114,7 +112,6 @@ def retrieve_estimate_with_http_info(id, opts = {})
114
112
if @api_client . config . client_side_validation && id . nil?
115
113
fail ArgumentError , "Missing the required parameter 'id' when calling EstimatesApi.retrieve_estimate"
116
114
end
117
-
118
115
# resource path
119
116
local_var_path = '/v1/estimates/{id}' . sub ( '{' + 'id' + '}' , CGI . escape ( id . to_s ) )
120
117
@@ -130,10 +127,10 @@ def retrieve_estimate_with_http_info(id, opts = {})
130
127
form_params = opts [ :form_params ] || { }
131
128
132
129
# http body (model)
133
- post_body = opts [ :body ]
130
+ post_body = opts [ :body ]
134
131
135
132
# return_type
136
- return_type = opts [ :return_type ] || 'EstimateResponse'
133
+ return_type = opts [ :return_type ] || 'EstimateResponse'
137
134
138
135
# auth_names
139
136
auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
@@ -155,19 +152,19 @@ def retrieve_estimate_with_http_info(id, opts = {})
155
152
end
156
153
157
154
# Retrieves a list of estimates
158
- # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
155
+ # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
159
156
# @param [Hash] opts the optional parameters
160
- # @option opts [Integer] :page
157
+ # @option opts [Integer] :page
161
158
# @return [EstimateListResponse]
162
159
def retrieve_estimates ( opts = { } )
163
160
data , _status_code , _headers = retrieve_estimates_with_http_info ( opts )
164
161
data
165
162
end
166
163
167
164
# Retrieves a list of estimates
168
- # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
165
+ # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
169
166
# @param [Hash] opts the optional parameters
170
- # @option opts [Integer] :page
167
+ # @option opts [Integer] :page
171
168
# @return [Array<(EstimateListResponse, Integer, Hash)>] EstimateListResponse data, response status code and response headers
172
169
def retrieve_estimates_with_http_info ( opts = { } )
173
170
if @api_client . config . debugging
@@ -189,10 +186,10 @@ def retrieve_estimates_with_http_info(opts = {})
189
186
form_params = opts [ :form_params ] || { }
190
187
191
188
# http body (model)
192
- post_body = opts [ :body ]
189
+ post_body = opts [ :body ]
193
190
194
191
# return_type
195
- return_type = opts [ :return_type ] || 'EstimateListResponse'
192
+ return_type = opts [ :return_type ] || 'EstimateListResponse'
196
193
197
194
# auth_names
198
195
auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
0 commit comments