/**
  * Deletes the product type by providing the product type ID.
  *
  * <p>
  *
  * <pre><code>
  * ProductType producttype = new ProductType();
  * producttype.deleteProductType( productTypeId);
  * </code></pre>
  *
  * @param productTypeId Identifier of the product type.
  * @param dataViewMode DataViewMode
  * @return
  */
 public void deleteProductType(Integer productTypeId) throws Exception {
   MozuClient client =
       com.mozu.api.clients.commerce.catalog.admin.attributedefinition.ProductTypeClient
           .deleteProductTypeClient(_dataViewMode, productTypeId);
   client.setContext(_apiContext);
   client.executeRequest();
   client.cleanupHttpConnection();
 }
 /**
  * orders-orderrefunds Put ResendRefundEmail description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Refund refund = new Refund();
  * refund.resendRefundEmail( orderId,  refundId);
  * </code></pre>
  *
  * @param orderId Unique identifier of the order.
  * @param refundId
  * @return
  */
 public void resendRefundEmail(String orderId, String refundId) throws Exception {
   MozuClient client =
       com.mozu.api.clients.commerce.orders.RefundClient.resendRefundEmailClient(
           orderId, refundId);
   client.setContext(_apiContext);
   client.executeRequest();
   client.cleanupHttpConnection();
 }
 /**
  * couponsets-coupons Delete DeleteCoupon description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Coupon coupon = new Coupon();
  * coupon.deleteCoupon( couponSetCode,  couponCode);
  * </code></pre>
  *
  * @param couponCode Code associated with the coupon to remove from the cart.
  * @param couponSetCode
  * @return
  */
 public void deleteCoupon(String couponSetCode, String couponCode) throws Exception {
   MozuClient client =
       com.mozu.api.clients.commerce.catalog.admin.couponsets.CouponClient.deleteCouponClient(
           couponSetCode, couponCode);
   client.setContext(_apiContext);
   client.executeRequest();
   client.cleanupHttpConnection();
 }
 /**
  * couponsets-coupons Post AddCoupons description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Coupon coupon = new Coupon();
  * coupon.addCoupons( coupons,  couponSetCode);
  * </code></pre>
  *
  * @param couponSetCode
  * @param coupons Mozu.ProductAdmin.Contracts.Coupon ApiType DOCUMENT_HERE
  * @return
  * @see com.mozu.api.contracts.productadmin.Coupon
  */
 public void addCoupons(
     List<com.mozu.api.contracts.productadmin.Coupon> coupons, String couponSetCode)
     throws Exception {
   MozuClient client =
       com.mozu.api.clients.commerce.catalog.admin.couponsets.CouponClient.addCouponsClient(
           coupons, couponSetCode);
   client.setContext(_apiContext);
   client.executeRequest();
   client.cleanupHttpConnection();
 }
Exemple #5
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();
 }