travel.wink.sdk.affiliate.api.ShareableLinksApi Maven / Gradle / Ivy
Show all versions of affiliate-sdk-java Show documentation
package travel.wink.sdk.affiliate.api;
import travel.wink.sdk.affiliate.invoker.ApiClient;
import travel.wink.sdk.affiliate.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.model.SellerUrlViewAffiliate;
import travel.wink.sdk.affiliate.model.ShowSellerUrl400Response;
import travel.wink.sdk.affiliate.model.SimpleMultimediaAffiliate;
import travel.wink.sdk.affiliate.model.UpsertSellerUrlRequestAffiliate;
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 ShareableLinksApi {
private ApiClient apiClient;
public ShareableLinksApi() {
this(new ApiClient());
}
@Autowired
public ShareableLinksApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create Link
* Create a new shareable link
* 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 link owned by this owner identifier.
* @param upsertSellerUrlRequestAffiliate The upsertSellerUrlRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerUrlViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createSellerUrlRequestCreation(String companyIdentifier, UpsertSellerUrlRequestAffiliate upsertSellerUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSellerUrlRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSellerUrl", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSellerUrlRequestAffiliate' is set
if (upsertSellerUrlRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSellerUrlRequestAffiliate' when calling createSellerUrl", 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}/url", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create Link
* Create a new shareable link
* 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 link owned by this owner identifier.
* @param upsertSellerUrlRequestAffiliate The upsertSellerUrlRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerUrlViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createSellerUrl(String companyIdentifier, UpsertSellerUrlRequestAffiliate upsertSellerUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSellerUrlRequestCreation(companyIdentifier, upsertSellerUrlRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> createSellerUrlWithHttpInfo(String companyIdentifier, UpsertSellerUrlRequestAffiliate upsertSellerUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSellerUrlRequestCreation(companyIdentifier, upsertSellerUrlRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Delete Link
* Delete a shareable link
* 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 link owned by this owner identifier.
* @param sellerUrlIdentifier Remove url with this identifier.
* @param winkVersion The winkVersion parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec removeSellerUrlRequestCreation(String companyIdentifier, String sellerUrlIdentifier, 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 removeSellerUrl", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'sellerUrlIdentifier' is set
if (sellerUrlIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'sellerUrlIdentifier' when calling removeSellerUrl", 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("sellerUrlIdentifier", sellerUrlIdentifier);
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}/url/{sellerUrlIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete Link
* Delete a shareable link
* 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 link owned by this owner identifier.
* @param sellerUrlIdentifier Remove url with this identifier.
* @param winkVersion The winkVersion parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono removeSellerUrl(String companyIdentifier, String sellerUrlIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSellerUrlRequestCreation(companyIdentifier, sellerUrlIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> removeSellerUrlWithHttpInfo(String companyIdentifier, String sellerUrlIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSellerUrlRequestCreation(companyIdentifier, sellerUrlIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Inventory Media
* Retrieve a list of media for this channel inventory identifier
* 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 Owner identifier.
* @param channelInventoryIdentifier Channel inventory identifier.
* @param winkVersion The winkVersion parameter
* @return List<SimpleMultimediaAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showInventoryMediaRequestCreation(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 showInventoryMedia", 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 showInventoryMedia", 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}/url/inventory/{channelInventoryIdentifier}/media/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Inventory Media
* Retrieve a list of media for this channel inventory identifier
* 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 Owner identifier.
* @param channelInventoryIdentifier Channel inventory identifier.
* @param winkVersion The winkVersion parameter
* @return List<SimpleMultimediaAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showInventoryMedia(String companyIdentifier, String channelInventoryIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showInventoryMediaRequestCreation(companyIdentifier, channelInventoryIdentifier, winkVersion).bodyToFlux(localVarReturnType);
}
public Mono>> showInventoryMediaWithHttpInfo(String companyIdentifier, String channelInventoryIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showInventoryMediaRequestCreation(companyIdentifier, channelInventoryIdentifier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Show Link
* Retrieve a specific shareable url for this seller
* 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 link owned by this owner identifier.
* @param sellerUrlIdentifier Show link with this identifier.
* @param winkVersion The winkVersion parameter
* @return SellerUrlViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSellerUrlRequestCreation(String companyIdentifier, String sellerUrlIdentifier, 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 showSellerUrl", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'sellerUrlIdentifier' is set
if (sellerUrlIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'sellerUrlIdentifier' when calling showSellerUrl", 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("sellerUrlIdentifier", sellerUrlIdentifier);
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}/url/{sellerUrlIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Link
* Retrieve a specific shareable url for this seller
* 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 link owned by this owner identifier.
* @param sellerUrlIdentifier Show link with this identifier.
* @param winkVersion The winkVersion parameter
* @return SellerUrlViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSellerUrl(String companyIdentifier, String sellerUrlIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerUrlRequestCreation(companyIdentifier, sellerUrlIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> showSellerUrlWithHttpInfo(String companyIdentifier, String sellerUrlIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerUrlRequestCreation(companyIdentifier, sellerUrlIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Links
* Retrieve list of shareable urls for this seller
* 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 links list owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @return List<SellerUrlViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSellerUrlsRequestCreation(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 showSellerUrls", 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}/url/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Links
* Retrieve list of shareable urls for this seller
* 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 links list owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @return List<SellerUrlViewAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showSellerUrls(String companyIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerUrlsRequestCreation(companyIdentifier, winkVersion).bodyToFlux(localVarReturnType);
}
public Mono>> showSellerUrlsWithHttpInfo(String companyIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSellerUrlsRequestCreation(companyIdentifier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Update link
* Modify a shareable link
* 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 link owned by this owner identifier.
* @param sellerUrlIdentifier Update url with this identifier.
* @param upsertSellerUrlRequestAffiliate The upsertSellerUrlRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerUrlViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateSellerUrlRequestCreation(String companyIdentifier, String sellerUrlIdentifier, UpsertSellerUrlRequestAffiliate upsertSellerUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSellerUrlRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateSellerUrl", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'sellerUrlIdentifier' is set
if (sellerUrlIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'sellerUrlIdentifier' when calling updateSellerUrl", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSellerUrlRequestAffiliate' is set
if (upsertSellerUrlRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSellerUrlRequestAffiliate' when calling updateSellerUrl", 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("sellerUrlIdentifier", sellerUrlIdentifier);
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}/url/{sellerUrlIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update link
* Modify a shareable link
* 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 link owned by this owner identifier.
* @param sellerUrlIdentifier Update url with this identifier.
* @param upsertSellerUrlRequestAffiliate The upsertSellerUrlRequestAffiliate parameter
* @param winkVersion The winkVersion parameter
* @return SellerUrlViewAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono updateSellerUrl(String companyIdentifier, String sellerUrlIdentifier, UpsertSellerUrlRequestAffiliate upsertSellerUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateSellerUrlRequestCreation(companyIdentifier, sellerUrlIdentifier, upsertSellerUrlRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
public Mono> updateSellerUrlWithHttpInfo(String companyIdentifier, String sellerUrlIdentifier, UpsertSellerUrlRequestAffiliate upsertSellerUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateSellerUrlRequestCreation(companyIdentifier, sellerUrlIdentifier, upsertSellerUrlRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
}