public class Discount extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCycleStartDate()
Gets the cycle start date for the
Discount object. |
String |
getDealName()
Gets the deal name for the
Discount object. |
String |
getDiscountName()
Gets the discount name for the
Discount object. |
String |
getDiscountStatus()
Gets the discount status for the
Discount object. |
Date |
getPurchaseDate()
Gets the purchase date for the
Discount object. |
BigDecimal |
getServiceQty()
Gets the service quantity for the
Discount object. |
String |
getServiceType()
Gets the service type for the
Discount object. |
Date |
getUsageDate()
Gets the usage start date for the
Discount object. |
public Discount(String dealName, String discountName, String discountStatus, String serviceType, BigDecimal qty, Date purchaseDate, Date cycleDate, Date usageDate)
dealName
- a String
containing the name of the dealdiscountName
- a String
containing the name of the discountdiscountStatus
- a String
containing the current statusserviceType
- a String
containing the type of serviceqty
- the number of productspurchaseDate
- the plan's Purchase DatecycleDate
- the plan's Cycle Start DateusageDate
- the plan's Usage datepublic String getDealName()
Discount
object.String
if the deal
name is null.public String getDiscountName()
Discount
object.String
if the discount name
is null.public String getDiscountStatus()
Discount
object.String
if the status is
null.com.portal.web.comp.PProductsBeanImpl#getDiscountStatusAsString(int)
public String getServiceType()
Discount
object.String
if the service
type is null.public BigDecimal getServiceQty()
Discount
object.BigDecimal
that represents the service quantity for this
Discount
, or a zero value if the service quantity is null.public Date getPurchaseDate()
Discount
object.Date
indicating the purchase date for this Discount
,
or today's date if the purchase date is null.public Date getCycleStartDate()
Discount
object.Date
indicating the cycle start date for this Discount
,
or today's date if the cycle start date is null.public Date getUsageDate()
Discount
object.Date
indicating the usage start date for this Discount
,
or today's date if the usage start date is null.Copyright © 2003, 2023, Oracle and/or its affiliates.