/**
* 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.urls.commerce.customer.accounts;
import com.mozu.api.MozuUrl;
import com.mozu.api.utils.UrlFormatter;
import org.joda.time.DateTime;
public class CustomerAttributeUrl
{
/**
* Get Resource Url for GetAccountAttribute
* @param accountId Unique identifier of the customer account.
* @param attributeFQN The fully qualified name of the attribute, which is a user defined attribute identifier.
* @param responseFields Use this field to include those fields which are not included by default.
* @return String Resource Url
*/
public static MozuUrl getAccountAttributeUrl(Integer accountId, String attributeFQN, String responseFields)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/attributes/{attributeFQN}?responseFields={responseFields}");
formatter.formatUrl("accountId", accountId);
formatter.formatUrl("attributeFQN", attributeFQN);
formatter.formatUrl("responseFields", responseFields);
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
}
/**
* Get Resource Url for GetAccountAttributes
* @param accountId Unique identifier of the customer account.
* @param filter
* @param pageSize
* @param responseFields Use this field to include those fields which are not included by default.
* @param sortBy
* @param startIndex
* @return String Resource Url
*/
public static MozuUrl getAccountAttributesUrl(Integer accountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/attributes?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}");
formatter.formatUrl("accountId", accountId);
formatter.formatUrl("filter", filter);
formatter.formatUrl("pageSize", pageSize);
formatter.formatUrl("responseFields", responseFields);
formatter.formatUrl("sortBy", sortBy);
formatter.formatUrl("startIndex", startIndex);
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
}
/**
* Get Resource Url for AddAccountAttribute
* @param accountId Unique identifier of the customer account.
* @param responseFields Use this field to include those fields which are not included by default.
* @return String Resource Url
*/
public static MozuUrl addAccountAttributeUrl(Integer accountId, String responseFields)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/attributes?responseFields={responseFields}");
formatter.formatUrl("accountId", accountId);
formatter.formatUrl("responseFields", responseFields);
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
}
/**
* Get Resource Url for UpdateAccountAttribute
* @param accountId Unique identifier of the customer account.
* @param attributeFQN The fully qualified name of the attribute, which is a user defined attribute identifier.
* @param responseFields Use this field to include those fields which are not included by default.
* @return String Resource Url
*/
public static MozuUrl updateAccountAttributeUrl(Integer accountId, String attributeFQN, String responseFields)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/attributes/{attributeFQN}?responseFields={responseFields}");
formatter.formatUrl("accountId", accountId);
formatter.formatUrl("attributeFQN", attributeFQN);
formatter.formatUrl("responseFields", responseFields);
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
}
/**
* Get Resource Url for DeleteAccountAttribute
* @param accountId Unique identifier of the customer account.
* @param attributeFQN The fully qualified name of the attribute, which is a user defined attribute identifier.
* @return String Resource Url
*/
public static MozuUrl deleteAccountAttributeUrl(Integer accountId, String attributeFQN)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/attributes/{attributeFQN}");
formatter.formatUrl("accountId", accountId);
formatter.formatUrl("attributeFQN", attributeFQN);
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
}
}