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

travel.wink.sdk.affiliate.api.MapsApi Maven / Gradle / Ivy

There is a newer version: 30.5.15
Show newest version
package travel.wink.sdk.affiliate.api;

import travel.wink.sdk.affiliate.invoker.ApiClient;

import travel.wink.sdk.affiliate.model.AdvancedMapConfigurationAffiliate;
import travel.wink.sdk.affiliate.model.AdvancedMapConfigurationViewAffiliate;
import travel.wink.sdk.affiliate.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.model.InventoryMapMarkerAffiliate;
import travel.wink.sdk.affiliate.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.model.ShowSellerUrl400Response;

import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-03-06T16:56:30.815925180+07:00[Asia/Bangkok]")
public class MapsApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Create Map
     * Create a new advanced map configuration
     * 

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

201 - Created * @param companyIdentifier Create map owned by this owner identifier. * @param advancedMapConfigurationAffiliate The advancedMapConfigurationAffiliate parameter * @param winkVersion The winkVersion parameter * @return AdvancedMapConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec createAdvancedMapConfigurationRequestCreation(String companyIdentifier, AdvancedMapConfigurationAffiliate advancedMapConfigurationAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = advancedMapConfigurationAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createAdvancedMapConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'advancedMapConfigurationAffiliate' is set if (advancedMapConfigurationAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'advancedMapConfigurationAffiliate' when calling createAdvancedMapConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Create Map * Create a new advanced map configuration *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

201 - Created * @param companyIdentifier Create map owned by this owner identifier. * @param advancedMapConfigurationAffiliate The advancedMapConfigurationAffiliate parameter * @param winkVersion The winkVersion parameter * @return AdvancedMapConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono createAdvancedMapConfiguration(String companyIdentifier, AdvancedMapConfigurationAffiliate advancedMapConfigurationAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createAdvancedMapConfigurationRequestCreation(companyIdentifier, advancedMapConfigurationAffiliate, winkVersion).bodyToMono(localVarReturnType); } public Mono> createAdvancedMapConfigurationWithHttpInfo(String companyIdentifier, AdvancedMapConfigurationAffiliate advancedMapConfigurationAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createAdvancedMapConfigurationRequestCreation(companyIdentifier, advancedMapConfigurationAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Delete Map * Remove an advanced map configuration *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

202 - Accepted * @param companyIdentifier Remove map owned by this owner identifier. * @param mapIdentifier Remove map record with this identifier. * @param winkVersion The winkVersion parameter * @return RemoveEntryResponseAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec removeAdvancedMapConfigurationRequestCreation(String companyIdentifier, String mapIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling removeAdvancedMapConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'mapIdentifier' is set if (mapIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'mapIdentifier' when calling removeAdvancedMapConfiguration", 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("mapIdentifier", mapIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map/{mapIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete Map * Remove an advanced map configuration *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

202 - Accepted * @param companyIdentifier Remove map owned by this owner identifier. * @param mapIdentifier Remove map record with this identifier. * @param winkVersion The winkVersion parameter * @return RemoveEntryResponseAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono removeAdvancedMapConfiguration(String companyIdentifier, String mapIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeAdvancedMapConfigurationRequestCreation(companyIdentifier, mapIdentifier, winkVersion).bodyToMono(localVarReturnType); } public Mono> removeAdvancedMapConfigurationWithHttpInfo(String companyIdentifier, String mapIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeAdvancedMapConfigurationRequestCreation(companyIdentifier, mapIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show Map * Retrieve a specific map record *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Show map record owned by this owner identifier. * @param mapIdentifier Show map record with this identifier. * @param winkVersion The winkVersion parameter * @return AdvancedMapConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAdvancedMapConfigurationRequestCreation(String companyIdentifier, String mapIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showAdvancedMapConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'mapIdentifier' is set if (mapIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'mapIdentifier' when calling showAdvancedMapConfiguration", 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("mapIdentifier", mapIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map/{mapIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Map * Retrieve a specific map record *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Show map record owned by this owner identifier. * @param mapIdentifier Show map record with this identifier. * @param winkVersion The winkVersion parameter * @return AdvancedMapConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showAdvancedMapConfiguration(String companyIdentifier, String mapIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationRequestCreation(companyIdentifier, mapIdentifier, winkVersion).bodyToMono(localVarReturnType); } public Mono> showAdvancedMapConfigurationWithHttpInfo(String companyIdentifier, String mapIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationRequestCreation(companyIdentifier, mapIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show Map Marker * Retrieve map marker for individual channel inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Show map markers for map owned by this owner identifier. * @param channelInventoryIdentifier Show map marker for specific inventory. * @param winkVersion The winkVersion parameter * @return InventoryMapMarkerAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAdvancedMapConfigurationMapMarkerRequestCreation(String companyIdentifier, String channelInventoryIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showAdvancedMapConfigurationMapMarker", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'channelInventoryIdentifier' is set if (channelInventoryIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'channelInventoryIdentifier' when calling showAdvancedMapConfigurationMapMarker", 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("channelInventoryIdentifier", channelInventoryIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map/marker/{channelInventoryIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Map Marker * Retrieve map marker for individual channel inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Show map markers for map owned by this owner identifier. * @param channelInventoryIdentifier Show map marker for specific inventory. * @param winkVersion The winkVersion parameter * @return InventoryMapMarkerAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showAdvancedMapConfigurationMapMarker(String companyIdentifier, String channelInventoryIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationMapMarkerRequestCreation(companyIdentifier, channelInventoryIdentifier, winkVersion).bodyToMono(localVarReturnType); } public Mono> showAdvancedMapConfigurationMapMarkerWithHttpInfo(String companyIdentifier, String channelInventoryIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationMapMarkerRequestCreation(companyIdentifier, channelInventoryIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show Map Markers * Retrieve a list of advanced map configuration inventory markers by type *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Show map markers for list owned by this owner identifier. * @param listIdentifier Show map markers for list. * @param listType Indicate whether this list is a curated or dynamic list. * @param winkVersion The winkVersion parameter * @return List<InventoryMapMarkerAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAdvancedMapConfigurationMapMarkersRequestCreation(String companyIdentifier, String listIdentifier, String listType, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showAdvancedMapConfigurationMapMarkers", 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 showAdvancedMapConfigurationMapMarkers", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'listType' is set if (listType == null) { throw new WebClientResponseException("Missing the required parameter 'listType' when calling showAdvancedMapConfigurationMapMarkers", 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); pathParams.put("listType", listType); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map/markers/{listType}/{listIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Map Markers * Retrieve a list of advanced map configuration inventory markers by type *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Show map markers for list owned by this owner identifier. * @param listIdentifier Show map markers for list. * @param listType Indicate whether this list is a curated or dynamic list. * @param winkVersion The winkVersion parameter * @return List<InventoryMapMarkerAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showAdvancedMapConfigurationMapMarkers(String companyIdentifier, String listIdentifier, String listType, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationMapMarkersRequestCreation(companyIdentifier, listIdentifier, listType, winkVersion).bodyToFlux(localVarReturnType); } public Mono>> showAdvancedMapConfigurationMapMarkersWithHttpInfo(String companyIdentifier, String listIdentifier, String listType, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationMapMarkersRequestCreation(companyIdentifier, listIdentifier, listType, winkVersion).toEntityList(localVarReturnType); } /** * Show Maps * Retrieve list of existing maps. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier List maps owned by this owner identifier. * @param winkVersion The winkVersion parameter * @return List<AdvancedMapConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAdvancedMapConfigurationsRequestCreation(String companyIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showAdvancedMapConfigurations", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Maps * Retrieve list of existing maps. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier List maps owned by this owner identifier. * @param winkVersion The winkVersion parameter * @return List<AdvancedMapConfigurationViewAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showAdvancedMapConfigurations(String companyIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationsRequestCreation(companyIdentifier, winkVersion).bodyToFlux(localVarReturnType); } public Mono>> showAdvancedMapConfigurationsWithHttpInfo(String companyIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAdvancedMapConfigurationsRequestCreation(companyIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Update Map * Update an advanced map configuration *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Update map owned by this owner identifier. * @param mapIdentifier update map record with this identifier. * @param advancedMapConfigurationAffiliate The advancedMapConfigurationAffiliate parameter * @param winkVersion The winkVersion parameter * @return AdvancedMapConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec updateAdvancedMapConfigurationRequestCreation(String companyIdentifier, String mapIdentifier, AdvancedMapConfigurationAffiliate advancedMapConfigurationAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = advancedMapConfigurationAffiliate; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateAdvancedMapConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'mapIdentifier' is set if (mapIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'mapIdentifier' when calling updateAdvancedMapConfiguration", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'advancedMapConfigurationAffiliate' is set if (advancedMapConfigurationAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'advancedMapConfigurationAffiliate' when calling updateAdvancedMapConfiguration", 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("mapIdentifier", mapIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); final String[] localVarAccepts = { "*/*", "application/json", "application/xml", "text/xml", "text/plain" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/company/{companyIdentifier}/map/{mapIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update Map * Update an advanced map configuration *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

404 - Not Found *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param companyIdentifier Update map owned by this owner identifier. * @param mapIdentifier update map record with this identifier. * @param advancedMapConfigurationAffiliate The advancedMapConfigurationAffiliate parameter * @param winkVersion The winkVersion parameter * @return AdvancedMapConfigurationViewAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono updateAdvancedMapConfiguration(String companyIdentifier, String mapIdentifier, AdvancedMapConfigurationAffiliate advancedMapConfigurationAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateAdvancedMapConfigurationRequestCreation(companyIdentifier, mapIdentifier, advancedMapConfigurationAffiliate, winkVersion).bodyToMono(localVarReturnType); } public Mono> updateAdvancedMapConfigurationWithHttpInfo(String companyIdentifier, String mapIdentifier, AdvancedMapConfigurationAffiliate advancedMapConfigurationAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateAdvancedMapConfigurationRequestCreation(companyIdentifier, mapIdentifier, advancedMapConfigurationAffiliate, winkVersion).toEntity(localVarReturnType); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy