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

travel.wink.sdk.booking.client.api.ConfigurationApi Maven / Gradle / Ivy

There is a newer version: 30.5.15
Show newest version
package travel.wink.sdk.booking.client.api;

import travel.wink.sdk.booking.client.invoker.ApiClient;

import travel.wink.sdk.booking.client.model.EngineClientNonAuthenticatedEntity;
import travel.wink.sdk.booking.client.model.GenericErrorMessage;
import travel.wink.sdk.booking.client.model.ShowEngineConfiguration400Response;

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.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
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;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-28T11:52:23.638108273+07:00[Asia/Bangkok]")
public class ConfigurationApi {
    private ApiClient apiClient;

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

    @Autowired
    public ConfigurationApi(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Load Configuration by ID
     * Retrieve specific affiliate configuration
     * 

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param identifier The identifier parameter * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineClientNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showEngineConfigurationRequestCreation(String identifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'identifier' is set if (identifier == null) { throw new WebClientResponseException("Missing the required parameter 'identifier' when calling showEngineConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("identifier", identifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/configuration/{identifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Load Configuration by ID * Retrieve specific affiliate configuration *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param identifier The identifier parameter * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineClientNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showEngineConfiguration(String identifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showEngineConfigurationRequestCreation(identifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Load Configuration by ID * Retrieve specific affiliate configuration *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param identifier The identifier parameter * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<EngineClientNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showEngineConfigurationWithHttpInfo(String identifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showEngineConfigurationRequestCreation(identifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Load Configuration by ID * Retrieve specific affiliate configuration *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param identifier The identifier parameter * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showEngineConfigurationWithResponseSpec(String identifier, String winkVersion, String accept) throws WebClientResponseException { return showEngineConfigurationRequestCreation(identifier, winkVersion, accept); } /** * Load Configuration by Client ID in Header * Retrieve affiliate configuration by clientId in the header *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineClientNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API * @deprecated */ @Deprecated private ResponseSpec showEngineConfigurationWithClientHeaderRequestCreation(String clientId, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'clientId' is set if (clientId == null) { throw new WebClientResponseException("Missing the required parameter 'clientId' when calling showEngineConfigurationWithClientHeader", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (clientId != null) headerParams.add("clientId", apiClient.parameterToString(clientId)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/configuration/client", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Load Configuration by Client ID in Header * Retrieve affiliate configuration by clientId in the header *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineClientNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showEngineConfigurationWithClientHeader(String clientId, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showEngineConfigurationWithClientHeaderRequestCreation(clientId, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Load Configuration by Client ID in Header * Retrieve affiliate configuration by clientId in the header *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<EngineClientNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showEngineConfigurationWithClientHeaderWithHttpInfo(String clientId, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showEngineConfigurationWithClientHeaderRequestCreation(clientId, winkVersion, accept).toEntity(localVarReturnType); } /** * Load Configuration by Client ID in Header * Retrieve affiliate configuration by clientId in the header *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showEngineConfigurationWithClientHeaderWithResponseSpec(String clientId, String winkVersion, String accept) throws WebClientResponseException { return showEngineConfigurationWithClientHeaderRequestCreation(clientId, winkVersion, accept); } /** * Load Configuration by Client ID * Retrieve affiliate configuration by clientId in the path *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineClientNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showPrimaryEngineConfigurationRequestCreation(String clientId, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'clientId' is set if (clientId == null) { throw new WebClientResponseException("Missing the required parameter 'clientId' when calling showPrimaryEngineConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("clientId", clientId); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/configuration/client/{clientId}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Load Configuration by Client ID * Retrieve affiliate configuration by clientId in the path *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineClientNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showPrimaryEngineConfiguration(String clientId, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPrimaryEngineConfigurationRequestCreation(clientId, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Load Configuration by Client ID * Retrieve affiliate configuration by clientId in the path *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<EngineClientNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showPrimaryEngineConfigurationWithHttpInfo(String clientId, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPrimaryEngineConfigurationRequestCreation(clientId, winkVersion, accept).toEntity(localVarReturnType); } /** * Load Configuration by Client ID * Retrieve affiliate configuration by clientId in the path *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param clientId The clientId * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showPrimaryEngineConfigurationWithResponseSpec(String clientId, String winkVersion, String accept) throws WebClientResponseException { return showPrimaryEngineConfigurationRequestCreation(clientId, winkVersion, accept); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy