All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mozu.api.clients.commerce.LocationClient Maven / Gradle / Ivy

Go to download

Mozu Java is a SDK that enables you to create robust Java applications that integrate with the Mozu platform

There is a newer version: 2.6.1-RC1
Show newest version
/**
 *     This code was auto-generated by a Codezu.     
 *
 *     Changes to this file may cause incorrect behavior and will be lost if
 *     the code is regenerated.
 */
package com.mozu.api.clients.commerce;

import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;
import org.joda.time.DateTime;
import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;

/** 
 * Use the Location resource to retrieve details about a location from a  hosted storefront.
 * 
 */
public class LocationClient {
	
	/**
	 * 
	 * 


	 * MozuClient mozuClient=GetLocationClient( locationCode);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Location location = client.Result();
	 * 

* @param locationCode The unique, user-defined code that identifies a location. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.Location */ public static MozuClient getLocationClient(String locationCode) throws Exception { return getLocationClient( locationCode, null, null); } /** * *


	 * MozuClient mozuClient=GetLocationClient( locationCode,  includeAttributeDefinition,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Location location = client.Result();
	 * 

* @param includeAttributeDefinition True if you want to include the custom attribute defintion for the location. * @param locationCode The unique, user-defined code that identifies a location. * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.Location */ public static MozuClient getLocationClient(String locationCode, Boolean includeAttributeDefinition, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.LocationUrl.getLocationUrl(includeAttributeDefinition, locationCode, responseFields); String verb = "GET"; Class clz = com.mozu.api.contracts.location.Location.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); return mozuClient; } /** * *


	 * MozuClient mozuClient=GetLocationsInUsageTypeClient( locationUsageType);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * LocationCollection locationCollection = client.Result();
	 * 

* @param locationUsageType System-defined location usage type code, which is DS for direct ship, SP for in-store pickup, or storeFinder. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.LocationCollection */ public static MozuClient getLocationsInUsageTypeClient(String locationUsageType) throws Exception { return getLocationsInUsageTypeClient( locationUsageType, null, null, null, null, null, null); } /** * *


	 * MozuClient mozuClient=GetLocationsInUsageTypeClient( locationUsageType,  startIndex,  pageSize,  sortBy,  filter,  includeAttributeDefinition,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * LocationCollection locationCollection = client.Result();
	 * 

* @param filter A set of filter expressions representing the search parameters for a query. This parameter is optional. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for a list of supported filters. * @param includeAttributeDefinition True if you want to include the custom attribute defintion for the location. * @param locationUsageType System-defined location usage type code, which is DS for direct ship, SP for in-store pickup, or storeFinder. * @param pageSize 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 this parameter set to 25, to get the 51st through the 75th items, set startIndex to 50. * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @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. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for more information. * @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 pageSize set to 25, to get the 51st through the 75th items, set this parameter to 50. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.LocationCollection */ public static MozuClient getLocationsInUsageTypeClient(String locationUsageType, Integer startIndex, Integer pageSize, String sortBy, String filter, Boolean includeAttributeDefinition, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.LocationUrl.getLocationsInUsageTypeUrl(filter, includeAttributeDefinition, locationUsageType, pageSize, responseFields, sortBy, startIndex); String verb = "GET"; Class clz = com.mozu.api.contracts.location.LocationCollection.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); return mozuClient; } /** * *


	 * MozuClient mozuClient=GetDirectShipLocationClient();
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Location location = client.Result();
	 * 

* @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.Location */ public static MozuClient getDirectShipLocationClient() throws Exception { return getDirectShipLocationClient( null, null); } /** * *


	 * MozuClient mozuClient=GetDirectShipLocationClient( includeAttributeDefinition,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Location location = client.Result();
	 * 

* @param includeAttributeDefinition * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.Location */ public static MozuClient getDirectShipLocationClient(Boolean includeAttributeDefinition, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.LocationUrl.getDirectShipLocationUrl(includeAttributeDefinition, responseFields); String verb = "GET"; Class clz = com.mozu.api.contracts.location.Location.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); return mozuClient; } /** * *


	 * MozuClient mozuClient=GetInStorePickupLocationClient( locationCode);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Location location = client.Result();
	 * 

* @param locationCode The unique, user-defined code that identifies a location. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.Location */ public static MozuClient getInStorePickupLocationClient(String locationCode) throws Exception { return getInStorePickupLocationClient( locationCode, null, null); } /** * *


	 * MozuClient mozuClient=GetInStorePickupLocationClient( locationCode,  includeAttributeDefinition,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Location location = client.Result();
	 * 

* @param includeAttributeDefinition True if you want to include the custom attribute definition for the location. * @param locationCode The unique, user-defined code that identifies a location. * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.Location */ public static MozuClient getInStorePickupLocationClient(String locationCode, Boolean includeAttributeDefinition, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.LocationUrl.getInStorePickupLocationUrl(includeAttributeDefinition, locationCode, responseFields); String verb = "GET"; Class clz = com.mozu.api.contracts.location.Location.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); return mozuClient; } /** * *


	 * MozuClient mozuClient=GetInStorePickupLocationsClient();
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * LocationCollection locationCollection = client.Result();
	 * 

* @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.LocationCollection */ public static MozuClient getInStorePickupLocationsClient() throws Exception { return getInStorePickupLocationsClient( null, null, null, null, null, null); } /** * *


	 * MozuClient mozuClient=GetInStorePickupLocationsClient( startIndex,  pageSize,  sortBy,  filter,  includeAttributeDefinition,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * LocationCollection locationCollection = client.Result();
	 * 

* @param filter A set of filter expressions representing the search parameters for a query. This parameter is optional. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for a list of supported filters. * @param includeAttributeDefinition True if you want to include the custom attribute definition for the location. * @param pageSize 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 this parameter set to 25, to get the 51st through the 75th items, set startIndex to 50. * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @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. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for more information. * @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 pageSize set to 25, to get the 51st through the 75th items, set this parameter to 50. * @return Mozu.Api.MozuClient * @see com.mozu.api.contracts.location.LocationCollection */ public static MozuClient getInStorePickupLocationsClient(Integer startIndex, Integer pageSize, String sortBy, String filter, Boolean includeAttributeDefinition, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.LocationUrl.getInStorePickupLocationsUrl(filter, includeAttributeDefinition, pageSize, responseFields, sortBy, startIndex); String verb = "GET"; Class clz = com.mozu.api.contracts.location.LocationCollection.class; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz); mozuClient.setVerb(verb); mozuClient.setResourceUrl(url); return mozuClient; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy