Пример #1
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;
 }
Пример #2
0
 /**
  * Creates a new contact for a customer account such as a new shipping address.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.customer.CustomerContact> mozuClient=AddAccountContactClient( contact,  accountId,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * CustomerContact customerContact = client.Result();
  * </code></pre>
  *
  * @param accountId Unique identifier of the customer account.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param contact Contact information, including the contact's name, address, phone numbers, email
  *     addresses, and company (if supplied). Also indicates whether this is a billing, shipping,
  *     or billing and shipping contact.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.customer.CustomerContact>
  * @see com.mozu.api.contracts.customer.CustomerContact
  * @see com.mozu.api.contracts.customer.CustomerContact
  */
 public static MozuClient<com.mozu.api.contracts.customer.CustomerContact> addAccountContactClient(
     com.mozu.api.contracts.customer.CustomerContact contact,
     Integer accountId,
     String responseFields)
     throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.customer.accounts.CustomerContactUrl.addAccountContactUrl(
           accountId, responseFields);
   String verb = "POST";
   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);
   mozuClient.setBody(contact);
   return mozuClient;
 }
 /**
  * Validates the customer address supplied in the request.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.customer.AddressValidationResponse> mozuClient=ValidateAddressClient( addressValidationRequest,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * AddressValidationResponse addressValidationResponse = client.Result();
  * </code></pre>
  *
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param addressValidationRequest Properties of the address used for validation of the account's
  *     full address. This content may include multiple lines of an address, city, state/province,
  *     zip/postal code, and country.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.customer.AddressValidationResponse>
  * @see com.mozu.api.contracts.customer.AddressValidationResponse
  * @see com.mozu.api.contracts.customer.AddressValidationRequest
  */
 public static MozuClient<com.mozu.api.contracts.customer.AddressValidationResponse>
     validateAddressClient(
         com.mozu.api.contracts.customer.AddressValidationRequest addressValidationRequest,
         String responseFields)
         throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.customer.AddressValidationRequestUrl.validateAddressUrl(
           responseFields);
   String verb = "POST";
   Class<?> clz = com.mozu.api.contracts.customer.AddressValidationResponse.class;
   MozuClient<com.mozu.api.contracts.customer.AddressValidationResponse> mozuClient =
       (MozuClient<com.mozu.api.contracts.customer.AddressValidationResponse>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   mozuClient.setBody(addressValidationRequest);
   return mozuClient;
 }
 /**
  * Add a new order validation result to a submitted order.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult> mozuClient=AddValidationResultClient( validationResult,  orderId,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * OrderValidationResult orderValidationResult = client.Result();
  * </code></pre>
  *
  * @param orderId Unique identifier of the order.
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param validationResult Properties of the resulting order validation performed by an order
  *     validation capability.
  * @return Mozu.Api.MozuClient
  *     <com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult>
  * @see com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult
  * @see com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult
  */
 public static MozuClient<com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult>
     addValidationResultClient(
         com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult validationResult,
         String orderId,
         String responseFields)
         throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.orders.OrderValidationResultUrl.addValidationResultUrl(
           orderId, responseFields);
   String verb = "PUT";
   Class<?> clz = com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult.class;
   MozuClient<com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult> mozuClient =
       (MozuClient<com.mozu.api.contracts.commerceruntime.orders.OrderValidationResult>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   mozuClient.setBody(validationResult);
   return mozuClient;
 }
Пример #5
0
 /**
  * Adds a product in a site's catalog as an item in a shopper wish list.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=AddItemToWishlistClient( wishlistItem,  wishlistId,  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 wishlistItem Properties of an item in a shopper wish list.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
  * @see 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>
     addItemToWishlistClient(
         com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem wishlistItem,
         String wishlistId,
         String responseFields)
         throws Exception {
   MozuUrl url =
       com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.addItemToWishlistUrl(
           responseFields, wishlistId);
   String verb = "POST";
   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);
   mozuClient.setBody(wishlistItem);
   return mozuClient;
 }
 /**
  * Creates an authentication ticket for the supplied user to specify in API requests associated
  * with the supplied tenant.
  *
  * <p>
  *
  * <pre><code>
  * MozuClient<com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket> mozuClient=CreateUserAuthTicketClient( userAuthInfo,  tenantId,  responseFields);
  * client.setBaseAddress(url);
  * client.executeRequest();
  * TenantAdminUserAuthTicket tenantAdminUserAuthTicket = client.Result();
  * </code></pre>
  *
  * @param responseFields Use this field to include those fields which are not included by default.
  * @param tenantId Unique identifier of the development or production tenant for which to generate
  *     the user authentication ticket.
  * @param userAuthInfo Information required to authenticate a user.
  * @return Mozu.Api.MozuClient <com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket>
  * @see com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket
  * @see com.mozu.api.contracts.core.UserAuthInfo
  */
 public static MozuClient<com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket>
     createUserAuthTicketClient(
         com.mozu.api.contracts.core.UserAuthInfo userAuthInfo,
         Integer tenantId,
         String responseFields)
         throws Exception {
   MozuUrl url =
       com.mozu.api.urls.platform.adminuser.TenantAdminUserAuthTicketUrl.createUserAuthTicketUrl(
           responseFields, tenantId);
   String verb = "POST";
   Class<?> clz = com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket.class;
   MozuClient<com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket> mozuClient =
       (MozuClient<com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket>)
           MozuClientFactory.getInstance(clz);
   mozuClient.setVerb(verb);
   mozuClient.setResourceUrl(url);
   mozuClient.setBody(userAuthInfo);
   return mozuClient;
 }