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

travel.wink.sdk.affiliate.inventory.api.GridsApi 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.CreateStaticSellerListSyndicationEntryRequestAffiliate;
import travel.wink.sdk.affiliate.inventory.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.inventory.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.inventory.model.SellerInventoryListViewAffiliate;
import travel.wink.sdk.affiliate.inventory.model.ShowSupplierUrl400Response;
import travel.wink.sdk.affiliate.inventory.model.UpsertSellerInventoryListRequestAffiliate;

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 GridsApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Create Grid
     * Create a new curated / saved search list
     * 

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create list owned by this owner identifier. * @param upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return SellerInventoryListViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec createSellerInventoryListRequestCreation(String companyIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSellerInventoryListRequestAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSellerInventoryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'upsertSellerInventoryListRequestAffiliate' is set if (upsertSellerInventoryListRequestAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'upsertSellerInventoryListRequestAffiliate' when calling createSellerInventoryList", 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}/grids", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Create Grid * Create a new curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create list owned by this owner identifier. * @param upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return SellerInventoryListViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono createSellerInventoryList(String companyIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSellerInventoryListRequestCreation(companyIdentifier, upsertSellerInventoryListRequestAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Create Grid * Create a new curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create list owned by this owner identifier. * @param upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<SellerInventoryListViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> createSellerInventoryListWithHttpInfo(String companyIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSellerInventoryListRequestCreation(companyIdentifier, upsertSellerInventoryListRequestAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Create Grid * Create a new curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param companyIdentifier Create list owned by this owner identifier. * @param upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec createSellerInventoryListWithResponseSpec(String companyIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { return createSellerInventoryListRequestCreation(companyIdentifier, upsertSellerInventoryListRequestAffiliate, winkVersion); } /** * Add List 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 createStaticSellerListSyndicationEntryRequestAffiliate The createStaticSellerListSyndicationEntryRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return BooleanResponseAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec createSellerInventoryListSyndicationEntryRequestCreation(String companyIdentifier, CreateStaticSellerListSyndicationEntryRequestAffiliate createStaticSellerListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = createStaticSellerListSyndicationEntryRequestAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSellerInventoryListSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'createStaticSellerListSyndicationEntryRequestAffiliate' is set if (createStaticSellerListSyndicationEntryRequestAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'createStaticSellerListSyndicationEntryRequestAffiliate' when calling createSellerInventoryListSyndicationEntry", 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}/grids/syndication/entry", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Add List 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 createStaticSellerListSyndicationEntryRequestAffiliate The createStaticSellerListSyndicationEntryRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return BooleanResponseAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono createSellerInventoryListSyndicationEntry(String companyIdentifier, CreateStaticSellerListSyndicationEntryRequestAffiliate createStaticSellerListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSellerInventoryListSyndicationEntryRequestCreation(companyIdentifier, createStaticSellerListSyndicationEntryRequestAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Add List 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 createStaticSellerListSyndicationEntryRequestAffiliate The createStaticSellerListSyndicationEntryRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<BooleanResponseAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> createSellerInventoryListSyndicationEntryWithHttpInfo(String companyIdentifier, CreateStaticSellerListSyndicationEntryRequestAffiliate createStaticSellerListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSellerInventoryListSyndicationEntryRequestCreation(companyIdentifier, createStaticSellerListSyndicationEntryRequestAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Add List 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 createStaticSellerListSyndicationEntryRequestAffiliate The createStaticSellerListSyndicationEntryRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec createSellerInventoryListSyndicationEntryWithResponseSpec(String companyIdentifier, CreateStaticSellerListSyndicationEntryRequestAffiliate createStaticSellerListSyndicationEntryRequestAffiliate, String winkVersion) throws WebClientResponseException { return createSellerInventoryListSyndicationEntryRequestCreation(companyIdentifier, createStaticSellerListSyndicationEntryRequestAffiliate, winkVersion); } /** * Delete Grid * Remove a curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update list owned by this owner identifier. * @param listIdentifier Delete curated list 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 removeSellerInventoryListRequestCreation(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 removeSellerInventoryList", 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 removeSellerInventoryList", 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}/grids/{listIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete Grid * Remove a curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update list owned by this owner identifier. * @param listIdentifier Delete curated list 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 removeSellerInventoryList(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Delete Grid * Remove a curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update list owned by this owner identifier. * @param listIdentifier Delete curated list 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> removeSellerInventoryListWithHttpInfo(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Delete Grid * Remove a curated / saved search list *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Update list owned by this owner identifier. * @param listIdentifier Delete curated list 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 removeSellerInventoryListWithResponseSpec(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException { return removeSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept); } /** * Show Grid * Retrieve a specific curated / saved search list. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param listIdentifier Retrieve list with this identifier. * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return SellerInventoryListViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showSellerInventoryListRequestCreation(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 showSellerInventoryList", 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 showSellerInventoryList", 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}/grids/{listIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Grid * Retrieve a specific curated / saved search list. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param listIdentifier Retrieve list with this identifier. * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return SellerInventoryListViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showSellerInventoryList(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Grid * Retrieve a specific curated / saved search list. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param listIdentifier Retrieve list with this identifier. * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<SellerInventoryListViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showSellerInventoryListWithHttpInfo(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Grid * Retrieve a specific curated / saved search list. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param listIdentifier Retrieve list 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 showSellerInventoryListWithResponseSpec(String companyIdentifier, String listIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, winkVersion, accept); } /** * Show Grids * Retrieve curated / saved search list lists. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<SellerInventoryListViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showSellerInventoryListsRequestCreation(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 showSellerInventoryLists", 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}/grids/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Grids * Retrieve curated / saved search list lists. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<SellerInventoryListViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showSellerInventoryLists(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSellerInventoryListsRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType); } /** * Show Grids * Retrieve curated / saved search list lists. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by this owner identifier. * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<SellerInventoryListViewAffiliate>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showSellerInventoryListsWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSellerInventoryListsRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType); } /** * Show Grids * Retrieve curated / saved search list lists. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Show seller inventory lists owned by 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 showSellerInventoryListsWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showSellerInventoryListsRequestCreation(companyIdentifier, winkVersion, accept); } /** * Update Grid * Update an existing curated / saved search list. *

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 upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return SellerInventoryListViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec updateSellerInventoryListRequestCreation(String companyIdentifier, String listIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSellerInventoryListRequestAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateSellerInventoryList", 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 updateSellerInventoryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'upsertSellerInventoryListRequestAffiliate' is set if (upsertSellerInventoryListRequestAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'upsertSellerInventoryListRequestAffiliate' when calling updateSellerInventoryList", 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}/grids/{listIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update Grid * Update an existing curated / saved search list. *

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 upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return SellerInventoryListViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono updateSellerInventoryList(String companyIdentifier, String listIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, upsertSellerInventoryListRequestAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Update Grid * Update an existing curated / saved search list. *

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 upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<SellerInventoryListViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> updateSellerInventoryListWithHttpInfo(String companyIdentifier, String listIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, upsertSellerInventoryListRequestAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Update Grid * Update an existing curated / saved search list. *

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 upsertSellerInventoryListRequestAffiliate The upsertSellerInventoryListRequestAffiliate parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec updateSellerInventoryListWithResponseSpec(String companyIdentifier, String listIdentifier, UpsertSellerInventoryListRequestAffiliate upsertSellerInventoryListRequestAffiliate, String winkVersion) throws WebClientResponseException { return updateSellerInventoryListRequestCreation(companyIdentifier, listIdentifier, upsertSellerInventoryListRequestAffiliate, winkVersion); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy