@Override public String toString() { final StringBuilder sb = new StringBuilder("DefaultEntitlementSpecifier{"); sb.append("planName=").append(planPhaseSpecifier.getPlanName()); sb.append(", productName=").append(planPhaseSpecifier.getProductName()); sb.append(", billingPeriod=").append(planPhaseSpecifier.getBillingPeriod()); sb.append(", phaseType=").append(planPhaseSpecifier.getPhaseType()); sb.append(", priceListName=").append(planPhaseSpecifier.getPriceListName()); sb.append(", billCycleDay=").append(billCycleDay); sb.append(", overrides=").append(overrides); sb.append('}'); return sb.toString(); } }
if (phase == null) { throw new SubscriptionBaseError(String.format("No initial PlanPhase for Product %s, term %s and set %s does not exist in the catalog", spec.getProductName(), spec.getBillingPeriod().toString(), plan.getPriceListName()));
final PlanPhaseSpecifier inputSpec = entitlementSpecifier.getPlanPhaseSpecifier(); final boolean isInputSpecNullOrEmpty = inputSpec == null || (inputSpec.getPlanName() == null && inputSpec.getProductName() == null && inputSpec.getBillingPeriod() == null);
} else { inFromProduct = catalog.findCurrentProduct(from.getProductName()); inFromBillingPeriod = from.getBillingPeriod(); inFromProductCategory = inFromProduct.getCategory(); inFromPriceList = from.getPriceListName() != null ? catalog.findCurrentPricelist(from.getPriceListName()) : null;
@Override public String toString() { final StringBuilder sb = new StringBuilder("DefaultEntitlementSpecifier{"); sb.append("planName=").append(planPhaseSpecifier.getPlanName()); sb.append(", productName=").append(planPhaseSpecifier.getProductName()); sb.append(", billingPeriod=").append(planPhaseSpecifier.getBillingPeriod()); sb.append(", phaseType=").append(planPhaseSpecifier.getPhaseType()); sb.append(", priceListName=").append(planPhaseSpecifier.getPriceListName()); sb.append(", billCycleDay=").append(billCycleDay); sb.append(", overrides=").append(overrides); sb.append('}'); return sb.toString(); } }
public PlanSpecifier(final PlanPhaseSpecifier planPhase) { super(); this.planName = planPhase.getPlanName(); this.productName = planPhase.getProductName(); this.billingPeriod = planPhase.getBillingPeriod(); this.priceListName = planPhase.getPriceListName(); }
public PlanSpecifier(final PlanPhaseSpecifier planPhase) { super(); this.productName = planPhase.getProductName(); this.productCategory = planPhase.getProductCategory(); this.billingPeriod = planPhase.getBillingPeriod(); this.priceListName = planPhase.getPriceListName(); }
public IllegalPlanChange(final PlanPhaseSpecifier from, final PlanSpecifier to) { super(ErrorCode.CAT_ILLEGAL_CHANGE_REQUEST, from.getProductName(), from.getBillingPeriod(), from.getPriceListName(), to.getProductName(), to.getBillingPeriod(), to.getPriceListName()); }
public IllegalPlanChange(final Throwable cause, final PlanPhaseSpecifier from, final PlanSpecifier to) { super(cause, ErrorCode.CAT_ILLEGAL_CHANGE_REQUEST, from.getProductName(), from.getBillingPeriod(), from.getPriceListName(), to.getProductName(), to.getBillingPeriod(), to.getPriceListName()); }
public IllegalPlanChange(final Throwable cause, final PlanPhaseSpecifier from, final PlanSpecifier to) { super(cause, ErrorCode.CAT_ILLEGAL_CHANGE_REQUEST, from.getProductName(), from.getBillingPeriod(), from.getPriceListName(), to.getProductName(), to.getBillingPeriod(), to.getPriceListName()); }
public IllegalPlanChange(final PlanPhaseSpecifier from, final PlanSpecifier to) { super(ErrorCode.CAT_ILLEGAL_CHANGE_REQUEST, from.getProductName(), from.getBillingPeriod(), from.getPriceListName(), to.getProductName(), to.getBillingPeriod(), to.getPriceListName()); }
if (phase == null) { throw new SubscriptionBaseError(String.format("No initial PlanPhase for Product %s, term %s and set %s does not exist in the catalog", spec.getProductName(), spec.getBillingPeriod().toString(), plan.getPriceListName()));
final PlanPhaseSpecifier inputSpec = entitlementSpecifier.getPlanPhaseSpecifier(); final boolean isInputSpecNullOrEmpty = inputSpec == null || (inputSpec.getPlanName() == null && inputSpec.getProductName() == null && inputSpec.getBillingPeriod() == null);
} else { inFromProduct = catalog.findCurrentProduct(from.getProductName()); inFromBillingPeriod = from.getBillingPeriod(); inFromProductCategory = inFromProduct.getCategory(); inFromPriceList = from.getPriceListName() != null ? catalog.findCurrentPricelist(from.getPriceListName()) : null;