|
8 | 8 | import ApiClient from '../ApiClient';
|
9 | 9 | import CreateAirShippingEstimateRequest from '../model/CreateAirShippingEstimateRequest';
|
10 | 10 | import CreateBitcoinEstimateRequest from '../model/CreateBitcoinEstimateRequest';
|
| 11 | +import CreateEcommerceEstimateRequest from '../model/CreateEcommerceEstimateRequest'; |
11 | 12 | import CreateEthereumEstimateRequest from '../model/CreateEthereumEstimateRequest';
|
12 | 13 | import CreateFlightEstimateRequest from '../model/CreateFlightEstimateRequest';
|
13 | 14 | import CreateHotelEstimateRequest from '../model/CreateHotelEstimateRequest';
|
@@ -122,6 +123,55 @@ export default class EstimatesApi {
|
122 | 123 | return this.createBitcoinEstimateWithHttpInfo(createBitcoinEstimateRequest);
|
123 | 124 | }
|
124 | 125 |
|
| 126 | + createEcommerceEstimateWithHttpInfo(createEcommerceEstimateRequest) { |
| 127 | + const _createEcommerceEstimateRequest = |
| 128 | + CreateEcommerceEstimateRequest.constructFromObject( |
| 129 | + createEcommerceEstimateRequest, |
| 130 | + new CreateEcommerceEstimateRequest() |
| 131 | + ); |
| 132 | + |
| 133 | + // verify the required parameter 'createEcommerceEstimateRequest' is set |
| 134 | + if ( |
| 135 | + _createEcommerceEstimateRequest === undefined || |
| 136 | + _createEcommerceEstimateRequest === null |
| 137 | + ) { |
| 138 | + throw new Error( |
| 139 | + "Missing the required parameter 'createEcommerceEstimateRequest' when calling createEcommerceEstimate" |
| 140 | + ); |
| 141 | + } |
| 142 | + |
| 143 | + let postBody = _createEcommerceEstimateRequest; |
| 144 | + let pathParams = {}; |
| 145 | + let queryParams = {}; |
| 146 | + let headerParams = {}; |
| 147 | + let formParams = {}; |
| 148 | + |
| 149 | + let authNames = ['bearer_auth']; |
| 150 | + let contentTypes = ['application/json']; |
| 151 | + let accepts = ['application/json']; |
| 152 | + let returnType = EstimateResponse; |
| 153 | + |
| 154 | + return this.apiClient.callApi( |
| 155 | + '/v1/estimates/ecommerce', |
| 156 | + 'POST', |
| 157 | + pathParams, |
| 158 | + queryParams, |
| 159 | + headerParams, |
| 160 | + formParams, |
| 161 | + postBody, |
| 162 | + authNames, |
| 163 | + contentTypes, |
| 164 | + accepts, |
| 165 | + returnType |
| 166 | + ); |
| 167 | + } |
| 168 | + |
| 169 | + createEcommerceEstimate(createEcommerceEstimateRequest) { |
| 170 | + return this.createEcommerceEstimateWithHttpInfo( |
| 171 | + createEcommerceEstimateRequest |
| 172 | + ); |
| 173 | + } |
| 174 | + |
125 | 175 | createEthereumEstimateWithHttpInfo(createEthereumEstimateRequest) {
|
126 | 176 | const _createEthereumEstimateRequest =
|
127 | 177 | CreateEthereumEstimateRequest.constructFromObject(
|
|
0 commit comments