travel.wink.sdk.affiliate.sales.channel.api.AvailableSupplierApi Maven / Gradle / Ivy
Show all versions of affiliate-sales-channel-sdk-java Show documentation
package travel.wink.sdk.affiliate.sales.channel.api;
import travel.wink.sdk.affiliate.sales.channel.invoker.ApiClient;
import travel.wink.sdk.affiliate.sales.channel.model.BrowseSuppliers400Response;
import travel.wink.sdk.affiliate.sales.channel.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.sales.channel.model.HotelOnMapViewAffiliate;
import travel.wink.sdk.affiliate.sales.channel.model.KeyValuePairAffiliate;
import travel.wink.sdk.affiliate.sales.channel.model.PageHotelOnMapViewAffiliate;
import travel.wink.sdk.affiliate.sales.channel.model.StateAffiliate;
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:51:16.231644014+07:00[Asia/Bangkok]")
public class AvailableSupplierApi {
private ApiClient apiClient;
public AvailableSupplierApi() {
this(new ApiClient());
}
@Autowired
public AvailableSupplierApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Supplier Search
* Retrieve page of available suppliers based on search criteria.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show suppliers for
* @param stateAffiliate The stateAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return PageHotelOnMapViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec browseSuppliersRequestCreation(String companyIdentifier, StateAffiliate stateAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = stateAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling browseSuppliers", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'stateAffiliate' is set
if (stateAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'stateAffiliate' when calling browseSuppliers", 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}/supplier/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Supplier Search
* Retrieve page of available suppliers based on search criteria.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show suppliers for
* @param stateAffiliate The stateAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return PageHotelOnMapViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono browseSuppliers(String companyIdentifier, StateAffiliate stateAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return browseSuppliersRequestCreation(companyIdentifier, stateAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Supplier Search
* Retrieve page of available suppliers based on search criteria.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show suppliers for
* @param stateAffiliate The stateAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<PageHotelOnMapViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> browseSuppliersWithHttpInfo(String companyIdentifier, StateAffiliate stateAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return browseSuppliersRequestCreation(companyIdentifier, stateAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Supplier Search
* Retrieve page of available suppliers based on search criteria.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show suppliers for
* @param stateAffiliate The stateAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec browseSuppliersWithResponseSpec(String companyIdentifier, StateAffiliate stateAffiliate, String winkVersion) throws WebClientResponseException {
return browseSuppliersRequestCreation(companyIdentifier, stateAffiliate, winkVersion);
}
/**
* Recent Supplier List
* Retrieves a list of recent suppliers.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse suppliers on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<HotelOnMapViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showLatestSupplierRequestCreation(String companyIdentifier, Integer page, Integer size, 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 showLatestSupplier", 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();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "page", page));
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "size", size));
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}/supplier/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Recent Supplier List
* Retrieves a list of recent suppliers.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse suppliers on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<HotelOnMapViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showLatestSupplier(String companyIdentifier, Integer page, Integer size, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showLatestSupplierRequestCreation(companyIdentifier, page, size, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Recent Supplier List
* Retrieves a list of recent suppliers.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse suppliers on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<HotelOnMapViewAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showLatestSupplierWithHttpInfo(String companyIdentifier, Integer page, Integer size, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showLatestSupplierRequestCreation(companyIdentifier, page, size, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Recent Supplier List
* Retrieves a list of recent suppliers.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse suppliers on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @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 showLatestSupplierWithResponseSpec(String companyIdentifier, Integer page, Integer size, String winkVersion, String accept) throws WebClientResponseException {
return showLatestSupplierRequestCreation(companyIdentifier, page, size, winkVersion, accept);
}
/**
* Show Supplier
* Retrieve supplier information specified by identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show supplier for
* @param supplierIdentifier The supplier ID to retrieve
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return HotelOnMapViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSupplierRequestCreation(String companyIdentifier, String supplierIdentifier, 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 showSupplier", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'supplierIdentifier' is set
if (supplierIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'supplierIdentifier' when calling showSupplier", 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("supplierIdentifier", supplierIdentifier);
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}/supplier/{supplierIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Supplier
* Retrieve supplier information specified by identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show supplier for
* @param supplierIdentifier The supplier ID to retrieve
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return HotelOnMapViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSupplier(String companyIdentifier, String supplierIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSupplierRequestCreation(companyIdentifier, supplierIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Supplier
* Retrieve supplier information specified by identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show supplier for
* @param supplierIdentifier The supplier ID to retrieve
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<HotelOnMapViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSupplierWithHttpInfo(String companyIdentifier, String supplierIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSupplierRequestCreation(companyIdentifier, supplierIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Supplier
* Retrieve supplier information specified by identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show supplier for
* @param supplierIdentifier The supplier ID to retrieve
* @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 showSupplierWithResponseSpec(String companyIdentifier, String supplierIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSupplierRequestCreation(companyIdentifier, supplierIdentifier, winkVersion, accept);
}
/**
* Cities by Supplier
* Retrieve a list of unique cities where suppliers are based.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show cities for
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<KeyValuePairAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showUniqueCityListRequestCreation(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 showUniqueCityList", 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}/supplier/city/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Cities by Supplier
* Retrieve a list of unique cities where suppliers are based.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show cities for
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<KeyValuePairAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showUniqueCityList(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showUniqueCityListRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Cities by Supplier
* Retrieve a list of unique cities where suppliers are based.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show cities for
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<KeyValuePairAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showUniqueCityListWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showUniqueCityListRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Cities by Supplier
* Retrieve a list of unique cities where suppliers are based.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show cities for
* @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 showUniqueCityListWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showUniqueCityListRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Countries by Supplier
* Retrieve a list of unique countries where suppliers are based
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show countries for
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<KeyValuePairAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showUniqueCountryListRequestCreation(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 showUniqueCountryList", 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}/supplier/country/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Countries by Supplier
* Retrieve a list of unique countries where suppliers are based
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show countries for
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<KeyValuePairAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showUniqueCountryList(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showUniqueCountryListRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Countries by Supplier
* Retrieve a list of unique countries where suppliers are based
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show countries for
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<KeyValuePairAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showUniqueCountryListWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showUniqueCountryListRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Countries by Supplier
* Retrieve a list of unique countries where suppliers are based
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier The company ID to show countries for
* @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 showUniqueCountryListWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showUniqueCountryListRequestCreation(companyIdentifier, winkVersion, accept);
}
}