/** * 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 CardUrl { /** * Get Resource Url for GetAccountCard * @param accountId Unique identifier of the customer account. * @param cardId Unique identifier of the card associated with the customer account billing contact. * @param responseFields Use this field to include those fields which are not included by default. * @return String Resource Url */ public static MozuUrl getAccountCardUrl(Integer accountId, String cardId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/cards/{cardId}?responseFields={responseFields}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("cardId", cardId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for GetAccountCards * @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 getAccountCardsUrl(Integer accountId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/cards?responseFields={responseFields}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for AddAccountCard * @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 addAccountCardUrl(Integer accountId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/cards?responseFields={responseFields}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for UpdateAccountCard * @param accountId Unique identifier of the customer account. * @param cardId Unique identifier of the card associated with the customer account billing contact. * @param responseFields Use this field to include those fields which are not included by default. * @return String Resource Url */ public static MozuUrl updateAccountCardUrl(Integer accountId, String cardId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/cards/{cardId}?responseFields={responseFields}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("cardId", cardId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for DeleteAccountCard * @param accountId Unique identifier of the customer account. * @param cardId Unique identifier of the card associated with the customer account billing contact. * @return String Resource Url */ public static MozuUrl deleteAccountCardUrl(Integer accountId, String cardId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/cards/{cardId}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("cardId", cardId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } }