Package com.abiquo.server.core.pricing

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


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

   public static Object pricingCostcodePut() {
      PricingCostCodeDto pricingcostcode = new PricingCostCodeDto();
      pricingcostcode.setId(1);
      pricingcostcode.setPrice(new BigDecimal("400"));
      pricingcostcode.addLink(new RESTLink("costcode", "http://localhost/api/config/costcodes/1"));
      pricingcostcode.addLink(new RESTLink("pricingtemplate", "http://localhost/api/config/pricingtemplates/1"));
      pricingcostcode.addLink(new RESTLink("edit", "http://localhost/api/config/pricingtemplates/1/costcodes/1"));
      return pricingcostcode;
   }
View Full Code Here


      return wrap(context, PricingCostCode.class, result.getCollection());
   }

   @Override
   public PricingCostCode getPricingCostCode(final Integer pricingTemplateId, final Integer pricingCostCodeId) {
      PricingCostCodeDto pricingcostcode = context.getApi().getPricingApi()
            .getPricingCostCode(pricingTemplateId, pricingCostCodeId);
      return wrap(context, PricingCostCode.class, pricingcostcode);
   }
View Full Code Here

         this.price = price;
         return this;
      }

      public PricingCostCode build() {
         PricingCostCodeDto dto = new PricingCostCodeDto();
         dto.setId(id);
         dto.setPrice(price);

         RESTLink link = costcode.unwrap().searchLink("edit");
         checkNotNull(link, ValidationErrors.MISSING_REQUIRED_LINK);
         dto.addLink(new RESTLink("costcode", link.getHref()));

         PricingCostCode pricingcostcode = new PricingCostCode(context, dto);
         pricingcostcode.pricingTemplate = pricingTemplate;
         pricingcostcode.costcode = costcode;
View Full Code Here

TOP

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

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.