77
88import ApiClient from '../ApiClient' ;
99import CreateBitcoinEstimateRequest from '../model/CreateBitcoinEstimateRequest' ;
10+ import CreateEthereumEstimateRequest from '../model/CreateEthereumEstimateRequest' ;
1011import CreateFlightEstimateRequest from '../model/CreateFlightEstimateRequest' ;
1112import CreateMassEstimateRequest from '../model/CreateMassEstimateRequest' ;
1213import CreateShippingEstimateRequest from '../model/CreateShippingEstimateRequest' ;
@@ -21,6 +22,9 @@ export default class EstimatesApi {
2122 this . createBitcoinEstimate = this . createBitcoinEstimate . bind ( this ) ;
2223 this . createBitcoinEstimateWithHttpInfo =
2324 this . createBitcoinEstimateWithHttpInfo . bind ( this ) ;
25+ this . createEthereumEstimate = this . createEthereumEstimate . bind ( this ) ;
26+ this . createEthereumEstimateWithHttpInfo =
27+ this . createEthereumEstimateWithHttpInfo . bind ( this ) ;
2428 this . createFlightEstimate = this . createFlightEstimate . bind ( this ) ;
2529 this . createFlightEstimateWithHttpInfo =
2630 this . createFlightEstimateWithHttpInfo . bind ( this ) ;
@@ -83,6 +87,50 @@ export default class EstimatesApi {
8387 return this . createBitcoinEstimateWithHttpInfo ( createBitcoinEstimateRequest ) ;
8488 }
8589
90+ createEthereumEstimateWithHttpInfo ( createEthereumEstimateRequest ) {
91+ let postBody = createEthereumEstimateRequest ;
92+
93+ // verify the required parameter 'createEthereumEstimateRequest' is set
94+ if (
95+ createEthereumEstimateRequest === undefined ||
96+ createEthereumEstimateRequest === null
97+ ) {
98+ throw new Error (
99+ "Missing the required parameter 'createEthereumEstimateRequest' when calling createEthereumEstimate"
100+ ) ;
101+ }
102+
103+ let pathParams = { } ;
104+ let queryParams = { } ;
105+ let headerParams = { } ;
106+ let formParams = { } ;
107+
108+ let authNames = [ 'bearer_auth' ] ;
109+ let contentTypes = [ 'application/json' ] ;
110+ let accepts = [ 'application/json' ] ;
111+ let returnType = EstimateResponse ;
112+
113+ return this . apiClient . callApi (
114+ '/v1/estimates/crypto/eth' ,
115+ 'POST' ,
116+ pathParams ,
117+ queryParams ,
118+ headerParams ,
119+ formParams ,
120+ postBody ,
121+ authNames ,
122+ contentTypes ,
123+ accepts ,
124+ returnType
125+ ) ;
126+ }
127+
128+ createEthereumEstimate ( createEthereumEstimateRequest ) {
129+ return this . createEthereumEstimateWithHttpInfo (
130+ createEthereumEstimateRequest
131+ ) ;
132+ }
133+
86134 createFlightEstimateWithHttpInfo ( createFlightEstimateRequest ) {
87135 let postBody = createFlightEstimateRequest ;
88136
0 commit comments