@Override public Unit[] getUnits(final DateTime requestedDate) throws CatalogApiException { return versionForDate(requestedDate).getCurrentUnits(); }
@Override public Unit[] getCurrentUnits() throws CatalogApiException { return versionForDate(clock.getUTCNow()).getCurrentUnits(); }
public StandaloneCatalogWithPriceOverride(final StandaloneCatalog catalog, final PriceOverride priceOverride, final Long tenantRecordId, final InternalCallContextFactory internalCallContextFactory) { // Initialize from input catalog setCatalogName(catalog.getCatalogName()); setEffectiveDate(catalog.getEffectiveDate()); setProducts(catalog.getCurrentProducts()); setPlans(catalog.getCurrentPlans()); setPriceLists(catalog.getPriceLists()); setPlanRules(catalog.getPlanRules()); setSupportedCurrencies(catalog.getCurrentSupportedCurrencies()); setUnits(catalog.getCurrentUnits()); this.tenantRecordId = tenantRecordId; this.priceOverride = priceOverride; this.internalCallContextFactory = internalCallContextFactory; }
public DefaultMutableStaticCatalog(final StandaloneCatalog input) { this.setCatalogName(input.getCatalogName()) .setRecurringBillingMode(input.getRecurringBillingMode()) .setEffectiveDate(input.getEffectiveDate()) .setSupportedCurrencies(input.getCurrentSupportedCurrencies()) .setUnits(input.getCurrentUnits()) .setProducts(input.getCurrentProducts()) .setPlans(input.getCurrentPlans()) .setPlanRules(input.getPlanRules()) .setPriceLists(input.getPriceLists()); initialize(this); }
ImmutableList.<PriceList>copyOf(inputCatalog.getPriceLists().getChildPriceLists()), rules, ImmutableList.<Unit>copyOf(inputCatalog.getCurrentUnits())); return result;
@Override public Unit[] getUnits(final DateTime requestedDate) throws CatalogApiException { return versionForDate(requestedDate).getCurrentUnits(); }
@Override public Unit[] getCurrentUnits() throws CatalogApiException { return versionForDate(clock.getUTCNow()).getCurrentUnits(); }
public StandaloneCatalogWithPriceOverride(final StandaloneCatalog catalog, final PriceOverride priceOverride, final Long tenantRecordId, final InternalCallContextFactory internalCallContextFactory) { // Initialize from input catalog setCatalogName(catalog.getCatalogName()); setEffectiveDate(catalog.getEffectiveDate()); setProducts(catalog.getCurrentProducts()); setPlans(catalog.getCurrentPlans()); setPriceLists(catalog.getPriceLists()); setPlanRules(catalog.getPlanRules()); setSupportedCurrencies(catalog.getCurrentSupportedCurrencies()); setUnits(catalog.getCurrentUnits()); this.tenantRecordId = tenantRecordId; this.priceOverride = priceOverride; this.internalCallContextFactory = internalCallContextFactory; }
public DefaultMutableStaticCatalog(final StandaloneCatalog input) { this.setCatalogName(input.getCatalogName()) .setRecurringBillingMode(input.getRecurringBillingMode()) .setEffectiveDate(input.getEffectiveDate()) .setSupportedCurrencies(input.getCurrentSupportedCurrencies()) .setUnits(input.getCurrentUnits()) .setProducts(input.getCurrentProducts()) .setPlans(input.getCurrentPlans()) .setPlanRules(input.getPlanRules()) .setPriceLists(input.getPriceLists()); initialize(this); }
ImmutableList.<PriceList>copyOf(inputCatalog.getPriceLists().getChildPriceLists()), rules, ImmutableList.<Unit>copyOf(inputCatalog.getCurrentUnits())); return result;