Search in sources :

Example 1 with CurrencyValueNull

use of org.killbill.billing.catalog.api.CurrencyValueNull in project killbill by killbill.

the class StandaloneCatalogMapper method toDefaultPrice.

private DefaultPrice toDefaultPrice(final Price input) {
    try {
        final DefaultPrice result = new DefaultPrice();
        result.setCurrency(input.getCurrency());
        result.setValue(input.getValue());
        return result;
    } catch (CurrencyValueNull currencyValueNull) {
        throw new IllegalStateException(currencyValueNull);
    }
}
Also used : CurrencyValueNull(org.killbill.billing.catalog.api.CurrencyValueNull) DefaultPrice(org.killbill.billing.catalog.DefaultPrice)

Aggregations

DefaultPrice (org.killbill.billing.catalog.DefaultPrice)1 CurrencyValueNull (org.killbill.billing.catalog.api.CurrencyValueNull)1