|
11 | 11 | /* eslint-disable */
|
12 | 12 | import type { AggregatedAnalyticsByProperty } from '../models/AggregatedAnalyticsByProperty.js'
|
13 | 13 | import type { AnalyticsMetrics } from '../models/AnalyticsMetrics.js'
|
14 |
| -import type { AnalyticsShippingEstimates } from '../models/AnalyticsShippingEstimates.js' |
15 | 14 | import type { CumulativeBundleAnalytics } from '../models/CumulativeBundleAnalytics.js'
|
16 | 15 | import type { EmissionCalculationMetrics } from '../models/EmissionCalculationMetrics.js'
|
17 | 16 |
|
@@ -213,59 +212,4 @@ export abstract class AnalyticsService {
|
213 | 212 | },
|
214 | 213 | })
|
215 | 214 | }
|
216 |
| - |
217 |
| - /** |
218 |
| - * Get analytics for shipping estimates |
219 |
| - * @param accountId The account identifier the analytics belongs to. |
220 |
| - * @param data Request data |
221 |
| - * @param options Additional operation options |
222 |
| - * @returns AnalyticsShippingEstimates OK |
223 |
| - */ |
224 |
| - public getAnalyticsShippingEstimates( |
225 |
| - accountId: string, |
226 |
| - data?: { |
227 |
| - /** |
228 |
| - * The start date of the custom date range. |
229 |
| - * Defaults to 30 days ago if not specified. |
230 |
| - */ |
231 |
| - from?: string |
232 |
| - /** |
233 |
| - * The to (inclusive) date of the custom date range. |
234 |
| - * Defaults to the current date if not specified. |
235 |
| - */ |
236 |
| - through?: string |
237 |
| - /** |
238 |
| - * The time interval over which metrics should be aggregated. |
239 |
| - * Defaults to day if not specified. |
240 |
| - */ |
241 |
| - interval?: 'day' | 'month' |
242 |
| - }, |
243 |
| - options?: { |
244 |
| - /** |
245 |
| - * Account Id to be used to perform the API call |
246 |
| - */ |
247 |
| - accountId?: string |
248 |
| - }, |
249 |
| - ): Promise<Result<SuccessResponse<AnalyticsShippingEstimates>, ApiError>> { |
250 |
| - return __request(this.client, this.config, options || {}, { |
251 |
| - method: 'GET', |
252 |
| - url: '/analytics/shipping/public/{account_id}', |
253 |
| - path: { |
254 |
| - account_id: accountId, |
255 |
| - }, |
256 |
| - headers: { |
257 |
| - Accept: 'application/json', |
258 |
| - }, |
259 |
| - query: { |
260 |
| - from: data?.from, |
261 |
| - through: data?.through, |
262 |
| - interval: data?.interval, |
263 |
| - }, |
264 |
| - errors: { |
265 |
| - 400: `The request is invalid. Parameters may be missing or are invalid`, |
266 |
| - 401: `The API Key is missing or is invalid`, |
267 |
| - 429: `Too many requests have been made in a short period of time`, |
268 |
| - }, |
269 |
| - }) |
270 |
| - } |
271 | 215 | }
|
0 commit comments