public static MozuUrl validateProductUrl ( String productCode , String purchaseLocation , Integer quantity , String responseFields , Boolean skipDefaults , Boolean skipInventoryCheck ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/storefront/products/{productCode}/validate?skipInventoryCheck={skipInventoryCheck}&quantity={quantity}&skipDefaults={skipDefaults}&purchaseLocation={purchaseLocation}&responseFields={responseFields}" ) ; formatter . formatUrl ( "productCode" , productCode ) ; formatter . formatUrl ( "purchaseLocation" , purchaseLocation ) ; formatter . formatUrl ( "quantity" , quantity ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; formatter . formatUrl ( "skipDefaults" , skipDefaults ) ; formatter . formatUrl ( "skipInventoryCheck" , skipInventoryCheck ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for ValidateProduct