@@ -22,12 +22,17 @@ export default class EstimatesApi {
22
22
}
23
23
24
24
createBitcoinEstimateWithHttpInfo ( createBitcoinEstimateRequest ) {
25
- let postBody = createBitcoinEstimateRequest ;
25
+ const _createBitcoinEstimateRequest =
26
+ CreateBitcoinEstimateRequest . constructFromObject (
27
+ createBitcoinEstimateRequest ,
28
+ new CreateBitcoinEstimateRequest ( )
29
+ ) ;
30
+ let postBody = _createBitcoinEstimateRequest ;
26
31
27
32
// verify the required parameter 'createBitcoinEstimateRequest' is set
28
33
if (
29
- createBitcoinEstimateRequest === undefined ||
30
- createBitcoinEstimateRequest === null
34
+ _createBitcoinEstimateRequest === undefined ||
35
+ _createBitcoinEstimateRequest === null
31
36
) {
32
37
throw new Error (
33
38
"Missing the required parameter 'createBitcoinEstimateRequest' when calling createBitcoinEstimate"
@@ -64,12 +69,17 @@ export default class EstimatesApi {
64
69
}
65
70
66
71
createEthereumEstimateWithHttpInfo ( createEthereumEstimateRequest ) {
67
- let postBody = createEthereumEstimateRequest ;
72
+ const _createEthereumEstimateRequest =
73
+ CreateEthereumEstimateRequest . constructFromObject (
74
+ createEthereumEstimateRequest ,
75
+ new CreateEthereumEstimateRequest ( )
76
+ ) ;
77
+ let postBody = _createEthereumEstimateRequest ;
68
78
69
79
// verify the required parameter 'createEthereumEstimateRequest' is set
70
80
if (
71
- createEthereumEstimateRequest === undefined ||
72
- createEthereumEstimateRequest === null
81
+ _createEthereumEstimateRequest === undefined ||
82
+ _createEthereumEstimateRequest === null
73
83
) {
74
84
throw new Error (
75
85
"Missing the required parameter 'createEthereumEstimateRequest' when calling createEthereumEstimate"
@@ -108,12 +118,17 @@ export default class EstimatesApi {
108
118
}
109
119
110
120
createFlightEstimateWithHttpInfo ( createFlightEstimateRequest ) {
111
- let postBody = createFlightEstimateRequest ;
121
+ const _createFlightEstimateRequest =
122
+ CreateFlightEstimateRequest . constructFromObject (
123
+ createFlightEstimateRequest ,
124
+ new CreateFlightEstimateRequest ( )
125
+ ) ;
126
+ let postBody = _createFlightEstimateRequest ;
112
127
113
128
// verify the required parameter 'createFlightEstimateRequest' is set
114
129
if (
115
- createFlightEstimateRequest === undefined ||
116
- createFlightEstimateRequest === null
130
+ _createFlightEstimateRequest === undefined ||
131
+ _createFlightEstimateRequest === null
117
132
) {
118
133
throw new Error (
119
134
"Missing the required parameter 'createFlightEstimateRequest' when calling createFlightEstimate"
@@ -150,12 +165,17 @@ export default class EstimatesApi {
150
165
}
151
166
152
167
createMassEstimateWithHttpInfo ( createMassEstimateRequest ) {
153
- let postBody = createMassEstimateRequest ;
168
+ const _createMassEstimateRequest =
169
+ CreateMassEstimateRequest . constructFromObject (
170
+ createMassEstimateRequest ,
171
+ new CreateMassEstimateRequest ( )
172
+ ) ;
173
+ let postBody = _createMassEstimateRequest ;
154
174
155
175
// verify the required parameter 'createMassEstimateRequest' is set
156
176
if (
157
- createMassEstimateRequest === undefined ||
158
- createMassEstimateRequest === null
177
+ _createMassEstimateRequest === undefined ||
178
+ _createMassEstimateRequest === null
159
179
) {
160
180
throw new Error (
161
181
"Missing the required parameter 'createMassEstimateRequest' when calling createMassEstimate"
@@ -192,12 +212,17 @@ export default class EstimatesApi {
192
212
}
193
213
194
214
createShippingEstimateWithHttpInfo ( createShippingEstimateRequest ) {
195
- let postBody = createShippingEstimateRequest ;
215
+ const _createShippingEstimateRequest =
216
+ CreateShippingEstimateRequest . constructFromObject (
217
+ createShippingEstimateRequest ,
218
+ new CreateShippingEstimateRequest ( )
219
+ ) ;
220
+ let postBody = _createShippingEstimateRequest ;
196
221
197
222
// verify the required parameter 'createShippingEstimateRequest' is set
198
223
if (
199
- createShippingEstimateRequest === undefined ||
200
- createShippingEstimateRequest === null
224
+ _createShippingEstimateRequest === undefined ||
225
+ _createShippingEstimateRequest === null
201
226
) {
202
227
throw new Error (
203
228
"Missing the required parameter 'createShippingEstimateRequest' when calling createShippingEstimate"
@@ -236,12 +261,17 @@ export default class EstimatesApi {
236
261
}
237
262
238
263
createVehicleEstimateWithHttpInfo ( createVehicleEstimateRequest ) {
239
- let postBody = createVehicleEstimateRequest ;
264
+ const _createVehicleEstimateRequest =
265
+ CreateVehicleEstimateRequest . constructFromObject (
266
+ createVehicleEstimateRequest ,
267
+ new CreateVehicleEstimateRequest ( )
268
+ ) ;
269
+ let postBody = _createVehicleEstimateRequest ;
240
270
241
271
// verify the required parameter 'createVehicleEstimateRequest' is set
242
272
if (
243
- createVehicleEstimateRequest === undefined ||
244
- createVehicleEstimateRequest === null
273
+ _createVehicleEstimateRequest === undefined ||
274
+ _createVehicleEstimateRequest === null
245
275
) {
246
276
throw new Error (
247
277
"Missing the required parameter 'createVehicleEstimateRequest' when calling createVehicleEstimate"
0 commit comments