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