All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.crashteam.openapi.uzumanalytics.api.CategoryApi Maven / Gradle / Ivy

Go to download

Generates jar artifact containing compiled openapi classes based on generated openapi yaml files

There is a newer version: 1.23-f484458-server
Show newest version
package dev.crashteam.openapi.uzumanalytics.api;

import dev.crashteam.openapi.uzumanalytics.ApiClient;

import dev.crashteam.openapi.uzumanalytics.model.CategoryOverallInfo200Response;
import dev.crashteam.openapi.uzumanalytics.model.Error;
import dev.crashteam.openapi.uzumanalytics.model.GetSellerShops400Response;
import java.time.OffsetDateTime;
import java.util.UUID;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-21T16:53:18.489277710Z[Etc/UTC]")
public class CategoryApi {
    private ApiClient apiClient;

    public CategoryApi() {
        this(new ApiClient());
    }

    public CategoryApi(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return apiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    /**
     * Общая информация по категории
     * 
     * 

200 - Получены общие аналитические данные по категории *

400 - Переданы ошибочные данные *

401 - Несанкционированный доступ, использовались неверные учетные данные. *

403 - Access forbidden. *

404 - Данные по категории не найдены * @param xRequestID Уникальный идентификатор запроса к системе (required) * @param X_API_KEY Уникальный токен пользователя расширения (required) * @param categoryId (required) * @param fromTime Start date time. (required) * @param toTime End date time. (required) * @return CategoryOverallInfo200Response * @throws RestClientException if an error occurs while attempting to invoke the API */ public CategoryOverallInfo200Response categoryOverallInfo(UUID xRequestID, String X_API_KEY, Long categoryId, OffsetDateTime fromTime, OffsetDateTime toTime) throws RestClientException { return categoryOverallInfoWithHttpInfo(xRequestID, X_API_KEY, categoryId, fromTime, toTime).getBody(); } /** * Общая информация по категории * *

200 - Получены общие аналитические данные по категории *

400 - Переданы ошибочные данные *

401 - Несанкционированный доступ, использовались неверные учетные данные. *

403 - Access forbidden. *

404 - Данные по категории не найдены * @param xRequestID Уникальный идентификатор запроса к системе (required) * @param X_API_KEY Уникальный токен пользователя расширения (required) * @param categoryId (required) * @param fromTime Start date time. (required) * @param toTime End date time. (required) * @return ResponseEntity<CategoryOverallInfo200Response> * @throws RestClientException if an error occurs while attempting to invoke the API */ public ResponseEntity categoryOverallInfoWithHttpInfo(UUID xRequestID, String X_API_KEY, Long categoryId, OffsetDateTime fromTime, OffsetDateTime toTime) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'xRequestID' is set if (xRequestID == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xRequestID' when calling categoryOverallInfo"); } // verify the required parameter 'X_API_KEY' is set if (X_API_KEY == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'X_API_KEY' when calling categoryOverallInfo"); } // verify the required parameter 'categoryId' is set if (categoryId == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'categoryId' when calling categoryOverallInfo"); } // verify the required parameter 'fromTime' is set if (fromTime == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'fromTime' when calling categoryOverallInfo"); } // verify the required parameter 'toTime' is set if (toTime == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'toTime' when calling categoryOverallInfo"); } // create path and map variables final Map uriVariables = new HashMap(); uriVariables.put("categoryId", categoryId); final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); final HttpHeaders localVarHeaderParams = new HttpHeaders(); final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "fromTime", fromTime)); localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "toTime", toTime)); if (xRequestID != null) localVarHeaderParams.add("X-Request-ID", apiClient.parameterToString(xRequestID)); if (X_API_KEY != null) localVarHeaderParams.add("X-API-KEY", apiClient.parameterToString(X_API_KEY)); final String[] localVarAccepts = { "application/json" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "apiKey" }; ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/category/{categoryId}/overall-info", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy