@@ -22,12 +22,17 @@ export default class EstimatesApi {
2222 }
2323
2424 createBitcoinEstimateWithHttpInfo ( createBitcoinEstimateRequest ) {
25- let postBody = createBitcoinEstimateRequest ;
25+ const _createBitcoinEstimateRequest =
26+ CreateBitcoinEstimateRequest . constructFromObject (
27+ createBitcoinEstimateRequest ,
28+ new CreateBitcoinEstimateRequest ( )
29+ ) ;
30+ let postBody = _createBitcoinEstimateRequest ;
2631
2732 // verify the required parameter 'createBitcoinEstimateRequest' is set
2833 if (
29- createBitcoinEstimateRequest === undefined ||
30- createBitcoinEstimateRequest === null
34+ _createBitcoinEstimateRequest === undefined ||
35+ _createBitcoinEstimateRequest === null
3136 ) {
3237 throw new Error (
3338 "Missing the required parameter 'createBitcoinEstimateRequest' when calling createBitcoinEstimate"
@@ -64,12 +69,17 @@ export default class EstimatesApi {
6469 }
6570
6671 createEthereumEstimateWithHttpInfo ( createEthereumEstimateRequest ) {
67- let postBody = createEthereumEstimateRequest ;
72+ const _createEthereumEstimateRequest =
73+ CreateEthereumEstimateRequest . constructFromObject (
74+ createEthereumEstimateRequest ,
75+ new CreateEthereumEstimateRequest ( )
76+ ) ;
77+ let postBody = _createEthereumEstimateRequest ;
6878
6979 // verify the required parameter 'createEthereumEstimateRequest' is set
7080 if (
71- createEthereumEstimateRequest === undefined ||
72- createEthereumEstimateRequest === null
81+ _createEthereumEstimateRequest === undefined ||
82+ _createEthereumEstimateRequest === null
7383 ) {
7484 throw new Error (
7585 "Missing the required parameter 'createEthereumEstimateRequest' when calling createEthereumEstimate"
@@ -108,12 +118,17 @@ export default class EstimatesApi {
108118 }
109119
110120 createFlightEstimateWithHttpInfo ( createFlightEstimateRequest ) {
111- let postBody = createFlightEstimateRequest ;
121+ const _createFlightEstimateRequest =
122+ CreateFlightEstimateRequest . constructFromObject (
123+ createFlightEstimateRequest ,
124+ new CreateFlightEstimateRequest ( )
125+ ) ;
126+ let postBody = _createFlightEstimateRequest ;
112127
113128 // verify the required parameter 'createFlightEstimateRequest' is set
114129 if (
115- createFlightEstimateRequest === undefined ||
116- createFlightEstimateRequest === null
130+ _createFlightEstimateRequest === undefined ||
131+ _createFlightEstimateRequest === null
117132 ) {
118133 throw new Error (
119134 "Missing the required parameter 'createFlightEstimateRequest' when calling createFlightEstimate"
@@ -150,12 +165,17 @@ export default class EstimatesApi {
150165 }
151166
152167 createMassEstimateWithHttpInfo ( createMassEstimateRequest ) {
153- let postBody = createMassEstimateRequest ;
168+ const _createMassEstimateRequest =
169+ CreateMassEstimateRequest . constructFromObject (
170+ createMassEstimateRequest ,
171+ new CreateMassEstimateRequest ( )
172+ ) ;
173+ let postBody = _createMassEstimateRequest ;
154174
155175 // verify the required parameter 'createMassEstimateRequest' is set
156176 if (
157- createMassEstimateRequest === undefined ||
158- createMassEstimateRequest === null
177+ _createMassEstimateRequest === undefined ||
178+ _createMassEstimateRequest === null
159179 ) {
160180 throw new Error (
161181 "Missing the required parameter 'createMassEstimateRequest' when calling createMassEstimate"
@@ -192,12 +212,17 @@ export default class EstimatesApi {
192212 }
193213
194214 createShippingEstimateWithHttpInfo ( createShippingEstimateRequest ) {
195- let postBody = createShippingEstimateRequest ;
215+ const _createShippingEstimateRequest =
216+ CreateShippingEstimateRequest . constructFromObject (
217+ createShippingEstimateRequest ,
218+ new CreateShippingEstimateRequest ( )
219+ ) ;
220+ let postBody = _createShippingEstimateRequest ;
196221
197222 // verify the required parameter 'createShippingEstimateRequest' is set
198223 if (
199- createShippingEstimateRequest === undefined ||
200- createShippingEstimateRequest === null
224+ _createShippingEstimateRequest === undefined ||
225+ _createShippingEstimateRequest === null
201226 ) {
202227 throw new Error (
203228 "Missing the required parameter 'createShippingEstimateRequest' when calling createShippingEstimate"
@@ -236,12 +261,17 @@ export default class EstimatesApi {
236261 }
237262
238263 createVehicleEstimateWithHttpInfo ( createVehicleEstimateRequest ) {
239- let postBody = createVehicleEstimateRequest ;
264+ const _createVehicleEstimateRequest =
265+ CreateVehicleEstimateRequest . constructFromObject (
266+ createVehicleEstimateRequest ,
267+ new CreateVehicleEstimateRequest ( )
268+ ) ;
269+ let postBody = _createVehicleEstimateRequest ;
240270
241271 // verify the required parameter 'createVehicleEstimateRequest' is set
242272 if (
243- createVehicleEstimateRequest === undefined ||
244- createVehicleEstimateRequest === null
273+ _createVehicleEstimateRequest === undefined ||
274+ _createVehicleEstimateRequest === null
245275 ) {
246276 throw new Error (
247277 "Missing the required parameter 'createVehicleEstimateRequest' when calling createVehicleEstimate"
0 commit comments