66 */
77
88import ApiClient from '../ApiClient' ;
9+ import CreateAirShippingEstimateRequest from '../model/CreateAirShippingEstimateRequest' ;
910import CreateBitcoinEstimateRequest from '../model/CreateBitcoinEstimateRequest' ;
1011import CreateEthereumEstimateRequest from '../model/CreateEthereumEstimateRequest' ;
1112import CreateFlightEstimateRequest from '../model/CreateFlightEstimateRequest' ;
1213import CreateHotelEstimateRequest from '../model/CreateHotelEstimateRequest' ;
1314import CreateMassEstimateRequest from '../model/CreateMassEstimateRequest' ;
15+ import CreateRailShippingEstimateRequest from '../model/CreateRailShippingEstimateRequest' ;
16+ import CreateRoadShippingEstimateRequest from '../model/CreateRoadShippingEstimateRequest' ;
17+ import CreateSeaShippingEstimateRequest from '../model/CreateSeaShippingEstimateRequest' ;
1418import CreateShippingEstimateRequest from '../model/CreateShippingEstimateRequest' ;
1519import CreateVehicleEstimateRequest from '../model/CreateVehicleEstimateRequest' ;
1620import ErrorResponse from '../model/ErrorResponse' ;
@@ -22,6 +26,55 @@ export default class EstimatesApi {
2226 this . apiClient = apiClient || ApiClient . instance ;
2327 }
2428
29+ createAirShippingEstimateWithHttpInfo ( createAirShippingEstimateRequest ) {
30+ const _createAirShippingEstimateRequest =
31+ CreateAirShippingEstimateRequest . constructFromObject (
32+ createAirShippingEstimateRequest ,
33+ new CreateAirShippingEstimateRequest ( )
34+ ) ;
35+ let postBody = _createAirShippingEstimateRequest ;
36+
37+ // verify the required parameter 'createAirShippingEstimateRequest' is set
38+ if (
39+ _createAirShippingEstimateRequest === undefined ||
40+ _createAirShippingEstimateRequest === null
41+ ) {
42+ throw new Error (
43+ "Missing the required parameter 'createAirShippingEstimateRequest' when calling createAirShippingEstimate"
44+ ) ;
45+ }
46+
47+ let pathParams = { } ;
48+ let queryParams = { } ;
49+ let headerParams = { } ;
50+ let formParams = { } ;
51+
52+ let authNames = [ 'bearer_auth' ] ;
53+ let contentTypes = [ 'application/json' ] ;
54+ let accepts = [ 'application/json' ] ;
55+ let returnType = EstimateResponse ;
56+
57+ return this . apiClient . callApi (
58+ '/v1/estimates/shipping/air' ,
59+ 'POST' ,
60+ pathParams ,
61+ queryParams ,
62+ headerParams ,
63+ formParams ,
64+ postBody ,
65+ authNames ,
66+ contentTypes ,
67+ accepts ,
68+ returnType
69+ ) ;
70+ }
71+
72+ createAirShippingEstimate ( createAirShippingEstimateRequest ) {
73+ return this . createAirShippingEstimateWithHttpInfo (
74+ createAirShippingEstimateRequest
75+ ) ;
76+ }
77+
2578 createBitcoinEstimateWithHttpInfo ( createBitcoinEstimateRequest ) {
2679 const _createBitcoinEstimateRequest =
2780 CreateBitcoinEstimateRequest . constructFromObject (
@@ -259,6 +312,153 @@ export default class EstimatesApi {
259312 return this . createMassEstimateWithHttpInfo ( createMassEstimateRequest ) ;
260313 }
261314
315+ createRailShippingEstimateWithHttpInfo ( createRailShippingEstimateRequest ) {
316+ const _createRailShippingEstimateRequest =
317+ CreateRailShippingEstimateRequest . constructFromObject (
318+ createRailShippingEstimateRequest ,
319+ new CreateRailShippingEstimateRequest ( )
320+ ) ;
321+ let postBody = _createRailShippingEstimateRequest ;
322+
323+ // verify the required parameter 'createRailShippingEstimateRequest' is set
324+ if (
325+ _createRailShippingEstimateRequest === undefined ||
326+ _createRailShippingEstimateRequest === null
327+ ) {
328+ throw new Error (
329+ "Missing the required parameter 'createRailShippingEstimateRequest' when calling createRailShippingEstimate"
330+ ) ;
331+ }
332+
333+ let pathParams = { } ;
334+ let queryParams = { } ;
335+ let headerParams = { } ;
336+ let formParams = { } ;
337+
338+ let authNames = [ 'bearer_auth' ] ;
339+ let contentTypes = [ 'application/json' ] ;
340+ let accepts = [ 'application/json' ] ;
341+ let returnType = EstimateResponse ;
342+
343+ return this . apiClient . callApi (
344+ '/v1/estimates/shipping/rail' ,
345+ 'POST' ,
346+ pathParams ,
347+ queryParams ,
348+ headerParams ,
349+ formParams ,
350+ postBody ,
351+ authNames ,
352+ contentTypes ,
353+ accepts ,
354+ returnType
355+ ) ;
356+ }
357+
358+ createRailShippingEstimate ( createRailShippingEstimateRequest ) {
359+ return this . createRailShippingEstimateWithHttpInfo (
360+ createRailShippingEstimateRequest
361+ ) ;
362+ }
363+
364+ createRoadShippingEstimateWithHttpInfo ( createRoadShippingEstimateRequest ) {
365+ const _createRoadShippingEstimateRequest =
366+ CreateRoadShippingEstimateRequest . constructFromObject (
367+ createRoadShippingEstimateRequest ,
368+ new CreateRoadShippingEstimateRequest ( )
369+ ) ;
370+ let postBody = _createRoadShippingEstimateRequest ;
371+
372+ // verify the required parameter 'createRoadShippingEstimateRequest' is set
373+ if (
374+ _createRoadShippingEstimateRequest === undefined ||
375+ _createRoadShippingEstimateRequest === null
376+ ) {
377+ throw new Error (
378+ "Missing the required parameter 'createRoadShippingEstimateRequest' when calling createRoadShippingEstimate"
379+ ) ;
380+ }
381+
382+ let pathParams = { } ;
383+ let queryParams = { } ;
384+ let headerParams = { } ;
385+ let formParams = { } ;
386+
387+ let authNames = [ 'bearer_auth' ] ;
388+ let contentTypes = [ 'application/json' ] ;
389+ let accepts = [ 'application/json' ] ;
390+ let returnType = EstimateResponse ;
391+
392+ return this . apiClient . callApi (
393+ '/v1/estimates/shipping/road' ,
394+ 'POST' ,
395+ pathParams ,
396+ queryParams ,
397+ headerParams ,
398+ formParams ,
399+ postBody ,
400+ authNames ,
401+ contentTypes ,
402+ accepts ,
403+ returnType
404+ ) ;
405+ }
406+
407+ createRoadShippingEstimate ( createRoadShippingEstimateRequest ) {
408+ return this . createRoadShippingEstimateWithHttpInfo (
409+ createRoadShippingEstimateRequest
410+ ) ;
411+ }
412+
413+ createSeaShippingEstimateWithHttpInfo ( createSeaShippingEstimateRequest ) {
414+ const _createSeaShippingEstimateRequest =
415+ CreateSeaShippingEstimateRequest . constructFromObject (
416+ createSeaShippingEstimateRequest ,
417+ new CreateSeaShippingEstimateRequest ( )
418+ ) ;
419+ let postBody = _createSeaShippingEstimateRequest ;
420+
421+ // verify the required parameter 'createSeaShippingEstimateRequest' is set
422+ if (
423+ _createSeaShippingEstimateRequest === undefined ||
424+ _createSeaShippingEstimateRequest === null
425+ ) {
426+ throw new Error (
427+ "Missing the required parameter 'createSeaShippingEstimateRequest' when calling createSeaShippingEstimate"
428+ ) ;
429+ }
430+
431+ let pathParams = { } ;
432+ let queryParams = { } ;
433+ let headerParams = { } ;
434+ let formParams = { } ;
435+
436+ let authNames = [ 'bearer_auth' ] ;
437+ let contentTypes = [ 'application/json' ] ;
438+ let accepts = [ 'application/json' ] ;
439+ let returnType = EstimateResponse ;
440+
441+ return this . apiClient . callApi (
442+ '/v1/estimates/shipping/sea' ,
443+ 'POST' ,
444+ pathParams ,
445+ queryParams ,
446+ headerParams ,
447+ formParams ,
448+ postBody ,
449+ authNames ,
450+ contentTypes ,
451+ accepts ,
452+ returnType
453+ ) ;
454+ }
455+
456+ createSeaShippingEstimate ( createSeaShippingEstimateRequest ) {
457+ return this . createSeaShippingEstimateWithHttpInfo (
458+ createSeaShippingEstimateRequest
459+ ) ;
460+ }
461+
262462 createShippingEstimateWithHttpInfo ( createShippingEstimateRequest ) {
263463 const _createShippingEstimateRequest =
264464 CreateShippingEstimateRequest . constructFromObject (
0 commit comments