travel.wink.sdk.affiliate.api.CustomizationApi Maven / Gradle / Ivy
package travel.wink.sdk.affiliate.api;
import travel.wink.sdk.affiliate.invoker.ApiClient;
import travel.wink.sdk.affiliate.model.EngineConfigurationViewAffiliate;
import travel.wink.sdk.affiliate.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.model.ShowSellerUrl400Response;
import travel.wink.sdk.affiliate.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;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-03-06T16:56:30.815925180+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.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
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 createApplicationConfigurationRequestCreation(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 createApplicationConfiguration", 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 createApplicationConfiguration", 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/company/{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.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
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 createApplicationConfiguration(String companyIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createApplicationConfigurationRequestCreation(companyIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> createApplicationConfigurationWithHttpInfo(String companyIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createApplicationConfigurationRequestCreation(companyIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Remove Customization
* Remove an existing customization.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
202 - Accepted
* @param companyIdentifier Remove customization for this company
* @param engineConfigurationIdentifier Remove customization with this identifier
* @param winkVersion The winkVersion parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec removeApplicationConfigurationRequestCreation(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion) 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 removeApplicationConfiguration", 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 removeApplicationConfiguration", 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 = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/company/{companyIdentifier}/configuration/{engineConfigurationIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Remove Customization
* Remove an existing customization.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
202 - Accepted
* @param companyIdentifier Remove customization for this company
* @param engineConfigurationIdentifier Remove customization with this identifier
* @param winkVersion The winkVersion parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono removeApplicationConfiguration(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> removeApplicationConfigurationWithHttpInfo(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Customization
* Retrieve the primary customization for an application.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param companyIdentifier Show customization for this company
* @param engineConfigurationIdentifier Load customization with this identifier
* @param winkVersion The winkVersion parameter
* @return EngineConfigurationViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showApplicationConfigurationRequestCreation(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion) 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));
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/company/{companyIdentifier}/configuration/{engineConfigurationIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Customization
* Retrieve the primary customization for an application.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param companyIdentifier Show customization for this company
* @param engineConfigurationIdentifier Load customization with this identifier
* @param winkVersion The winkVersion parameter
* @return EngineConfigurationViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showApplicationConfiguration(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> showApplicationConfigurationWithHttpInfo(String companyIdentifier, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Customizations
* Retrieve a list of customizations for specified company.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param companyIdentifier Show customizations for this company
* @param winkVersion The winkVersion parameter
* @return List<EngineConfigurationViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showApplicationConfigurationsByOwnerRequestCreation(String companyIdentifier, String winkVersion) 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));
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/company/{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.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param companyIdentifier Show customizations for this company
* @param winkVersion The winkVersion parameter
* @return List<EngineConfigurationViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showApplicationConfigurationsByOwner(String companyIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showApplicationConfigurationsByOwnerRequestCreation(companyIdentifier, winkVersion).bodyToFlux(localVarReturnType);
}
public Mono>> showApplicationConfigurationsByOwnerWithHttpInfo(String companyIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showApplicationConfigurationsByOwnerRequestCreation(companyIdentifier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Show Primary Customization
* Retrieve the primary customization for an application.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param companyIdentifier Show customization for this company
* @param winkVersion The winkVersion parameter
* @return EngineConfigurationViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showPrimaryApplicationConfigurationRequestCreation(String companyIdentifier, String winkVersion) 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));
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/company/{companyIdentifier}/configuration", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Primary Customization
* Retrieve the primary customization for an application.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param companyIdentifier Show customization for this company
* @param winkVersion The winkVersion parameter
* @return EngineConfigurationViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showPrimaryApplicationConfiguration(String companyIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showPrimaryApplicationConfigurationRequestCreation(companyIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> showPrimaryApplicationConfigurationWithHttpInfo(String companyIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showPrimaryApplicationConfigurationRequestCreation(companyIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Update Customization
* Update an existing customization.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
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 updateApplicationConfigurationRequestCreation(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 updateApplicationConfiguration", 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 updateApplicationConfiguration", 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 updateApplicationConfiguration", 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/company/{companyIdentifier}/configuration/{engineConfigurationIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update Customization
* Update an existing customization.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
404 - Not Found
*
403 - Forbidden
*
401 - Unauthorized
*
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 updateApplicationConfiguration(String companyIdentifier, String engineConfigurationIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> updateApplicationConfigurationWithHttpInfo(String companyIdentifier, String engineConfigurationIdentifier, UpsertEngineConfigurationRequestAffiliate upsertEngineConfigurationRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateApplicationConfigurationRequestCreation(companyIdentifier, engineConfigurationIdentifier, upsertEngineConfigurationRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
}