/** * 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.returns; import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter; import org.joda.time.DateTime; public class PackageUrl { /** * Get Resource Url for GetPackageLabel * @param packageId Unique identifier of the package for which to retrieve the label. * @param returnAsBase64Png Specifies whether to return the RMA label image as Base64-encoded PNG image instead of as a byte array encoded in the original image format. The default is . * @param returnId Unique identifier of the return whose items you want to get. * @return String Resource Url */ public static MozuUrl getPackageLabelUrl(String packageId, Boolean returnAsBase64Png, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages/{packageId}/label?returnAsBase64Png={returnAsBase64Png}"); formatter.formatUrl("packageId", packageId); formatter.formatUrl("returnAsBase64Png", returnAsBase64Png); formatter.formatUrl("returnId", returnId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for GetPackage * @param packageId Unique identifier of the package for which to retrieve the label. * @param responseFields Use this field to include those fields which are not included by default. * @param returnId Unique identifier of the return whose items you want to get. * @return String Resource Url */ public static MozuUrl getPackageUrl(String packageId, String responseFields, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages/{packageId}?responseFields={responseFields}"); formatter.formatUrl("packageId", packageId); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("returnId", returnId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for CreatePackage * @param responseFields Use this field to include those fields which are not included by default. * @param returnId Unique identifier of the return whose items you want to get. * @return String Resource Url */ public static MozuUrl createPackageUrl(String responseFields, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("returnId", returnId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for UpdatePackage * @param packageId Unique identifier of the package for which to retrieve the label. * @param responseFields Use this field to include those fields which are not included by default. * @param returnId Unique identifier of the return whose items you want to get. * @return String Resource Url */ public static MozuUrl updatePackageUrl(String packageId, String responseFields, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages/{packageId}?responseFields={responseFields}"); formatter.formatUrl("packageId", packageId); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("returnId", returnId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } /** * Get Resource Url for DeletePackage * @param packageId Unique identifier of the package for which to retrieve the label. * @param returnId Unique identifier of the return whose items you want to get. * @return String Resource Url */ public static MozuUrl deletePackageUrl(String packageId, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages/{packageId}"); formatter.formatUrl("packageId", packageId); formatter.formatUrl("returnId", returnId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } }