Exemplo n.º 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;
 }