Class Discount

java.lang.Object
com.portal.web.comp.Discount

public class Discount extends Object
Gathers details about a customer's discount purchases and activity.
Version:
%version: 1 % %date_modified: %
Author:
Suresh K Grandhisiri
  • Constructor Details

    • Discount

      public Discount(String dealName, String discountName, String discountStatus, String serviceType, BigDecimal qty, Date purchaseDate, Date cycleDate, Date usageDate)
      Constructs an object with information to use for a discount's balance.
      Parameters:
      dealName - a String containing the name of the deal
      discountName - a String containing the name of the discount
      discountStatus - a String containing the current status
      serviceType - a String containing the type of service
      qty - the number of products
      purchaseDate - the plan's Purchase Date
      cycleDate - the plan's Cycle Start Date
      usageDate - the plan's Usage date
  • Method Details

    • getDealName

      public String getDealName()
      Gets the deal name for the Discount object.
      Returns:
      The discount's deal name, or an empty String if the deal name is null.
    • getDiscountName

      public String getDiscountName()
      Gets the discount name for the Discount object.
      Returns:
      The discount's name, or an empty String if the discount name is null.
    • getDiscountStatus

      public String getDiscountStatus()
      Gets the discount status for the Discount object.
      Returns:
      The discount's status, or an empty String if the status is null.
      See Also:
      • invalid reference
        com.portal.web.comp.PProductsBeanImpl#getDiscountStatusAsString(int)
    • getServiceType

      public String getServiceType()
      Gets the service type for the Discount object.
      Returns:
      The discount's service type, or an empty String if the service type is null.
    • getServiceQty

      public BigDecimal getServiceQty()
      Gets the service quantity for the Discount object.
      Returns:
      A BigDecimal that represents the service quantity for this Discount, or a zero value if the service quantity is null.
    • getPurchaseDate

      public Date getPurchaseDate()
      Gets the purchase date for the Discount object.
      Returns:
      A Date indicating the purchase date for this Discount, or today's date if the purchase date is null.
    • getCycleStartDate

      public Date getCycleStartDate()
      Gets the cycle start date for the Discount object.
      Returns:
      A Date indicating the cycle start date for this Discount, or today's date if the cycle start date is null.
    • getUsageDate

      public Date getUsageDate()
      Gets the usage start date for the Discount object.
      Returns:
      A Date indicating the usage start date for this Discount, or today's date if the usage start date is null.