Esempio n. 1
0
 /**
  * Retrieves the cart specified in the request.
  *
  * <p>
  *
  * <pre><code>
  * Cart cart = new Cart();
  * Cart cart = cart.getCart( cartId,  responseFields);
  * </code></pre>
  *
  * @param cartId Identifier of the cart to delete.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @return com.mozu.api.contracts.commerceruntime.carts.Cart
  * @see com.mozu.api.contracts.commerceruntime.carts.Cart
  */
 public com.mozu.api.contracts.commerceruntime.carts.Cart getCart(
     String cartId, String responseFields) throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.carts.Cart> client =
       com.mozu.api.clients.commerce.CartClient.getCartClient(cartId, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Esempio n. 2
0
 /**
  * Deletes the cart of the currently active shopper.
  *
  * <p>
  *
  * <pre><code>
  * Cart cart = new Cart();
  * cart.deleteCurrentCart();
  * </code></pre>
  *
  * @return
  */
 public void deleteCurrentCart() throws Exception {
   MozuClient client = com.mozu.api.clients.commerce.CartClient.deleteCurrentCartClient();
   client.setContext(_apiContext);
   client.executeRequest();
   client.cleanupHttpConnection();
 }