3637383940414243444546
* @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; }
44454647484950515253545556
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; }
8586878889909192
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); }
87888990919293949596979899
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; }