Package com.abiquo.server.core.pricing

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


* @author Susana Acedo
*/
public class PricingResources {

   public static CurrencyDto currencyPost() {
      CurrencyDto currency = new CurrencyDto();
      currency.setName("yuan");
      currency.setSymbol("DUMMY");
      currency.setDigits(3);
      return currency;
   }
View Full Code Here


      currency.setDigits(3);
      return currency;
   }

   public static CurrencyDto currencyPut() {
      CurrencyDto currency = new CurrencyDto();
      currency.setName("yuan");
      currency.setSymbol("DUMMY");
      currency.setDigits(3);
      currency.setId(1);
      currency.addLink(new RESTLink("edit", "http://localhost/api/config/currencies/1"));
      return currency;
   }
View Full Code Here

      return getFirst(listCurrencies(filter), null);
   }

   @Override
   public Currency getCurrency(final Integer currencyId) {
      CurrencyDto result = context.getApi().getPricingApi().getCurrency(currencyId);
      return wrap(context, Currency.class, result);
   }
View Full Code Here

         this.digits = digits;
         return this;
      }

      public Currency build() {
         CurrencyDto dto = new CurrencyDto();
         dto.setName(name);
         dto.setSymbol(symbol);
         dto.setDigits(digits);
         Currency currency = new Currency(context, dto);

         return currency;
      }
View Full Code Here

TOP

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

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.