Пример #1
0
 /**
  * Removes an item from the wish list specified in the request.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient mozuClient=DeleteWishlistItemClient( wishlistId,  wishlistItemId);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * </code></pre>
  *
  * @param wishlistId Unique identifier of the wish list.
  * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
  * @return Mozu.Api.MozuClient
  */
 public static MozuClient deleteWishlistItemClient(String wishlistId, String wishlistItemId)
     throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.deleteWishlistItemUrl(
           wishlistId, wishlistItemId);
   String verb = "DELETE";
   MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Пример #2
0
 /**
  * Removes all items associated with a shopper wish list.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist> mozuClient=RemoveAllWishlistItemsClient( wishlistId);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * Wishlist wishlist = client.Result();
  * </code></pre>
  *
  * @param wishlistId Unique identifier of the wish list.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.Wishlist>
  * @see com.mozu.api.contracts.commerceruntime.wishlists.Wishlist
  */
 public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist>
     removeAllWishlistItemsClient(String wishlistId) throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.removeAllWishlistItemsUrl(wishlistId);
   String verb = "DELETE";
   Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.Wishlist.class;
   MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist> mozuClient =
       (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Пример #3
0
 /**
  * Retrieves the details of an item in a shopper wish list.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=GetWishlistItemClient( wishlistId,  wishlistItemId,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * WishlistItem wishlistItem = client.Result();
  * </code></pre>
  *
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param wishlistId Unique identifier of the wish list.
  * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
  * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
  */
 public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
     getWishlistItemClient(String wishlistId, String wishlistItemId, String responseFields)
         throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.getWishlistItemUrl(
           responseFields, wishlistId, wishlistItemId);
   String verb = "GET";
   Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem.class;
   MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient =
       (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Пример #4
0
 /**
  * Retrieves a list of items in a shopper wish list according to any specified filter and sort
  * criteria.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient=GetWishlistItemsClient( wishlistId,  startIndex,  pageSize,  sortBy,  filter,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * WishlistItemCollection wishlistItemCollection = client.Result();
  * </code></pre>
  *
  * @param filter A set of expressions that consist of a field, operator, and value and represent
  *     search parameter syntax when filtering results of a query. Valid operators include equals
  *     (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to
  *     (ge), less than or equal to (le), starts with (sw), or contains (cont). For example -
  *     "filter=IsDisplayed+eq+true"
  * @param pageSize The number of results to display on each page when creating paged results from
  *     a query. The maximum value is 200.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param sortBy The property by which to sort results and whether the results appear in ascending
  *     (a-z) order, represented by ASC or in descending (z-a) order, represented by DESC. The
  *     sortBy parameter follows an available property. For example: "sortBy=productCode+asc"
  * @param startIndex When creating paged results from a query, this value indicates the zero-based
  *     offset in the complete result set where the returned entities begin. For example, with a
  *     PageSize of 25, to get the 51st through the 75th items, use startIndex=3.
  * @param wishlistId Unique identifier of the wish list.
  * @return Mozu.Api.MozuClient
  *     <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>
  * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection
  */
 public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>
     getWishlistItemsClient(
         String wishlistId,
         Integer startIndex,
         Integer pageSize,
         String sortBy,
         String filter,
         String responseFields)
         throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.getWishlistItemsUrl(
           filter, pageSize, responseFields, sortBy, startIndex, wishlistId);
   String verb = "GET";
   Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection.class;
   MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient =
       (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }