@Override public void addCurrency(final Currency currency) throws CatalogApiException { final Currency[] newEntries = allocateNewEntries(getCurrentSupportedCurrencies(), currency); setSupportedCurrencies(newEntries); }
public void addRecurringPriceToPlan(final DefaultInternationalPrice currentPrices, final Price newPrice) throws CatalogApiException { final Price[] newEntries = allocateNewEntries(currentPrices.getPrices(), newPrice); currentPrices.setPrices((DefaultPrice[]) newEntries); }
@Override public void addPriceList(final PriceList priceList) throws CatalogApiException { final PriceList[] newEntries = allocateNewEntries(getPriceLists().getChildPriceLists(), priceList); final DefaultPriceListSet priceListSet = new DefaultPriceListSet((PriceListDefault) getPriceLists().getDefaultPricelist(), (DefaultPriceList[]) newEntries); setPriceLists(priceListSet); }
@Override public void addCurrency(final Currency currency) throws CatalogApiException { final Currency[] newEntries = allocateNewEntries(getCurrentSupportedCurrencies(), currency); setSupportedCurrencies(newEntries); }
public void addRecurringPriceToPlan(final DefaultInternationalPrice currentPrices, final Price newPrice) throws CatalogApiException { final Price[] newEntries = allocateNewEntries(currentPrices.getPrices(), newPrice); currentPrices.setPrices((DefaultPrice[]) newEntries); }
@Override public void addPriceList(final PriceList priceList) throws CatalogApiException { final PriceList[] newEntries = allocateNewEntries(getPriceLists().getChildPriceLists(), priceList); final DefaultPriceListSet priceListSet = new DefaultPriceListSet((PriceListDefault) getPriceLists().getDefaultPricelist(), (DefaultPriceList[]) newEntries); setPriceLists(priceListSet); }