Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 /**
  * Deletes the location specified in the request.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient mozuClient=DeleteLocationClient( locationCode);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * </code></pre>
  *
  * @param locationCode The unique, user-defined code that identifies a location.
  * @return Mozu.Api.MozuClient
  */
 public static MozuClient deleteLocationClient(String locationCode) throws Exception {
   MozuUrl url = com.mozu.api.urls.commerce.admin.LocationUrl.deleteLocationUrl(locationCode);
   String verb = "DELETE";
   MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Exemplo n.º 4
0
 /**
  * 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();
 }
Exemplo n.º 5
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();
 }
Exemplo n.º 6
0
 /**
  * Retrieve the settings of a third-party application.
  *
  * <p>
  *
  * <pre><code>
  * Application application = new Application();
  * Application application = application.thirdPartyGetApplication( responseFields);
  * </code></pre>
  *
  * @param responseFields Use this field to include those fields which are not included by default.
  * @return com.mozu.api.contracts.sitesettings.application.Application
  * @see com.mozu.api.contracts.sitesettings.application.Application
  */
 public com.mozu.api.contracts.sitesettings.application.Application thirdPartyGetApplication(
     String responseFields) throws Exception {
   MozuClient<com.mozu.api.contracts.sitesettings.application.Application> client =
       com.mozu.api.clients.commerce.settings.ApplicationClient.thirdPartyGetApplicationClient(
           responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
 /**
  * Suggests possible search terms as the shopper enters search text.
  *
  * <p>
  *
  * <pre><code>
  * ProductSearchResult productsearchresult = new ProductSearchResult();
  * SearchSuggestionResult searchSuggestionResult = productsearchresult.suggest( query,  groups,  pageSize,  responseFields);
  * </code></pre>
  *
  * @param groups
  * @param pageSize The number of results to display on each page when creating paged results from
  *     a query. The maximum value is 200.
  * @param query A query entered for searches and facet range.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @return com.mozu.api.contracts.productruntime.SearchSuggestionResult
  * @see com.mozu.api.contracts.productruntime.SearchSuggestionResult
  */
 public com.mozu.api.contracts.productruntime.SearchSuggestionResult suggest(
     String query, String groups, Integer pageSize, String responseFields) throws Exception {
   MozuClient<com.mozu.api.contracts.productruntime.SearchSuggestionResult> client =
       com.mozu.api.clients.commerce.catalog.storefront.ProductSearchResultClient.suggestClient(
           query, groups, pageSize, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
 /**
  * Retrieves the details of the order handling fee configured for the site.
  *
  * <p>
  *
  * <pre><code>
  * SiteShippingHandlingFee siteshippinghandlingfee = new SiteShippingHandlingFee();
  * SiteShippingHandlingFee siteShippingHandlingFee = siteshippinghandlingfee.getOrderHandlingFee( responseFields);
  * </code></pre>
  *
  * @param responseFields Use this field to include those fields which are not included by default.
  * @return com.mozu.api.contracts.sitesettings.shipping.SiteShippingHandlingFee
  * @see com.mozu.api.contracts.sitesettings.shipping.SiteShippingHandlingFee
  */
 public com.mozu.api.contracts.sitesettings.shipping.SiteShippingHandlingFee getOrderHandlingFee(
     String responseFields) throws Exception {
   MozuClient<com.mozu.api.contracts.sitesettings.shipping.SiteShippingHandlingFee> client =
       com.mozu.api.clients.commerce.settings.shipping.SiteShippingHandlingFeeClient
           .getOrderHandlingFeeClient(responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 9
0
 /**
  * Retrieves the details of the product type specified in the request.
  *
  * <p>
  *
  * <pre><code>
  * ProductType producttype = new ProductType();
  * ProductType productType = producttype.getProductType( productTypeId,  responseFields);
  * </code></pre>
  *
  * @param productTypeId Identifier of the product type.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param dataViewMode DataViewMode
  * @return com.mozu.api.contracts.productadmin.ProductType
  * @see com.mozu.api.contracts.productadmin.ProductType
  */
 public com.mozu.api.contracts.productadmin.ProductType getProductType(
     Integer productTypeId, String responseFields) throws Exception {
   MozuClient<com.mozu.api.contracts.productadmin.ProductType> client =
       com.mozu.api.clients.commerce.catalog.admin.attributedefinition.ProductTypeClient
           .getProductTypeClient(_dataViewMode, productTypeId, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
 /**
  * This operation method is the external/public event entity used specifically in pull/poll event
  * scenarios.
  *
  * <p>
  *
  * <pre><code>
  * EventDeliverySummary eventdeliverysummary = new EventDeliverySummary();
  * EventDeliverySummary eventDeliverySummary = eventdeliverysummary.getDeliveryAttemptSummary( subscriptionId,  id,  responseFields);
  * </code></pre>
  *
  * @param id Unique identifier of the customer segment to retrieve.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param subscriptionId Unique identifier for a subscription, such as subscribing tenants for an
  *     event or to receive a notification.
  * @return com.mozu.api.contracts.event.EventDeliverySummary
  * @see com.mozu.api.contracts.event.EventDeliverySummary
  */
 public com.mozu.api.contracts.event.EventDeliverySummary getDeliveryAttemptSummary(
     String subscriptionId, Integer id, String responseFields) throws Exception {
   MozuClient<com.mozu.api.contracts.event.EventDeliverySummary> client =
       com.mozu.api.clients.event.push.subscriptions.EventDeliverySummaryClient
           .getDeliveryAttemptSummaryClient(subscriptionId, id, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 11
0
 /**
  * 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();
 }
 /**
  * Deletes the authentication ticket for the user by supplying the refresh token.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient mozuClient=DeleteUserAuthTicketClient( refreshToken);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * </code></pre>
  *
  * @param refreshToken Alphanumeric string used for access tokens. This token refreshes access for
  *     accounts by generating a new developer or application account authentication ticket after
  *     an access token expires.
  * @return Mozu.Api.MozuClient
  */
 public static MozuClient deleteUserAuthTicketClient(String refreshToken) throws Exception {
   MozuUrl url =
       com.mozu.api.urls.platform.adminuser.TenantAdminUserAuthTicketUrl.deleteUserAuthTicketUrl(
           refreshToken);
   String verb = "DELETE";
   MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Exemplo n.º 13
0
 /**
  * couponsets-coupons Get GetCoupon description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Coupon coupon = new Coupon();
  * Coupon coupon = coupon.getCoupon( couponSetCode,  couponCode,  includeCounts,  responseFields);
  * </code></pre>
  *
  * @param couponCode Code associated with the coupon to remove from the cart.
  * @param couponSetCode
  * @param includeCounts
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @return com.mozu.api.contracts.productadmin.Coupon
  * @see com.mozu.api.contracts.productadmin.Coupon
  */
 public com.mozu.api.contracts.productadmin.Coupon getCoupon(
     String couponSetCode, String couponCode, Boolean includeCounts, String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.productadmin.Coupon> client =
       com.mozu.api.clients.commerce.catalog.admin.couponsets.CouponClient.getCouponClient(
           couponSetCode, couponCode, includeCounts, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 14
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;
 }
Exemplo n.º 15
0
 /**
  * Retrieves a list of product types according to any specified filter criteria and sort options.
  *
  * <p>
  *
  * <pre><code>
  * ProductType producttype = new ProductType();
  * ProductTypeCollection productTypeCollection = producttype.getProductTypes( startIndex,  pageSize,  sortBy,  filter,  responseFields);
  * </code></pre>
  *
  * @param filter A set of filter expressions representing the search parameters for a query:
  *     eq=equals, ne=not equals, gt=greater than, lt = less than or equals, gt = greater than or
  *     equals, lt = less than or equals, sw = starts with, or cont = contains. Optional.
  * @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
  * @param startIndex
  * @param dataViewMode DataViewMode
  * @return com.mozu.api.contracts.productadmin.ProductTypeCollection
  * @see com.mozu.api.contracts.productadmin.ProductTypeCollection
  */
 public com.mozu.api.contracts.productadmin.ProductTypeCollection getProductTypes(
     Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.productadmin.ProductTypeCollection> client =
       com.mozu.api.clients.commerce.catalog.admin.attributedefinition.ProductTypeClient
           .getProductTypesClient(
               _dataViewMode, startIndex, pageSize, sortBy, filter, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 16
0
 /**
  * Deletes a contact for the specified customer account.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient mozuClient=DeleteAccountContactClient( accountId,  contactId);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * </code></pre>
  *
  * @param accountId Unique identifier of the customer account.
  * @param contactId Unique identifer of the customer account contact being updated.
  * @return Mozu.Api.MozuClient
  */
 public static MozuClient deleteAccountContactClient(Integer accountId, Integer contactId)
     throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.customer.accounts.CustomerContactUrl.deleteAccountContactUrl(
           accountId, contactId);
   String verb = "DELETE";
   MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Exemplo n.º 17
0
 /**
  *
  *
  * <pre><code>
  * FulfillmentAction fulfillmentaction = new FulfillmentAction();
  * Order order = fulfillmentaction.resendPackageFulfillmentEmail( action,  orderId,  responseFields);
  * </code></pre>
  *
  * @param orderId
  * @param responseFields
  * @param action
  * @return com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
  */
 public com.mozu.api.contracts.commerceruntime.orders.Order resendPackageFulfillmentEmail(
     com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action,
     String orderId,
     String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client =
       com.mozu.api.clients.commerce.orders.FulfillmentActionClient
           .resendPackageFulfillmentEmailClient(action, orderId, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 18
0
 /**
  * Creates a new physical location for the tenant specified in the request header.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.location.Location> mozuClient=AddLocationClient( location,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * Location location = client.Result();
  * </code></pre>
  *
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @param location Properties of a physical location a tenant uses to manage inventory and
  *     fulfills orders, provide store finder functionality, or both.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.location.Location>
  * @see com.mozu.api.contracts.location.Location
  * @see com.mozu.api.contracts.location.Location
  */
 public static MozuClient<com.mozu.api.contracts.location.Location> addLocationClient(
     com.mozu.api.contracts.location.Location location, String responseFields) throws Exception {
   MozuUrl url = com.mozu.api.urls.commerce.admin.LocationUrl.addLocationUrl(responseFields);
   String verb = "POST";
   Class<?> clz = com.mozu.api.contracts.location.Location.class;
   MozuClient<com.mozu.api.contracts.location.Location> mozuClient =
       (MozuClient<com.mozu.api.contracts.location.Location>) MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   mozuClient.setBody(location);
   return mozuClient;
 }
Exemplo n.º 19
0
 /**
  * orders-orderrefunds Post CreateRefund description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Refund refund = new Refund();
  * Refund refund = refund.createRefund( refund,  orderId,  responseFields);
  * </code></pre>
  *
  * @param orderId Unique identifier of the order.
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @param refund Mozu.CommerceRuntime.Contracts.Refunds.Refund ApiType DOCUMENT_HERE
  * @return com.mozu.api.contracts.commerceruntime.refunds.Refund
  * @see com.mozu.api.contracts.commerceruntime.refunds.Refund
  * @see com.mozu.api.contracts.commerceruntime.refunds.Refund
  */
 public com.mozu.api.contracts.commerceruntime.refunds.Refund createRefund(
     com.mozu.api.contracts.commerceruntime.refunds.Refund refund,
     String orderId,
     String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.refunds.Refund> client =
       com.mozu.api.clients.commerce.orders.RefundClient.createRefundClient(
           refund, orderId, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 20
0
 /**
  *
  *
  * <pre><code>
  * FulfillmentAction fulfillmentaction = new FulfillmentAction();
  * CountDownLatch latch = fulfillmentaction.resendPackageFulfillmentEmail( action,  orderId,  responseFields, callback );
  * latch.await()	 * </code></pre>
  *
  * @param orderId
  * @param responseFields
  * @param callback callback handler for asynchronous operations
  * @param action
  * @return com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.orders.Order
  * @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
  */
 public CountDownLatch resendPackageFulfillmentEmailAsync(
     com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action,
     String orderId,
     String responseFields,
     AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback)
     throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client =
       com.mozu.api.clients.commerce.orders.FulfillmentActionClient
           .resendPackageFulfillmentEmailClient(action, orderId, responseFields);
   client.setContext(_apiContext);
   return client.executeRequest(callback);
 }
Exemplo n.º 21
0
 /**
  * orders-orderrefunds Post CreateRefund description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Refund refund = new Refund();
  * CountDownLatch latch = refund.createRefund( refund,  orderId,  responseFields, callback );
  * latch.await()	 * </code></pre>
  *
  * @param orderId Unique identifier of the order.
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @param callback callback handler for asynchronous operations
  * @param refund Mozu.CommerceRuntime.Contracts.Refunds.Refund ApiType DOCUMENT_HERE
  * @return com.mozu.api.contracts.commerceruntime.refunds.Refund
  * @see com.mozu.api.contracts.commerceruntime.refunds.Refund
  * @see com.mozu.api.contracts.commerceruntime.refunds.Refund
  */
 public CountDownLatch createRefundAsync(
     com.mozu.api.contracts.commerceruntime.refunds.Refund refund,
     String orderId,
     String responseFields,
     AsyncCallback<com.mozu.api.contracts.commerceruntime.refunds.Refund> callback)
     throws Exception {
   MozuClient<com.mozu.api.contracts.commerceruntime.refunds.Refund> client =
       com.mozu.api.clients.commerce.orders.RefundClient.createRefundClient(
           refund, orderId, responseFields);
   client.setContext(_apiContext);
   return client.executeRequest(callback);
 }
 /**
  * Searches the categories displayed on the web storefront for products or product options that
  * the shopper types in a search query.
  *
  * <p>
  *
  * <pre><code>
  * ProductSearchResult productsearchresult = new ProductSearchResult();
  * CountDownLatch latch = productsearchresult.search( query,  filter,  facetTemplate,  facetTemplateSubset,  facet,  facetFieldRangeQuery,  facetHierPrefix,  facetHierValue,  facetHierDepth,  facetStartIndex,  facetPageSize,  facetSettings,  facetValueFilter,  sortBy,  pageSize,  startIndex,  searchSettings,  enableSearchTuningRules,  searchTuningRuleContext,  searchTuningRuleCode,  facetTemplateExclude,  responseFields, callback );
  * latch.await()	 * </code></pre>
  *
  * @param enableSearchTuningRules
  * @param facet Individually list the facet fields you want to display in a web storefront product
  *     search.
  * @param facetFieldRangeQuery Display a range facet not specified in a template in a web
  *     storefront product search by listing the facet field and the range to display.
  * @param facetHierDepth If filtering using category facets in a hierarchy, the number of category
  *     hierarchy levels to return for the facet. This option is only available for category
  *     facets.
  * @param facetHierPrefix If filtering using category facets in a hierarchy, the parent categories
  *     you want to skip in the storefront product search. This parameter is only available for
  *     category facets.
  * @param facetHierValue If filtering using category facets in a hierarchy, the category in the
  *     hierarchy to begin faceting on. This parameter is only available for category facets.
  * @param facetPageSize The number of facet values to return for one or more facets.
  * @param facetSettings Settings reserved for future facet search functionality on a web
  *     storefront product search.
  * @param facetStartIndex When paging through multiple facets, the startIndex value for each
  *     facet.
  * @param facetTemplate The facet template to use on the storefront. A template displays all
  *     facets associated with the template on the web storefront product search. Currently, only
  *     category-level facet templates are available.
  * @param facetTemplateExclude
  * @param facetTemplateSubset Display a subset of the facets defined in the template specified in
  *     facetTemplate parameter.
  * @param facetValueFilter The facet values to apply to the filter.
  * @param filter A set of filter expressions representing the search parameters for a query:
  *     eq=equals, ne=not equals, gt=greater than, lt = less than or equals, gt = greater than or
  *     equals, lt = less than or equals, sw = starts with, or cont = contains. Optional.
  * @param pageSize The number of results to display on each page when creating paged results from
  *     a query. The maximum value is 200.
  * @param query A query entered for searches and facet range.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param searchSettings
  * @param searchTuningRuleCode
  * @param searchTuningRuleContext
  * @param sortBy
  * @param startIndex
  * @param callback callback handler for asynchronous operations
  * @return com.mozu.api.contracts.productruntime.ProductSearchResult
  * @see com.mozu.api.contracts.productruntime.ProductSearchResult
  */
 public CountDownLatch searchAsync(
     String query,
     String filter,
     String facetTemplate,
     String facetTemplateSubset,
     String facet,
     String facetFieldRangeQuery,
     String facetHierPrefix,
     String facetHierValue,
     String facetHierDepth,
     String facetStartIndex,
     String facetPageSize,
     String facetSettings,
     String facetValueFilter,
     String sortBy,
     Integer pageSize,
     Integer startIndex,
     String searchSettings,
     Boolean enableSearchTuningRules,
     String searchTuningRuleContext,
     String searchTuningRuleCode,
     String facetTemplateExclude,
     String responseFields,
     AsyncCallback<com.mozu.api.contracts.productruntime.ProductSearchResult> callback)
     throws Exception {
   MozuClient<com.mozu.api.contracts.productruntime.ProductSearchResult> client =
       com.mozu.api.clients.commerce.catalog.storefront.ProductSearchResultClient.searchClient(
           query,
           filter,
           facetTemplate,
           facetTemplateSubset,
           facet,
           facetFieldRangeQuery,
           facetHierPrefix,
           facetHierValue,
           facetHierDepth,
           facetStartIndex,
           facetPageSize,
           facetSettings,
           facetValueFilter,
           sortBy,
           pageSize,
           startIndex,
           searchSettings,
           enableSearchTuningRules,
           searchTuningRuleContext,
           searchTuningRuleCode,
           facetTemplateExclude,
           responseFields);
   client.setContext(_apiContext);
   return client.executeRequest(callback);
 }
 /**
  * Assigns a property attribute to the specified product type, according to the information
  * defined in the request.
  *
  * <p>
  *
  * <pre><code>
  * ProductTypeProperty producttypeproperty = new ProductTypeProperty();
  * CountDownLatch latch = producttypeproperty.addProperty( attributeInProductType,  productTypeId,  responseFields, callback );
  * latch.await()	 * </code></pre>
  *
  * @param productTypeId Identifier of the product type.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param callback callback handler for asynchronous operations
  * @param dataViewMode DataViewMode
  * @param attributeInProductType Properties of an attribute definition associated with a specific
  *     product type. When an attribute is applied to a product type, each product of that type
  *     maintains the same set of attributes.
  * @return com.mozu.api.contracts.productadmin.AttributeInProductType
  * @see com.mozu.api.contracts.productadmin.AttributeInProductType
  * @see com.mozu.api.contracts.productadmin.AttributeInProductType
  */
 public CountDownLatch addPropertyAsync(
     com.mozu.api.contracts.productadmin.AttributeInProductType attributeInProductType,
     Integer productTypeId,
     String responseFields,
     AsyncCallback<com.mozu.api.contracts.productadmin.AttributeInProductType> callback)
     throws Exception {
   MozuClient<com.mozu.api.contracts.productadmin.AttributeInProductType> client =
       com.mozu.api.clients.commerce.catalog.admin.attributedefinition.producttypes
           .ProductTypePropertyClient.addPropertyClient(
           _dataViewMode, attributeInProductType, productTypeId, responseFields);
   client.setContext(_apiContext);
   return client.executeRequest(callback);
 }
Exemplo n.º 24
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;
 }
 /**
  * Updates the definition of a property attribute for the specified product type.
  *
  * <p>
  *
  * <pre><code>
  * ProductTypeProperty producttypeproperty = new ProductTypeProperty();
  * AttributeInProductType attributeInProductType = producttypeproperty.updateProperty( attributeInProductType,  productTypeId,  attributeFQN,  responseFields);
  * </code></pre>
  *
  * @param attributeFQN The fully qualified name of the attribute, which is a user defined
  *     attribute identifier.
  * @param productTypeId Identifier of the product type.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param dataViewMode DataViewMode
  * @param attributeInProductType Properties of an attribute definition associated with a specific
  *     product type. When an attribute is applied to a product type, each product of that type
  *     maintains the same set of attributes.
  * @return com.mozu.api.contracts.productadmin.AttributeInProductType
  * @see com.mozu.api.contracts.productadmin.AttributeInProductType
  * @see com.mozu.api.contracts.productadmin.AttributeInProductType
  */
 public com.mozu.api.contracts.productadmin.AttributeInProductType updateProperty(
     com.mozu.api.contracts.productadmin.AttributeInProductType attributeInProductType,
     Integer productTypeId,
     String attributeFQN,
     String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.productadmin.AttributeInProductType> client =
       com.mozu.api.clients.commerce.catalog.admin.attributedefinition.producttypes
           .ProductTypePropertyClient.updatePropertyClient(
           _dataViewMode, attributeInProductType, productTypeId, attributeFQN, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
Exemplo n.º 26
0
 /**
  * Retrieves the specified contact for a customer account such as a billing or shipping contact.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.customer.CustomerContact> mozuClient=GetAccountContactClient( accountId,  contactId,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * CustomerContact customerContact = client.Result();
  * </code></pre>
  *
  * @param accountId Unique identifier of the customer account.
  * @param contactId Unique identifer of the customer account contact being updated.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.customer.CustomerContact>
  * @see com.mozu.api.contracts.customer.CustomerContact
  */
 public static MozuClient<com.mozu.api.contracts.customer.CustomerContact> getAccountContactClient(
     Integer accountId, Integer contactId, String responseFields) throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.customer.accounts.CustomerContactUrl.getAccountContactUrl(
           accountId, contactId, responseFields);
   String verb = "GET";
   Class<?> clz = com.mozu.api.contracts.customer.CustomerContact.class;
   MozuClient<com.mozu.api.contracts.customer.CustomerContact> mozuClient =
       (MozuClient<com.mozu.api.contracts.customer.CustomerContact>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Exemplo n.º 27
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;
 }
Exemplo n.º 28
0
 /**
  * Retrieves a list of all locations associated with a tenant, according to any filter and sort
  * criteria specified in the request.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.location.LocationCollection> mozuClient=GetLocationsClient( startIndex,  pageSize,  sortBy,  filter,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * LocationCollection locationCollection = 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.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.location.LocationCollection>
  * @see com.mozu.api.contracts.location.LocationCollection
  */
 public static MozuClient<com.mozu.api.contracts.location.LocationCollection> getLocationsClient(
     Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields)
     throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.admin.LocationUrl.getLocationsUrl(
           filter, pageSize, responseFields, sortBy, startIndex);
   String verb = "GET";
   Class<?> clz = com.mozu.api.contracts.location.LocationCollection.class;
   MozuClient<com.mozu.api.contracts.location.LocationCollection> mozuClient =
       (MozuClient<com.mozu.api.contracts.location.LocationCollection>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   return mozuClient;
 }
Exemplo n.º 29
0
 /**
  * couponsets-coupons Get GetCoupons description DOCUMENT_HERE
  *
  * <p>
  *
  * <pre><code>
  * Coupon coupon = new Coupon();
  * CouponCollection couponCollection = coupon.getCoupons( couponSetCode,  startIndex,  pageSize,  sortBy,  filter,  includeCounts,  responseFields);
  * </code></pre>
  *
  * @param couponSetCode
  * @param filter A set of filter expressions representing the search parameters for a query:
  *     eq=equals, ne=not equals, gt=greater than, lt = less than or equals, gt = greater than or
  *     equals, lt = less than or equals, sw = starts with, or cont = contains. Optional.
  * @param includeCounts
  * @param pageSize The number of results to display on each page when creating paged results from
  *     a query. The amount is divided and displayed on the `pageCount `amount of pages. The
  *     default is 20 and maximum value is 200 per page.
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @param sortBy The element to sort the results by and the channel in which the results appear.
  *     Either ascending (a-z) or descending (z-a) channel. Optional.
  * @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`.
  * @return com.mozu.api.contracts.productadmin.CouponCollection
  * @see com.mozu.api.contracts.productadmin.CouponCollection
  */
 public com.mozu.api.contracts.productadmin.CouponCollection getCoupons(
     String couponSetCode,
     Integer startIndex,
     Integer pageSize,
     String sortBy,
     String filter,
     Boolean includeCounts,
     String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.productadmin.CouponCollection> client =
       com.mozu.api.clients.commerce.catalog.admin.couponsets.CouponClient.getCouponsClient(
           couponSetCode, startIndex, pageSize, sortBy, filter, includeCounts, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }
 /**
  * Retrieves a collection of data for delivery attempts of events and notifications. These are
  * notifications sent to subscribing sites and tenants. A paged list is returned sorted and
  * filtered per the entered parameters.
  *
  * <p>
  *
  * <pre><code>
  * EventDeliverySummary eventdeliverysummary = new EventDeliverySummary();
  * EventDeliverySummaryCollection eventDeliverySummaryCollection = eventdeliverysummary.getDeliveryAttemptSummaries( subscriptionId,  startIndex,  pageSize,  sortBy,  filter,  responseFields);
  * </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 amount is divided and displayed on the `pageCount `amount of pages. The
  *     default is 20 and maximum value is 200 per page.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param sortBy The element to sort the results by and the channel in which the results appear.
  *     Either ascending (a-z) or descending (z-a) channel. Optional.
  * @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 subscriptionId Unique identifier for a subscription, such as subscribing tenants for an
  *     event or to receive a notification.
  * @return com.mozu.api.contracts.event.EventDeliverySummaryCollection
  * @see com.mozu.api.contracts.event.EventDeliverySummaryCollection
  */
 public com.mozu.api.contracts.event.EventDeliverySummaryCollection getDeliveryAttemptSummaries(
     String subscriptionId,
     Integer startIndex,
     Integer pageSize,
     String sortBy,
     String filter,
     String responseFields)
     throws Exception {
   MozuClient<com.mozu.api.contracts.event.EventDeliverySummaryCollection> client =
       com.mozu.api.clients.event.push.subscriptions.EventDeliverySummaryClient
           .getDeliveryAttemptSummariesClient(
               subscriptionId, startIndex, pageSize, sortBy, filter, responseFields);
   client.setContext(_apiContext);
   client.executeRequest();
   return client.getResult();
 }