travel.wink.sdk.affiliate.browse.api.BrowseApi Maven / Gradle / Ivy
Show all versions of affiliate-browse-sdk-java Show documentation
package travel.wink.sdk.affiliate.browse.api;
import travel.wink.sdk.affiliate.browse.invoker.ApiClient;
import travel.wink.sdk.affiliate.browse.model.CountryAffiliate;
import travel.wink.sdk.affiliate.browse.model.DynamicSellerListRequestAffiliate;
import travel.wink.sdk.affiliate.browse.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.browse.model.GeoNameAffiliate;
import travel.wink.sdk.affiliate.browse.model.InventorySupplierAffiliate;
import travel.wink.sdk.affiliate.browse.model.InventoryViewAffiliate;
import travel.wink.sdk.affiliate.browse.model.PageInventorySupplierAffiliate;
import travel.wink.sdk.affiliate.browse.model.PageInventoryViewAffiliate;
import travel.wink.sdk.affiliate.browse.model.UpdateCuratedList400Response;
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-10-04T20:20:14.805203539+07:00[Asia/Bangkok]")
public class BrowseApi {
private ApiClient apiClient;
public BrowseApi() {
this(new ApiClient());
}
@Autowired
public BrowseApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Show Supplier Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCitiesForInventoryRequestCreation(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 showCitiesForInventory", 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}/browse/supplier/city/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Supplier Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showCitiesForInventory(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCitiesForInventoryRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Supplier Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<GeoNameAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showCitiesForInventoryWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCitiesForInventoryRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Supplier Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner 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 showCitiesForInventoryWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showCitiesForInventoryRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Show Inventory Cities
* Retrieve list of cities affiliate has access to.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCitiesForInventory1RequestCreation(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 showCitiesForInventory1", 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}/browse/inventory/city/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Inventory Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showCitiesForInventory1(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCitiesForInventory1RequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Inventory Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<GeoNameAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showCitiesForInventory1WithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCitiesForInventory1RequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Inventory Cities
* Retrieve list of cities affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List cities for inventory on behalf of this owner 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 showCitiesForInventory1WithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showCitiesForInventory1RequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Show Inventory Countries
* Retrieve list of countries affiliate has access to.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<CountryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCountriesForInventoryRequestCreation(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 showCountriesForInventory", 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}/browse/inventory/country/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Inventory Countries
* Retrieve list of countries affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<CountryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showCountriesForInventory(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCountriesForInventoryRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Inventory Countries
* Retrieve list of countries affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<CountryAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showCountriesForInventoryWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCountriesForInventoryRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Inventory Countries
* Retrieve list of countries affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner 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 showCountriesForInventoryWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showCountriesForInventoryRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Show Supplier Countries
* Retrieve list of countries affiliate has access to.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<CountryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCountriesForInventorySupplierRequestCreation(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 showCountriesForInventorySupplier", 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}/browse/supplier/country/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Supplier Countries
* Retrieve list of countries affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<CountryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showCountriesForInventorySupplier(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCountriesForInventorySupplierRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Supplier Countries
* Retrieve list of countries affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<CountryAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showCountriesForInventorySupplierWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCountriesForInventorySupplierRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Supplier Countries
* Retrieve list of countries affiliate has access to.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List countries for inventory on behalf of this owner 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 showCountriesForInventorySupplierWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showCountriesForInventorySupplierRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Inventory Search
* Retrieves a paginated result set of inventory based on the search criteria of the caller.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return PageInventoryViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showDynamicSellerInventoryRequestCreation(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = dynamicSellerListRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showDynamicSellerInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'dynamicSellerListRequestAffiliate' is set
if (dynamicSellerListRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'dynamicSellerListRequestAffiliate' when calling showDynamicSellerInventory", 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}/browse/inventory/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Inventory Search
* Retrieves a paginated result set of inventory based on the search criteria of the caller.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return PageInventoryViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showDynamicSellerInventory(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDynamicSellerInventoryRequestCreation(companyIdentifier, dynamicSellerListRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Inventory Search
* Retrieves a paginated result set of inventory based on the search criteria of the caller.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<PageInventoryViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showDynamicSellerInventoryWithHttpInfo(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDynamicSellerInventoryRequestCreation(companyIdentifier, dynamicSellerListRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Inventory Search
* Retrieves a paginated result set of inventory based on the search criteria of the caller.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showDynamicSellerInventoryWithResponseSpec(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
return showDynamicSellerInventoryRequestCreation(companyIdentifier, dynamicSellerListRequestAffiliate, winkVersion);
}
/**
* Supplier Search by Saved Search
* Retrieves a paginated result set based on the given list identifier.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory supplier on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return PageInventorySupplierAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showDynamicSellerInventoryByIdRequestCreation(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, 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 showDynamicSellerInventoryById", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'dynamicListIdentifier' is set
if (dynamicListIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'dynamicListIdentifier' when calling showDynamicSellerInventoryById", 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("dynamicListIdentifier", dynamicListIdentifier);
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));
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "displayCurrency", displayCurrency));
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}/browse/supplier/grid/{dynamicListIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Supplier Search by Saved Search
* Retrieves a paginated result set based on the given list identifier.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory supplier on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return PageInventorySupplierAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showDynamicSellerInventoryById(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDynamicSellerInventoryByIdRequestCreation(companyIdentifier, dynamicListIdentifier, page, size, displayCurrency, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Supplier Search by Saved Search
* Retrieves a paginated result set based on the given list identifier.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory supplier on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<PageInventorySupplierAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showDynamicSellerInventoryByIdWithHttpInfo(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDynamicSellerInventoryByIdRequestCreation(companyIdentifier, dynamicListIdentifier, page, size, displayCurrency, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Supplier Search by Saved Search
* Retrieves a paginated result set based on the given list identifier.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory supplier on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @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 showDynamicSellerInventoryByIdWithResponseSpec(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
return showDynamicSellerInventoryByIdRequestCreation(companyIdentifier, dynamicListIdentifier, page, size, displayCurrency, winkVersion, accept);
}
/**
* Inventory Search by Saved Search
* Retrieves a paginated result set based on the given saved search ID.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Limit the size of results.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return PageInventoryViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showDynamicSellerInventoryById1RequestCreation(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, 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 showDynamicSellerInventoryById1", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'dynamicListIdentifier' is set
if (dynamicListIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'dynamicListIdentifier' when calling showDynamicSellerInventoryById1", 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("dynamicListIdentifier", dynamicListIdentifier);
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));
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "displayCurrency", displayCurrency));
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}/browse/inventory/grid/{dynamicListIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Inventory Search by Saved Search
* Retrieves a paginated result set based on the given saved search ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Limit the size of results.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return PageInventoryViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showDynamicSellerInventoryById1(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDynamicSellerInventoryById1RequestCreation(companyIdentifier, dynamicListIdentifier, page, size, displayCurrency, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Inventory Search by Saved Search
* Retrieves a paginated result set based on the given saved search ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Limit the size of results.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<PageInventoryViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showDynamicSellerInventoryById1WithHttpInfo(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDynamicSellerInventoryById1RequestCreation(companyIdentifier, dynamicListIdentifier, page, size, displayCurrency, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Inventory Search by Saved Search
* Retrieves a paginated result set based on the given saved search ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param dynamicListIdentifier Browse inventory on behalf of this dynamic list identifier.
* @param page Skip to page.
* @param size Limit the size of results.
* @param displayCurrency Indicate which currency to display prices in.
* @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 showDynamicSellerInventoryById1WithResponseSpec(String companyIdentifier, String dynamicListIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
return showDynamicSellerInventoryById1RequestCreation(companyIdentifier, dynamicListIdentifier, page, size, displayCurrency, winkVersion, accept);
}
/**
* Show Supplier
* Retrieves supplier details based on existing sales channel ID.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param supplierIdentifier Browse inventory supplier on behalf of this supplier identifier.
* @param salesChannelIdentifier Browse inventory supplier on behalf of this sales channel identifier.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventorySupplierAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showInventorySupplierRequestCreation(String companyIdentifier, String supplierIdentifier, String salesChannelIdentifier, String displayCurrency, 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 showInventorySupplier", 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 showInventorySupplier", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'salesChannelIdentifier' is set
if (salesChannelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'salesChannelIdentifier' when calling showInventorySupplier", 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);
pathParams.put("salesChannelIdentifier", salesChannelIdentifier);
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, "displayCurrency", displayCurrency));
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}/browse/supplier/{supplierIdentifier}/sales-channel/{salesChannelIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Supplier
* Retrieves supplier details based on existing sales channel ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param supplierIdentifier Browse inventory supplier on behalf of this supplier identifier.
* @param salesChannelIdentifier Browse inventory supplier on behalf of this sales channel identifier.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventorySupplierAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showInventorySupplier(String companyIdentifier, String supplierIdentifier, String salesChannelIdentifier, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showInventorySupplierRequestCreation(companyIdentifier, supplierIdentifier, salesChannelIdentifier, displayCurrency, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Supplier
* Retrieves supplier details based on existing sales channel ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param supplierIdentifier Browse inventory supplier on behalf of this supplier identifier.
* @param salesChannelIdentifier Browse inventory supplier on behalf of this sales channel identifier.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventorySupplierAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showInventorySupplierWithHttpInfo(String companyIdentifier, String supplierIdentifier, String salesChannelIdentifier, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showInventorySupplierRequestCreation(companyIdentifier, supplierIdentifier, salesChannelIdentifier, displayCurrency, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Supplier
* Retrieves supplier details based on existing sales channel ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param supplierIdentifier Browse inventory supplier on behalf of this supplier identifier.
* @param salesChannelIdentifier Browse inventory supplier on behalf of this sales channel identifier.
* @param displayCurrency Indicate which currency to display prices in.
* @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 showInventorySupplierWithResponseSpec(String companyIdentifier, String supplierIdentifier, String salesChannelIdentifier, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
return showInventorySupplierRequestCreation(companyIdentifier, supplierIdentifier, salesChannelIdentifier, displayCurrency, winkVersion, accept);
}
/**
* Latest Inventory
* Retrieves a list of latest available inventory.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<InventoryViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showLatestInventoryRequestCreation(String companyIdentifier, Integer page, Integer size, String displayCurrency, 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 showLatestInventory", 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));
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "displayCurrency", displayCurrency));
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}/browse/inventory/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Latest Inventory
* Retrieves a list of latest available inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<InventoryViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showLatestInventory(String companyIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showLatestInventoryRequestCreation(companyIdentifier, page, size, displayCurrency, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Latest Inventory
* Retrieves a list of latest available inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<InventoryViewAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showLatestInventoryWithHttpInfo(String companyIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showLatestInventoryRequestCreation(companyIdentifier, page, size, displayCurrency, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Latest Inventory
* Retrieves a list of latest available inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @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 showLatestInventoryWithResponseSpec(String companyIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
return showLatestInventoryRequestCreation(companyIdentifier, page, size, displayCurrency, winkVersion, accept);
}
/**
* Latest Suppliers
* Retrieves a list of latest available inventory suppliers.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<InventorySupplierAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showLatestInventorySupplierListRequestCreation(String companyIdentifier, Integer page, Integer size, String displayCurrency, 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 showLatestInventorySupplierList", 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));
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "displayCurrency", displayCurrency));
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}/browse/supplier/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Latest Suppliers
* Retrieves a list of latest available inventory suppliers.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<InventorySupplierAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showLatestInventorySupplierList(String companyIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showLatestInventorySupplierListRequestCreation(companyIdentifier, page, size, displayCurrency, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Latest Suppliers
* Retrieves a list of latest available inventory suppliers.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<InventorySupplierAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showLatestInventorySupplierListWithHttpInfo(String companyIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showLatestInventorySupplierListRequestCreation(companyIdentifier, page, size, displayCurrency, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Latest Suppliers
* Retrieves a list of latest available inventory suppliers.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier on behalf of this owner identifier.
* @param page Skip to page.
* @param size Skip to page.
* @param displayCurrency Indicate which currency to display prices in.
* @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 showLatestInventorySupplierListWithResponseSpec(String companyIdentifier, Integer page, Integer size, String displayCurrency, String winkVersion, String accept) throws WebClientResponseException {
return showLatestInventorySupplierListRequestCreation(companyIdentifier, page, size, displayCurrency, winkVersion, accept);
}
/**
* Supplier Search
* Retrieves a paginated result set of suppliers of inventory based on the search criteria of the caller.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier suppliers on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return PageInventorySupplierAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSuppliersForDynamicSellerInventoryRequestCreation(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = dynamicSellerListRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showSuppliersForDynamicSellerInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'dynamicSellerListRequestAffiliate' is set
if (dynamicSellerListRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'dynamicSellerListRequestAffiliate' when calling showSuppliersForDynamicSellerInventory", 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}/browse/supplier/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Supplier Search
* Retrieves a paginated result set of suppliers of inventory based on the search criteria of the caller.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier suppliers on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return PageInventorySupplierAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSuppliersForDynamicSellerInventory(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSuppliersForDynamicSellerInventoryRequestCreation(companyIdentifier, dynamicSellerListRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Supplier Search
* Retrieves a paginated result set of suppliers of inventory based on the search criteria of the caller.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier suppliers on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<PageInventorySupplierAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSuppliersForDynamicSellerInventoryWithHttpInfo(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSuppliersForDynamicSellerInventoryRequestCreation(companyIdentifier, dynamicSellerListRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Supplier Search
* Retrieves a paginated result set of suppliers of inventory based on the search criteria of the caller.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Browse inventory supplier suppliers on behalf of this owner identifier.
* @param dynamicSellerListRequestAffiliate The dynamicSellerListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSuppliersForDynamicSellerInventoryWithResponseSpec(String companyIdentifier, DynamicSellerListRequestAffiliate dynamicSellerListRequestAffiliate, String winkVersion) throws WebClientResponseException {
return showSuppliersForDynamicSellerInventoryRequestCreation(companyIdentifier, dynamicSellerListRequestAffiliate, winkVersion);
}
}