Package com.abiquo.server.core.pricing

Examples of com.abiquo.server.core.pricing.CostCodeDto


      buffer.append("</currency>");
      return buffer.toString();
   }

   public static Object costcodePost() {
      CostCodeDto costcode = new CostCodeDto();
      costcode.setName("cost code");
      costcode.setDescription("description");
      return costcode;
   }
View Full Code Here


      costcode.setDescription("description");
      return costcode;
   }

   public static Object costcodePut() {
      CostCodeDto costcode = new CostCodeDto();
      costcode.setName("cost code");
      costcode.setDescription("description");
      costcode.setId(1);
      costcode.addLink(new RESTLink("edit", "http://localhost/api/config/costcodes/1"));
      return costcode;
   }
View Full Code Here

      return Iterables.getFirst(listCostCodes(filter), null);
   }

   @Override
   public CostCode getCostCode(Integer costCodeId) {
      CostCodeDto result = context.getApi().getPricingApi().getCostCode(costCodeId);
      return wrap(context, CostCode.class, result);
   }
View Full Code Here

         this.defaultPrices.addAll(prices);
         return this;
      }

      public CostCode build() {
         CostCodeDto dto = new CostCodeDto();
         dto.setName(name);
         dto.setDescription(description);
         CostCode costcode = new CostCode(context, dto);
         costcode.setDefaultPrices(defaultPrices);
         return costcode;
      }
View Full Code Here

      return taskRef == null ? null : getTask(taskRef);
   }

   public CostCode getCostCode() {
      Integer costcodeId = target.getIdFromLink(ParentLinkName.COST_CODE);
      CostCodeDto costcode = context.getApi().getPricingApi().getCostCode(costcodeId);
      return wrap(context, CostCode.class, costcode);
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.pricing.CostCodeDto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.