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 theDiscount
object.Gets the deal name for theDiscount
object.Gets the discount name for theDiscount
object.Gets the discount status for theDiscount
object.Gets the purchase date for theDiscount
object.Gets the service quantity for theDiscount
object.Gets the service type for theDiscount
object.Gets the usage start date for theDiscount
object.
-
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
- aString
containing the name of the dealdiscountName
- aString
containing the name of the discountdiscountStatus
- aString
containing the current statusserviceType
- aString
containing 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 theDiscount
object.- Returns:
- The discount's deal name, or an empty
String
if the deal name is null.
-
getDiscountName
Gets the discount name for theDiscount
object.- Returns:
- The discount's name, or an empty
String
if the discount name is null.
-
getDiscountStatus
Gets the discount status for theDiscount
object.- Returns:
- The discount's status, or an empty
String
if the status is null. - See Also:
-
getServiceType
Gets the service type for theDiscount
object.- Returns:
- The discount's service type, or an empty
String
if the service type is null.
-
getServiceQty
Gets the service quantity for theDiscount
object.- Returns:
- A
BigDecimal
that represents the service quantity for thisDiscount
, or a zero value if the service quantity is null.
-
getPurchaseDate
Gets the purchase date for theDiscount
object.- Returns:
- A
Date
indicating the purchase date for thisDiscount
, or today's date if the purchase date is null.
-
getCycleStartDate
Gets the cycle start date for theDiscount
object.- Returns:
- A
Date
indicating the cycle start date for thisDiscount
, or today's date if the cycle start date is null.
-
getUsageDate
Gets the usage start date for theDiscount
object.- Returns:
- A
Date
indicating the usage start date for thisDiscount
, or today's date if the usage start date is null.
-