travel.wink.sdk.booking.api.ShoppingCartApi Maven / Gradle / Ivy
package travel.wink.sdk.booking.api;
import travel.wink.sdk.booking.invoker.ApiClient;
import travel.wink.sdk.booking.model.BooleanResponseAuthenticatedEntity;
import travel.wink.sdk.booking.model.CreateCart400Response;
import travel.wink.sdk.booking.model.GenericErrorMessage;
import travel.wink.sdk.booking.model.RealtimeShoppingCartAuthenticatedEntity;
import travel.wink.sdk.booking.model.RemoveEntryResponseAuthenticatedEntity;
import travel.wink.sdk.booking.model.UpsertShoppingCartItemRequestAuthenticatedEntity;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T20:21:21.186005100+07:00[Asia/Bangkok]")
public class ShoppingCartApi {
private ApiClient apiClient;
public ShoppingCartApi() {
this(new ApiClient());
}
@Autowired
public ShoppingCartApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create Shopping Cart
* Creates a shopping cart and adds item.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createCartRequestCreation(UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
Object postBody = upsertShoppingCartItemRequestAuthenticatedEntity;
// verify the required parameter 'upsertShoppingCartItemRequestAuthenticatedEntity' is set
if (upsertShoppingCartItemRequestAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertShoppingCartItemRequestAuthenticatedEntity' when calling createCart", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
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/shopping-cart", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create Shopping Cart
* Creates a shopping cart and adds item.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createCart(UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createCartRequestCreation(upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Create Shopping Cart
* Creates a shopping cart and adds item.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> createCartWithHttpInfo(UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createCartRequestCreation(upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion).toEntity(localVarReturnType);
}
/**
* Create Shopping Cart
* Creates a shopping cart and adds item.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createCartWithResponseSpec(UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
return createCartRequestCreation(upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion);
}
/**
* Create Shopping Carts
* Creates shopping carts and adds an item to each.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return List<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createCartsRequestCreation(List upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
Object postBody = upsertShoppingCartItemRequestAuthenticatedEntity;
// verify the required parameter 'upsertShoppingCartItemRequestAuthenticatedEntity' is set
if (upsertShoppingCartItemRequestAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertShoppingCartItemRequestAuthenticatedEntity' when calling createCarts", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
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/shopping-cart/list", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create Shopping Carts
* Creates shopping carts and adds an item to each.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return List<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux createCarts(List upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createCartsRequestCreation(upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* Create Shopping Carts
* Creates shopping carts and adds an item to each.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<RealtimeShoppingCartAuthenticatedEntity>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> createCartsWithHttpInfo(List upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createCartsRequestCreation(upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion).toEntityList(localVarReturnType);
}
/**
* Create Shopping Carts
* Creates shopping carts and adds an item to each.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createCartsWithResponseSpec(List upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
return createCartsRequestCreation(upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion);
}
/**
* Remove Shopping Cart
* Removes the cart. Not necessary as the cart has a TTL of only an hour anyway.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deleteCartRequestCreation(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'shoppingCartIdentifier' is set
if (shoppingCartIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartIdentifier' when calling deleteCart", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("shoppingCartIdentifier", shoppingCartIdentifier);
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/shopping-cart/{shoppingCartIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Remove Shopping Cart
* Removes the cart. Not necessary as the cart has a TTL of only an hour anyway.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono deleteCart(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartRequestCreation(shoppingCartIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Remove Shopping Cart
* Removes the cart. Not necessary as the cart has a TTL of only an hour anyway.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RemoveEntryResponseAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> deleteCartWithHttpInfo(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartRequestCreation(shoppingCartIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Remove Shopping Cart
* Removes the cart. Not necessary as the cart has a TTL of only an hour anyway.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to remove
* @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 deleteCartWithResponseSpec(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return deleteCartRequestCreation(shoppingCartIdentifier, winkVersion, accept);
}
/**
* Remove Shopping Cart Item
* Remove item from cart
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deleteCartItemRequestCreation(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'shoppingCartIdentifier' is set
if (shoppingCartIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartIdentifier' when calling deleteCartItem", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'shoppingCartItemIdentifier' is set
if (shoppingCartItemIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartItemIdentifier' when calling deleteCartItem", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("shoppingCartIdentifier", shoppingCartIdentifier);
pathParams.put("shoppingCartItemIdentifier", shoppingCartItemIdentifier);
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/shopping-cart/{shoppingCartIdentifier}/item/{shoppingCartItemIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Remove Shopping Cart Item
* Remove item from cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono deleteCartItem(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartItemRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Remove Shopping Cart Item
* Remove item from cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> deleteCartItemWithHttpInfo(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartItemRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Remove Shopping Cart Item
* Remove item from cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to remove
* @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 deleteCartItemWithResponseSpec(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return deleteCartItemRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, winkVersion, accept);
}
/**
* Remove Shopping Cart Item Ancillary
* Remove item ancillary from cart
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param shoppingCartItemAncillaryIdentifier Cart item ancillary to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deleteCartItemAncillaryRequestCreation(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String shoppingCartItemAncillaryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'shoppingCartIdentifier' is set
if (shoppingCartIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartIdentifier' when calling deleteCartItemAncillary", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'shoppingCartItemIdentifier' is set
if (shoppingCartItemIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartItemIdentifier' when calling deleteCartItemAncillary", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'shoppingCartItemAncillaryIdentifier' is set
if (shoppingCartItemAncillaryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartItemAncillaryIdentifier' when calling deleteCartItemAncillary", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("shoppingCartIdentifier", shoppingCartIdentifier);
pathParams.put("shoppingCartItemIdentifier", shoppingCartItemIdentifier);
pathParams.put("shoppingCartItemAncillaryIdentifier", shoppingCartItemAncillaryIdentifier);
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/shopping-cart/{shoppingCartIdentifier}/item/{shoppingCartItemIdentifier}/ancillary/{shoppingCartItemAncillaryIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Remove Shopping Cart Item Ancillary
* Remove item ancillary from cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param shoppingCartItemAncillaryIdentifier Cart item ancillary to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono deleteCartItemAncillary(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String shoppingCartItemAncillaryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartItemAncillaryRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, shoppingCartItemAncillaryIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Remove Shopping Cart Item Ancillary
* Remove item ancillary from cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param shoppingCartItemAncillaryIdentifier Cart item ancillary to remove
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> deleteCartItemAncillaryWithHttpInfo(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String shoppingCartItemAncillaryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartItemAncillaryRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, shoppingCartItemAncillaryIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Remove Shopping Cart Item Ancillary
* Remove item ancillary from cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param shoppingCartItemAncillaryIdentifier Cart item ancillary to remove
* @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 deleteCartItemAncillaryWithResponseSpec(String shoppingCartIdentifier, String shoppingCartItemIdentifier, String shoppingCartItemAncillaryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return deleteCartItemAncillaryRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, shoppingCartItemAncillaryIdentifier, winkVersion, accept);
}
/**
* Empty Shopping Carts
* Empties all carts.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return BooleanResponseAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec deleteCartsRequestCreation(String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// create path and map variables
final Map pathParams = new HashMap();
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/shopping-cart", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Empty Shopping Carts
* Empties all carts.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return BooleanResponseAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono deleteCarts(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartsRequestCreation(winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Empty Shopping Carts
* Empties all carts.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<BooleanResponseAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> deleteCartsWithHttpInfo(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return deleteCartsRequestCreation(winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Empty Shopping Carts
* Empties all carts.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @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 deleteCartsWithResponseSpec(String winkVersion, String accept) throws WebClientResponseException {
return deleteCartsRequestCreation(winkVersion, accept);
}
/**
* Empty Shopping Cart
* Empties selected cart.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to empty
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec emptyCartRequestCreation(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'shoppingCartIdentifier' is set
if (shoppingCartIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartIdentifier' when calling emptyCart", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("shoppingCartIdentifier", shoppingCartIdentifier);
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/shopping-cart/{shoppingCartIdentifier}/empty", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Empty Shopping Cart
* Empties selected cart.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to empty
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono emptyCart(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return emptyCartRequestCreation(shoppingCartIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Empty Shopping Cart
* Empties selected cart.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to empty
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> emptyCartWithHttpInfo(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return emptyCartRequestCreation(shoppingCartIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Empty Shopping Cart
* Empties selected cart.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to empty
* @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 emptyCartWithResponseSpec(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return emptyCartRequestCreation(shoppingCartIdentifier, winkVersion, accept);
}
/**
* Show Shopping Cart
* Display user's shopping cart
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to retrieve
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCartRequestCreation(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'shoppingCartIdentifier' is set
if (shoppingCartIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartIdentifier' when calling showCart", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("shoppingCartIdentifier", shoppingCartIdentifier);
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/shopping-cart/{shoppingCartIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Shopping Cart
* Display user's shopping cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to retrieve
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showCart(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCartRequestCreation(shoppingCartIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Shopping Cart
* Display user's shopping cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to retrieve
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showCartWithHttpInfo(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCartRequestCreation(shoppingCartIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Shopping Cart
* Display user's shopping cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to retrieve
* @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 showCartWithResponseSpec(String shoppingCartIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showCartRequestCreation(shoppingCartIdentifier, winkVersion, accept);
}
/**
* Show Shopping Carts
* Display all of user's shopping cart
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCartsRequestCreation(String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// create path and map variables
final Map pathParams = new HashMap();
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/shopping-cart/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Shopping Carts
* Display all of user's shopping cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showCarts(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCartsRequestCreation(winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Shopping Carts
* Display all of user's shopping cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<RealtimeShoppingCartAuthenticatedEntity>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showCartsWithHttpInfo(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCartsRequestCreation(winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Shopping Carts
* Display all of user's shopping cart
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @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 showCartsWithResponseSpec(String winkVersion, String accept) throws WebClientResponseException {
return showCartsRequestCreation(winkVersion, accept);
}
/**
* Update Shopping Cart Item
* Updates item in shopping cart.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateCartItemRequestCreation(String shoppingCartIdentifier, String shoppingCartItemIdentifier, UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
Object postBody = upsertShoppingCartItemRequestAuthenticatedEntity;
// verify the required parameter 'shoppingCartIdentifier' is set
if (shoppingCartIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartIdentifier' when calling updateCartItem", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'shoppingCartItemIdentifier' is set
if (shoppingCartItemIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'shoppingCartItemIdentifier' when calling updateCartItem", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertShoppingCartItemRequestAuthenticatedEntity' is set
if (upsertShoppingCartItemRequestAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertShoppingCartItemRequestAuthenticatedEntity' when calling updateCartItem", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("shoppingCartIdentifier", shoppingCartIdentifier);
pathParams.put("shoppingCartItemIdentifier", shoppingCartItemIdentifier);
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/shopping-cart/{shoppingCartIdentifier}/item/{shoppingCartItemIdentifier}", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update Shopping Cart Item
* Updates item in shopping cart.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return RealtimeShoppingCartAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono updateCartItem(String shoppingCartIdentifier, String shoppingCartItemIdentifier, UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateCartItemRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Update Shopping Cart Item
* Updates item in shopping cart.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<RealtimeShoppingCartAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> updateCartItemWithHttpInfo(String shoppingCartIdentifier, String shoppingCartItemIdentifier, UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateCartItemRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion).toEntity(localVarReturnType);
}
/**
* Update Shopping Cart Item
* Updates item in shopping cart.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param shoppingCartIdentifier Cart to update
* @param shoppingCartItemIdentifier Cart item to update
* @param upsertShoppingCartItemRequestAuthenticatedEntity The upsertShoppingCartItemRequestAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updateCartItemWithResponseSpec(String shoppingCartIdentifier, String shoppingCartItemIdentifier, UpsertShoppingCartItemRequestAuthenticatedEntity upsertShoppingCartItemRequestAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
return updateCartItemRequestCreation(shoppingCartIdentifier, shoppingCartItemIdentifier, upsertShoppingCartItemRequestAuthenticatedEntity, winkVersion);
}
}