public CatalogUpdater(final StandaloneCatalog standaloneCatalog) { this.catalog = new DefaultMutableStaticCatalog(standaloneCatalog); this.catalog.setRecurringBillingMode(BillingMode.IN_ADVANCE); }
public CatalogUpdater(final DateTime effectiveDate, final Currency... currencies) { final DefaultPriceList defaultPriceList = new DefaultPriceList().setName(PriceListSet.DEFAULT_PRICELIST_NAME); final StandaloneCatalog tmp = new StandaloneCatalog() .setCatalogName(DEFAULT_CATALOG_NAME) .setEffectiveDate(effectiveDate.toDate()) .setRecurringBillingMode(BillingMode.IN_ADVANCE) .setProducts(ImmutableList.<Product>of()) .setPlans(ImmutableList.<Plan>of()) .setPriceLists(new DefaultPriceListSet(defaultPriceList, new DefaultPriceList[0])) .setPlanRules(getSaneDefaultPlanRules(defaultPriceList)); if (currencies != null && currencies.length > 0) { tmp.setSupportedCurrencies(currencies); } else { tmp.setSupportedCurrencies(new Currency[0]); } tmp.initialize(tmp); this.catalog = new DefaultMutableStaticCatalog(tmp); }
final StandaloneCatalog catalog = XMLLoader.getObjectFromString(Resources.getResource("SpyCarBasic.xml").toExternalForm(), StandaloneCatalog.class); final MutableStaticCatalog mutableCatalog = new DefaultMutableStaticCatalog(catalog);
final MutableStaticCatalog mutableCatalog = new DefaultMutableStaticCatalog(catalog);
final MutableStaticCatalog mutableCatalog = new DefaultMutableStaticCatalog(catalog);
public CatalogUpdater(final StandaloneCatalog standaloneCatalog) { this.catalog = new DefaultMutableStaticCatalog(standaloneCatalog); this.catalog.setRecurringBillingMode(BillingMode.IN_ADVANCE); }
public CatalogUpdater(final DateTime effectiveDate, final Currency... currencies) { final DefaultPriceList defaultPriceList = new DefaultPriceList().setName(PriceListSet.DEFAULT_PRICELIST_NAME); final StandaloneCatalog tmp = new StandaloneCatalog() .setCatalogName(DEFAULT_CATALOG_NAME) .setEffectiveDate(effectiveDate.toDate()) .setRecurringBillingMode(BillingMode.IN_ADVANCE) .setProducts(ImmutableList.<Product>of()) .setPlans(ImmutableList.<Plan>of()) .setPriceLists(new DefaultPriceListSet(defaultPriceList, new DefaultPriceList[0])) .setPlanRules(getSaneDefaultPlanRules(defaultPriceList)); if (currencies != null && currencies.length > 0) { tmp.setSupportedCurrencies(currencies); } else { tmp.setSupportedCurrencies(new Currency[0]); } tmp.initialize(tmp); this.catalog = new DefaultMutableStaticCatalog(tmp); }
final StandaloneCatalog catalog = XMLLoader.getObjectFromString(Resources.getResource("SpyCarBasic.xml").toExternalForm(), StandaloneCatalog.class); final MutableStaticCatalog mutableCatalog = new DefaultMutableStaticCatalog(catalog);
final MutableStaticCatalog mutableCatalog = new DefaultMutableStaticCatalog(catalog);
final MutableStaticCatalog mutableCatalog = new DefaultMutableStaticCatalog(catalog);