|
8 | 8 | import ApiClient from '../ApiClient'; |
9 | 9 | import CreateAirShippingEstimateRequest from '../model/CreateAirShippingEstimateRequest'; |
10 | 10 | import CreateBitcoinEstimateRequest from '../model/CreateBitcoinEstimateRequest'; |
11 | | -import CreateFlightEstimateRequest from '../model/CreateFlightEstimateRequest'; |
12 | 11 | import CreateMassEstimateRequest from '../model/CreateMassEstimateRequest'; |
13 | 12 | import CreateRailShippingEstimateRequest from '../model/CreateRailShippingEstimateRequest'; |
14 | 13 | import CreateRoadShippingEstimateRequest from '../model/CreateRoadShippingEstimateRequest'; |
@@ -133,60 +132,6 @@ export default class EstimatesApi { |
133 | 132 | ); |
134 | 133 | } |
135 | 134 |
|
136 | | - createFlightEstimateWithHttpInfo(createFlightEstimateRequest, opts) { |
137 | | - opts = opts || {}; |
138 | | - |
139 | | - const _createFlightEstimateRequest = |
140 | | - CreateFlightEstimateRequest.constructFromObject( |
141 | | - createFlightEstimateRequest, |
142 | | - new CreateFlightEstimateRequest() |
143 | | - ); |
144 | | - |
145 | | - // verify the required parameter 'createFlightEstimateRequest' is set |
146 | | - if ( |
147 | | - _createFlightEstimateRequest === undefined || |
148 | | - _createFlightEstimateRequest === null |
149 | | - ) { |
150 | | - throw new Error( |
151 | | - "Missing the required parameter 'createFlightEstimateRequest' when calling createFlightEstimate" |
152 | | - ); |
153 | | - } |
154 | | - |
155 | | - let postBody = _createFlightEstimateRequest; |
156 | | - let pathParams = {}; |
157 | | - let queryParams = {}; |
158 | | - let headerParams = { |
159 | | - 'Patch-Version': opts['patchVersion'] |
160 | | - }; |
161 | | - let formParams = {}; |
162 | | - |
163 | | - let authNames = ['bearer_auth']; |
164 | | - let contentTypes = ['application/json']; |
165 | | - let accepts = ['application/json']; |
166 | | - let returnType = EstimateResponse; |
167 | | - |
168 | | - return this.apiClient.callApi( |
169 | | - '/v1/estimates/flight', |
170 | | - 'POST', |
171 | | - pathParams, |
172 | | - queryParams, |
173 | | - headerParams, |
174 | | - formParams, |
175 | | - postBody, |
176 | | - authNames, |
177 | | - contentTypes, |
178 | | - accepts, |
179 | | - returnType |
180 | | - ); |
181 | | - } |
182 | | - |
183 | | - createFlightEstimate(createFlightEstimateRequest, opts) { |
184 | | - return this.createFlightEstimateWithHttpInfo( |
185 | | - createFlightEstimateRequest, |
186 | | - opts |
187 | | - ); |
188 | | - } |
189 | | - |
190 | 135 | createMassEstimateWithHttpInfo(createMassEstimateRequest, opts) { |
191 | 136 | opts = opts || {}; |
192 | 137 |
|
|
0 commit comments