travel.wink.sdk.affiliate.inventory.api.RankedGridsApi Maven / Gradle / Ivy
package travel.wink.sdk.affiliate.inventory.api;
import travel.wink.sdk.affiliate.inventory.invoker.ApiClient;
import travel.wink.sdk.affiliate.inventory.model.BooleanResponseAffiliate;
import travel.wink.sdk.affiliate.inventory.model.CreateSellerInventoryRankedListSyndicationEntryRequestAffiliate;
import travel.wink.sdk.affiliate.inventory.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.inventory.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.inventory.model.SellerInventoryRankedListViewAffiliate;
import travel.wink.sdk.affiliate.inventory.model.ShowSupplierUrl400Response;
import travel.wink.sdk.affiliate.inventory.model.UpsertSellerInventoryRankedListRequestAffiliate;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-15T11:56:03.487909257+07:00[Asia/Bangkok]")
public class RankedGridsApi {
private ApiClient apiClient;
public RankedGridsApi() {
this(new ApiClient());
}
@Autowired
public RankedGridsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create Ranked Grid
* Create a new ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create list owned by this owner identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerInventoryRankedListViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createSellerInventoryRankedListRequestCreation(String companyIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSellerInventoryRankedListRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSellerInventoryRankedList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSellerInventoryRankedListRequestAffiliate' is set
if (upsertSellerInventoryRankedListRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSellerInventoryRankedListRequestAffiliate' when calling createSellerInventoryRankedList", 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}/ranked-grids", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create Ranked Grid
* Create a new ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create list owned by this owner identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerInventoryRankedListViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createSellerInventoryRankedList(String companyIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSellerInventoryRankedListRequestCreation(companyIdentifier, upsertSellerInventoryRankedListRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Create Ranked Grid
* Create a new ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create list owned by this owner identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<SellerInventoryRankedListViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> createSellerInventoryRankedListWithHttpInfo(String companyIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSellerInventoryRankedListRequestCreation(companyIdentifier, upsertSellerInventoryRankedListRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Create Ranked Grid
* Create a new ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create list owned by this owner identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createSellerInventoryRankedListWithResponseSpec(String companyIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
return createSellerInventoryRankedListRequestCreation(companyIdentifier, upsertSellerInventoryRankedListRequestAffiliate, winkVersion);
}
/**
* Add to WinkLinks
* Creates a new WinkLinks entry from the specified list ID.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Company identifier to create item for
* @param createSellerInventoryRankedListSyndicationEntryRequestAffiliate The createSellerInventoryRankedListSyndicationEntryRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return BooleanResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createSellerInventoryRankedListSyndicationEntryRequestCreation(String companyIdentifier, CreateSellerInventoryRankedListSyndicationEntryRequestAffiliate createSellerInventoryRankedListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = createSellerInventoryRankedListSyndicationEntryRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSellerInventoryRankedListSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'createSellerInventoryRankedListSyndicationEntryRequestAffiliate' is set
if (createSellerInventoryRankedListSyndicationEntryRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'createSellerInventoryRankedListSyndicationEntryRequestAffiliate' when calling createSellerInventoryRankedListSyndicationEntry", 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}/ranked-grids/syndication/entry", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Add to WinkLinks
* Creates a new WinkLinks entry from the specified list ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Company identifier to create item for
* @param createSellerInventoryRankedListSyndicationEntryRequestAffiliate The createSellerInventoryRankedListSyndicationEntryRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return BooleanResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createSellerInventoryRankedListSyndicationEntry(String companyIdentifier, CreateSellerInventoryRankedListSyndicationEntryRequestAffiliate createSellerInventoryRankedListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSellerInventoryRankedListSyndicationEntryRequestCreation(companyIdentifier, createSellerInventoryRankedListSyndicationEntryRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Add to WinkLinks
* Creates a new WinkLinks entry from the specified list ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Company identifier to create item for
* @param createSellerInventoryRankedListSyndicationEntryRequestAffiliate The createSellerInventoryRankedListSyndicationEntryRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<BooleanResponseAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> createSellerInventoryRankedListSyndicationEntryWithHttpInfo(String companyIdentifier, CreateSellerInventoryRankedListSyndicationEntryRequestAffiliate createSellerInventoryRankedListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSellerInventoryRankedListSyndicationEntryRequestCreation(companyIdentifier, createSellerInventoryRankedListSyndicationEntryRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Add to WinkLinks
* Creates a new WinkLinks entry from the specified list ID.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Company identifier to create item for
* @param createSellerInventoryRankedListSyndicationEntryRequestAffiliate The createSellerInventoryRankedListSyndicationEntryRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createSellerInventoryRankedListSyndicationEntryWithResponseSpec(String companyIdentifier, CreateSellerInventoryRankedListSyndicationEntryRequestAffiliate createSellerInventoryRankedListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException {
return createSellerInventoryRankedListSyndicationEntryRequestCreation(companyIdentifier, createSellerInventoryRankedListSyndicationEntryRequestAffiliate, winkVersion);
}
/**
* Delete Ranked Grid
* Delete a ranked grid
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Remove grid owned by this owner identifier.
* @param listIdentifier Delete grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec removeSellerInventoryRankedListRequestCreation(String companyIdentifier, String listIdentifier, 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 removeSellerInventoryRankedList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'listIdentifier' is set
if (listIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'listIdentifier' when calling removeSellerInventoryRankedList", 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("listIdentifier", listIdentifier);
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}/ranked-grids/{listIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete Ranked Grid
* Delete a ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Remove grid owned by this owner identifier.
* @param listIdentifier Delete grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono removeSellerInventoryRankedList(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Delete Ranked Grid
* Delete a ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Remove grid owned by this owner identifier.
* @param listIdentifier Delete grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RemoveEntryResponseAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> removeSellerInventoryRankedListWithHttpInfo(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Delete Ranked Grid
* Delete a ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Remove grid owned by this owner identifier.
* @param listIdentifier Delete grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec removeSellerInventoryRankedListWithResponseSpec(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return removeSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept);
}
/**
* Show Ranked Grid
* Retrieve a specific ranked grid.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve grid for owner identifier.
* @param listIdentifier Retrieve grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryRankedListViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSellerInventoryRankedListRequestCreation(String companyIdentifier, String listIdentifier, 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 showSellerInventoryRankedList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'listIdentifier' is set
if (listIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'listIdentifier' when calling showSellerInventoryRankedList", 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("listIdentifier", listIdentifier);
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}/ranked-grids/{listIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Ranked Grid
* Retrieve a specific ranked grid.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve grid for owner identifier.
* @param listIdentifier Retrieve grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryRankedListViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSellerInventoryRankedList(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Ranked Grid
* Retrieve a specific ranked grid.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve grid for owner identifier.
* @param listIdentifier Retrieve grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryRankedListViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSellerInventoryRankedListWithHttpInfo(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Ranked Grid
* Retrieve a specific ranked grid.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve grid for owner identifier.
* @param listIdentifier Retrieve grid with this identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSellerInventoryRankedListWithResponseSpec(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept);
}
/**
* Show Ranked Grids
* Retrieve list of ranked grids.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve list for owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<SellerInventoryRankedListViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSellerInventoryRankedListsRequestCreation(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 showSellerInventoryRankedLists", 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}/ranked-grids/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Ranked Grids
* Retrieve list of ranked grids.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve list for owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<SellerInventoryRankedListViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showSellerInventoryRankedLists(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerInventoryRankedListsRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Ranked Grids
* Retrieve list of ranked grids.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve list for owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<SellerInventoryRankedListViewAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showSellerInventoryRankedListsWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerInventoryRankedListsRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Ranked Grids
* Retrieve list of ranked grids.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Retrieve list for 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 showSellerInventoryRankedListsWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSellerInventoryRankedListsRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Update Ranked Grid
* Update existing ranked grid
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Update list owned by this owner identifier.
* @param listIdentifier Update list with this identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerInventoryRankedListViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateSellerInventoryRankedListRequestCreation(String companyIdentifier, String listIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSellerInventoryRankedListRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateSellerInventoryRankedList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'listIdentifier' is set
if (listIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'listIdentifier' when calling updateSellerInventoryRankedList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSellerInventoryRankedListRequestAffiliate' is set
if (upsertSellerInventoryRankedListRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSellerInventoryRankedListRequestAffiliate' when calling updateSellerInventoryRankedList", 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("listIdentifier", listIdentifier);
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}/ranked-grids/{listIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update Ranked Grid
* Update existing ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Update list owned by this owner identifier.
* @param listIdentifier Update list with this identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerInventoryRankedListViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono updateSellerInventoryRankedList(String companyIdentifier, String listIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, upsertSellerInventoryRankedListRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Update Ranked Grid
* Update existing ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Update list owned by this owner identifier.
* @param listIdentifier Update list with this identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<SellerInventoryRankedListViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> updateSellerInventoryRankedListWithHttpInfo(String companyIdentifier, String listIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, upsertSellerInventoryRankedListRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Update Ranked Grid
* Update existing ranked grid
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Update list owned by this owner identifier.
* @param listIdentifier Update list with this identifier.
* @param upsertSellerInventoryRankedListRequestAffiliate The upsertSellerInventoryRankedListRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updateSellerInventoryRankedListWithResponseSpec(String companyIdentifier, String listIdentifier, UpsertSellerInventoryRankedListRequestAffiliate upsertSellerInventoryRankedListRequestAffiliate, String winkVersion) throws WebClientResponseException {
return updateSellerInventoryRankedListRequestCreation(companyIdentifier, listIdentifier, upsertSellerInventoryRankedListRequestAffiliate, winkVersion);
}
}