Package com.portal.web.comp
Class Discount
java.lang.Object
com.portal.web.comp.Discount
Gathers details about a customer's discount purchases and activity.
- Version:
- %version: 1 % %date_modified: %
- Author:
- Suresh K Grandhisiri
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the cycle start date for theDiscountobject.Gets the deal name for theDiscountobject.Gets the discount name for theDiscountobject.Gets the discount status for theDiscountobject.Gets the purchase date for theDiscountobject.Gets the service quantity for theDiscountobject.Gets the service type for theDiscountobject.Gets the usage start date for theDiscountobject.
-
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- aStringcontaining the name of the dealdiscountName- aStringcontaining the name of the discountdiscountStatus- aStringcontaining the current statusserviceType- aStringcontaining the type of serviceqty- the number of productspurchaseDate- the plan's Purchase DatecycleDate- the plan's Cycle Start DateusageDate- the plan's Usage date
-
-
Method Details
-
getDealName
Gets the deal name for theDiscountobject.- Returns:
- The discount's deal name, or an empty
Stringif the deal name is null.
-
getDiscountName
Gets the discount name for theDiscountobject.- Returns:
- The discount's name, or an empty
Stringif the discount name is null.
-
getDiscountStatus
Gets the discount status for theDiscountobject.- Returns:
- The discount's status, or an empty
Stringif the status is null. - See Also:
-
getServiceType
Gets the service type for theDiscountobject.- Returns:
- The discount's service type, or an empty
Stringif the service type is null.
-
getServiceQty
Gets the service quantity for theDiscountobject.- Returns:
- A
BigDecimalthat represents the service quantity for thisDiscount, or a zero value if the service quantity is null.
-
getPurchaseDate
Gets the purchase date for theDiscountobject.- Returns:
- A
Dateindicating the purchase date for thisDiscount, or today's date if the purchase date is null.
-
getCycleStartDate
Gets the cycle start date for theDiscountobject.- Returns:
- A
Dateindicating the cycle start date for thisDiscount, or today's date if the cycle start date is null.
-
getUsageDate
Gets the usage start date for theDiscountobject.- Returns:
- A
Dateindicating the usage start date for thisDiscount, or today's date if the usage start date is null.
-