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

travel.wink.sdk.affiliate.inventory.api.CustomizationApi Maven / Gradle / Ivy

package travel.wink.sdk.affiliate.inventory.api;

import travel.wink.sdk.affiliate.inventory.invoker.ApiClient;

import travel.wink.sdk.affiliate.inventory.model.EngineConfigurationViewAffiliate;
import travel.wink.sdk.affiliate.inventory.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.inventory.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.inventory.model.ShowSupplierUrl400Response;
import travel.wink.sdk.affiliate.inventory.model.UpsertEngineConfigurationRequestAffiliate;

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-15T11:56:03.487909257+07:00[Asia/Bangkok]")
public class CustomizationApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Create Customization
     * Create a new customization and associate it with the specified application.
     * 

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create customization for this company * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec createCustomizationRequestCreation(String companyIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertEngineConfigurationRequestAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'upsertEngineConfigurationRequestAffiliate' is set if (upsertEngineConfigurationRequestAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'upsertEngineConfigurationRequestAffiliate' when calling createCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); 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)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/configuration", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Create Customization * Create a new customization and associate it with the specified application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create customization for this company * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono createCustomization(String companyIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createCustomizationRequestCreation(companyIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Create Customization * Create a new customization and associate it with the specified application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create customization for this company * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<EngineConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> createCustomizationWithHttpInfo(String companyIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createCustomizationRequestCreation(companyIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Create Customization * Create a new customization and associate it with the specified application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create customization for this company * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec createCustomizationWithResponseSpec(String companyIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { return createCustomizationRequestCreation(companyIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion); } /** * Remove Customization * Remove an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Remove customization for this company * @param engineConfigurationIdentifier Remove customization with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return RemoveEntryResponseAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec removeCustomizationRequestCreation(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling removeCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'engineConfigurationIdentifier' is set if (engineConfigurationIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'engineConfigurationIdentifier' when calling removeCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); pathParams.put("engineConfigurationIdentifier", engineConfigurationIdentifier); 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/affiliate/{companyIdentifier}/configuration/{engineConfigurationIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Remove Customization * Remove an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Remove customization for this company * @param engineConfigurationIdentifier Remove customization with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return RemoveEntryResponseAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono removeCustomization(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeCustomizationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Remove Customization * Remove an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Remove customization for this company * @param engineConfigurationIdentifier Remove customization with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<RemoveEntryResponseAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> removeCustomizationWithHttpInfo(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeCustomizationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Remove Customization * Remove an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Remove customization for this company * @param engineConfigurationIdentifier Remove customization with this identifier * @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 removeCustomizationWithResponseSpec(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return removeCustomizationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion, accept); } /** * Show Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param engineConfigurationIdentifier Load customization with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showApplicationConfigurationRequestCreation(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showApplicationConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'engineConfigurationIdentifier' is set if (engineConfigurationIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'engineConfigurationIdentifier' when calling showApplicationConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); pathParams.put("engineConfigurationIdentifier", engineConfigurationIdentifier); 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/affiliate/{companyIdentifier}/configuration/{engineConfigurationIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param engineConfigurationIdentifier Load customization with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showApplicationConfiguration(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param engineConfigurationIdentifier Load customization with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<EngineConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showApplicationConfigurationWithHttpInfo(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param engineConfigurationIdentifier Load customization with this identifier * @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 showApplicationConfigurationWithResponseSpec(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion, accept); } /** * Show Customizations * Retrieve a list of customizations for specified company. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customizations for this company * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<EngineConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showApplicationConfigurationsByOwnerRequestCreation(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showApplicationConfigurationsByOwner", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); 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/affiliate/{companyIdentifier}/configuration/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Customizations * Retrieve a list of customizations for specified company. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customizations for this company * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<EngineConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showApplicationConfigurationsByOwner(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showApplicationConfigurationsByOwnerRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType); } /** * Show Customizations * Retrieve a list of customizations for specified company. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customizations for this company * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<EngineConfigurationViewAffiliate>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showApplicationConfigurationsByOwnerWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showApplicationConfigurationsByOwnerRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType); } /** * Show Customizations * Retrieve a list of customizations for specified company. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customizations for this company * @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 showApplicationConfigurationsByOwnerWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showApplicationConfigurationsByOwnerRequestCreation(companyIdentifier, winkVersion, accept); } /** * Show Primary Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showPrimaryApplicationConfigurationRequestCreation(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showPrimaryApplicationConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); 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/affiliate/{companyIdentifier}/configuration", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Primary Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showPrimaryApplicationConfiguration(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPrimaryApplicationConfigurationRequestCreation(companyIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Primary Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<EngineConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showPrimaryApplicationConfigurationWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPrimaryApplicationConfigurationRequestCreation(companyIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Primary Customization * Retrieve the primary customization for an application. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show customization for this company * @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 showPrimaryApplicationConfigurationWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showPrimaryApplicationConfigurationRequestCreation(companyIdentifier, winkVersion, accept); } /** * Update Customization * Update an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update customization for this company * @param engineConfigurationIdentifier Update customization with this application * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec updateCustomizationRequestCreation(String companyIdentifier, String engineConfigurationIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertEngineConfigurationRequestAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'engineConfigurationIdentifier' is set if (engineConfigurationIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'engineConfigurationIdentifier' when calling updateCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'upsertEngineConfigurationRequestAffiliate' is set if (upsertEngineConfigurationRequestAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'upsertEngineConfigurationRequestAffiliate' when calling updateCustomization", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); pathParams.put("engineConfigurationIdentifier", engineConfigurationIdentifier); 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)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/configuration/{engineConfigurationIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update Customization * Update an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update customization for this company * @param engineConfigurationIdentifier Update customization with this application * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return EngineConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono updateCustomization(String companyIdentifier, String engineConfigurationIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateCustomizationRequestCreation(companyIdentifier, engineConfigurationIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Update Customization * Update an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update customization for this company * @param engineConfigurationIdentifier Update customization with this application * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<EngineConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> updateCustomizationWithHttpInfo(String companyIdentifier, String engineConfigurationIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateCustomizationRequestCreation(companyIdentifier, engineConfigurationIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Update Customization * Update an existing customization. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update customization for this company * @param engineConfigurationIdentifier Update customization with this application * @param upsertEngineConfigurationRequestAffiliate The upsertEngineConfigurationRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec updateCustomizationWithResponseSpec(String companyIdentifier, String engineConfigurationIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException { return updateCustomizationRequestCreation(companyIdentifier, engineConfigurationIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy