public static <K> K getResult(final DefaultCaseChange<K>[] cases, final PlanPhaseSpecifier from, final PlanSpecifier to, final StaticCatalog catalog) throws CatalogApiException { if (cases != null) { for (final DefaultCaseChange<K> cc : cases) { final K result = cc.getResult(from, to, catalog); if (result != null) { return result; } } } return null; }
private PlanAlignmentChange getPlanChangeAlignment(final PlanPhaseSpecifier from, final PlanSpecifier to, final StaticCatalog catalog) throws CatalogApiException { final PlanAlignmentChange result = DefaultCaseChange.getResult(changeAlignmentCase, from, to, catalog); return (result != null) ? result : PlanAlignmentChange.START_OF_BUNDLE; }
private BillingActionPolicy getPlanChangePolicy(final PlanPhaseSpecifier from, final PlanSpecifier to, final StaticCatalog catalog) throws CatalogApiException { final BillingActionPolicy result = DefaultCaseChange.getResult(changeCase, from, to, catalog); return (result != null) ? result : BillingActionPolicy.END_OF_TERM; }
Result.LALA); final Result r1 = DefaultCaseChange.getResult(new DefaultCaseChangeResult[]{cr0, cr1, cr2, cr3, cr4}, new PlanPhaseSpecifier(product1.getName(), BillingPeriod.MONTHLY, priceList1.getName(), PhaseType.EVERGREEN), new PlanSpecifier(product2.getName(), BillingPeriod.MONTHLY, priceList2.getName()), cat); final Result r2 = DefaultCaseChange.getResult(new DefaultCaseChangeResult[]{cr0, cr1, cr2, cr3, cr4}, new PlanPhaseSpecifier(product1.getName(), BillingPeriod.MONTHLY, priceList1.getName(), PhaseType.EVERGREEN), new PlanSpecifier(product2.getName(), BillingPeriod.ANNUAL, priceList2.getName()), cat);
(toPriceList == null || toPriceList.equals(inToPriceList)) ) { return getResult();
public static <K> K getResult(final DefaultCaseChange<K>[] cases, final PlanPhaseSpecifier from, final PlanSpecifier to, final StaticCatalog catalog) throws CatalogApiException { if (cases != null) { for (final DefaultCaseChange<K> cc : cases) { final K result = cc.getResult(from, to, catalog); if (result != null) { return result; } } } return null; }
private BillingActionPolicy getPlanChangePolicy(final PlanPhaseSpecifier from, final PlanSpecifier to, final StaticCatalog catalog) throws CatalogApiException { final BillingActionPolicy result = DefaultCaseChange.getResult(changeCase, from, to, catalog); return (result != null) ? result : BillingActionPolicy.END_OF_TERM; }
private PlanAlignmentChange getPlanChangeAlignment(final PlanPhaseSpecifier from, final PlanSpecifier to, final StaticCatalog catalog) throws CatalogApiException { final PlanAlignmentChange result = DefaultCaseChange.getResult(changeAlignmentCase, from, to, catalog); return (result != null) ? result : PlanAlignmentChange.START_OF_BUNDLE; }
Result.LALA); final Result r1 = DefaultCaseChange.getResult(new DefaultCaseChangeResult[]{cr0, cr1, cr2, cr3, cr4}, new PlanPhaseSpecifier(product1.getName(), BillingPeriod.MONTHLY, priceList1.getName(), PhaseType.EVERGREEN), new PlanSpecifier(product2.getName(), BillingPeriod.MONTHLY, priceList2.getName()), cat); final Result r2 = DefaultCaseChange.getResult(new DefaultCaseChangeResult[]{cr0, cr1, cr2, cr3, cr4}, new PlanPhaseSpecifier(product1.getName(), BillingPeriod.MONTHLY, priceList1.getName(), PhaseType.EVERGREEN), new PlanSpecifier(product2.getName(), BillingPeriod.ANNUAL, priceList2.getName()), cat);
(toPriceList == null || toPriceList.equals(inToPriceList)) ) { return getResult();