@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof DefaultCaseStandardNaming)) { return false; } final DefaultCaseStandardNaming that = (DefaultCaseStandardNaming) o; if (billingPeriod != that.billingPeriod) { return false; } if (priceList != null ? !priceList.equals(that.priceList) : that.priceList != null) { return false; } if (product != null ? !product.equals(that.product) : that.product != null) { return false; } if (productCategory != that.productCategory) { return false; } return true; }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof DefaultPlan)) { return false; } final DefaultPlan that = (DefaultPlan) o; if (effectiveDateForExistingSubscriptions != null ? !effectiveDateForExistingSubscriptions.equals(that.effectiveDateForExistingSubscriptions) : that.effectiveDateForExistingSubscriptions != null) { return false; } if (finalPhase != null ? !finalPhase.equals(that.finalPhase) : that.finalPhase != null) { return false; } if (!Arrays.equals(initialPhases, that.initialPhases)) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (plansAllowedInBundle != null ? !plansAllowedInBundle.equals(that.plansAllowedInBundle) : that.plansAllowedInBundle != null) { return false; } if (product != null ? !product.equals(that.product) : that.product != null) { return false; } return true; }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof DefaultCasePriceList)) { return false; } if (!super.equals(o)) { return false; } final DefaultCasePriceList that = (DefaultCasePriceList) o; if (fromBillingPeriod != that.fromBillingPeriod) { return false; } if (fromPriceList != null ? !fromPriceList.equals(that.fromPriceList) : that.fromPriceList != null) { return false; } if (fromProduct != null ? !fromProduct.equals(that.fromProduct) : that.fromProduct != null) { return false; } if (fromProductCategory != that.fromProductCategory) { return false; } if (toPriceList != null ? !toPriceList.equals(that.toPriceList) : that.toPriceList != null) { return false; } return true; }
(fromProduct == null || fromProduct.equals(inFromProduct)) && (fromProductCategory == null || fromProductCategory.equals(inFromProductCategory)) && (fromBillingPeriod == null || fromBillingPeriod.equals(inFromBillingPeriod)) && (this.toProduct == null || this.toProduct.equals(inToProduct)) && (this.toProductCategory == null || this.toProductCategory.equals(inToProductCategory)) && (this.toBillingPeriod == null || this.toBillingPeriod.equals(inToBillingPeriod)) &&
protected boolean satisfiesCase(final PlanSpecifier planPhase, final StaticCatalog c) throws CatalogApiException { final Product product; final BillingPeriod billingPeriod; final ProductCategory productCategory; final PriceList priceList; if (planPhase.getPlanName() != null) { final Plan plan = c.findCurrentPlan(planPhase.getPlanName()); product = plan.getProduct(); billingPeriod = plan.getRecurringBillingPeriod(); productCategory = plan.getProduct().getCategory(); priceList = c.findCurrentPricelist(plan.getPriceListName()); } else { product = c.findCurrentProduct(planPhase.getProductName()); billingPeriod = planPhase.getBillingPeriod(); productCategory = product.getCategory(); priceList = getPriceList() != null ? c.findCurrentPricelist(planPhase.getPriceListName()) : null; } return (getProduct() == null || getProduct().equals(product)) && (getProductCategory() == null || getProductCategory().equals(productCategory)) && (getBillingPeriod() == null || getBillingPeriod().equals(billingPeriod)) && (getPriceList() == null || getPriceList().equals(priceList)); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof DefaultCaseStandardNaming)) { return false; } final DefaultCaseStandardNaming that = (DefaultCaseStandardNaming) o; if (billingPeriod != that.billingPeriod) { return false; } if (priceList != null ? !priceList.equals(that.priceList) : that.priceList != null) { return false; } if (product != null ? !product.equals(that.product) : that.product != null) { return false; } if (productCategory != that.productCategory) { return false; } return true; }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof DefaultPlan)) { return false; } final DefaultPlan that = (DefaultPlan) o; if (effectiveDateForExistingSubscriptions != null ? !effectiveDateForExistingSubscriptions.equals(that.effectiveDateForExistingSubscriptions) : that.effectiveDateForExistingSubscriptions != null) { return false; } if (finalPhase != null ? !finalPhase.equals(that.finalPhase) : that.finalPhase != null) { return false; } if (!Arrays.equals(initialPhases, that.initialPhases)) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (plansAllowedInBundle != null ? !plansAllowedInBundle.equals(that.plansAllowedInBundle) : that.plansAllowedInBundle != null) { return false; } if (product != null ? !product.equals(that.product) : that.product != null) { return false; } return true; }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof DefaultCasePriceList)) { return false; } if (!super.equals(o)) { return false; } final DefaultCasePriceList that = (DefaultCasePriceList) o; if (fromBillingPeriod != that.fromBillingPeriod) { return false; } if (fromPriceList != null ? !fromPriceList.equals(that.fromPriceList) : that.fromPriceList != null) { return false; } if (fromProduct != null ? !fromProduct.equals(that.fromProduct) : that.fromProduct != null) { return false; } if (fromProductCategory != that.fromProductCategory) { return false; } if (toPriceList != null ? !toPriceList.equals(that.toPriceList) : that.toPriceList != null) { return false; } return true; }
(fromProduct == null || fromProduct.equals(inFromProduct)) && (fromProductCategory == null || fromProductCategory.equals(inFromProductCategory)) && (fromBillingPeriod == null || fromBillingPeriod.equals(inFromBillingPeriod)) && (this.toProduct == null || this.toProduct.equals(inToProduct)) && (this.toProductCategory == null || this.toProductCategory.equals(inToProductCategory)) && (this.toBillingPeriod == null || this.toBillingPeriod.equals(inToBillingPeriod)) &&
protected boolean satisfiesCase(final PlanSpecifier planPhase, final StaticCatalog c) throws CatalogApiException { final Product product; final BillingPeriod billingPeriod; final ProductCategory productCategory; final PriceList priceList; if (planPhase.getPlanName() != null) { final Plan plan = c.findCurrentPlan(planPhase.getPlanName()); product = plan.getProduct(); billingPeriod = plan.getRecurringBillingPeriod(); productCategory = plan.getProduct().getCategory(); priceList = c.findCurrentPricelist(plan.getPriceListName()); } else { product = c.findCurrentProduct(planPhase.getProductName()); billingPeriod = planPhase.getBillingPeriod(); productCategory = product.getCategory(); priceList = getPriceList() != null ? c.findCurrentPricelist(planPhase.getPriceListName()) : null; } return (getProduct() == null || getProduct().equals(product)) && (getProductCategory() == null || getProductCategory().equals(productCategory)) && (getBillingPeriod() == null || getBillingPeriod().equals(billingPeriod)) && (getPriceList() == null || getPriceList().equals(priceList)); }