Class Discount
java.lang.Object
com.oracle.communications.brm.cc.model.Extension
com.oracle.communications.brm.cc.model.Discount
- All Implemented Interfaces:
Serializable
Information about the discounts.
Java class for Discount complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Discount"> <complexContent> <extension base="{http://xmlns.oracle.com/cgbu/schemas/BusinessObjs}extension"> <sequence> <element name="id" type="{http://xmlns.oracle.com/cgbu/schemas/BusinessObjs}resourceRef"/> <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="planName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="purchaseDate" type="{http://www.w3.org/2001/XMLSchema}date"/> <element name="purchaseEndDate" type="{http://www.w3.org/2001/XMLSchema}date"/> <element name="lastStatusChange" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> <element name="status" minOccurs="0"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> </restriction> </simpleType> </element> <element name="type" type="{http://www.w3.org/2001/XMLSchema}int"/> </sequence> </extension> </complexContent> </complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The discount's description.protected ResourceRef
protected Calendar
The date and time the discount's status was last changed.protected String
The discount's name.protected String
The name of the package containing the discount.protected Calendar
The date and time the discount was purchased.protected Calendar
The date and time the purchase ends.protected String
The discount's statusprotected int
The type of discount. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe discount's description.getId()
Gets the value of the id property.The date and time the discount's status was last changed.getName()
The discount's name.The name of the package containing the discount.The date and time the discount was purchased.The date and time the purchase ends.The discount's statusint
getType()
The type of discount.void
setDescription
(String value) Sets the value of the description property.void
setId
(ResourceRef value) Sets the value of the id property.void
setLastStatusChange
(Calendar value) Sets the value of the lastStatusChange property.void
Sets the value of the name property.void
setPlanName
(String value) Sets the value of the planName property.void
setPurchaseDate
(Calendar value) Sets the value of the purchaseDate property.void
setPurchaseEndDate
(Calendar value) Sets the value of the purchaseEndDate property.void
Sets the value of the status property.void
setType
(int value) Sets the value of the type property.Methods inherited from class com.oracle.communications.brm.cc.model.Extension
getExtension, setExtension
-
Field Details
-
id
-
name
The discount's name. -
planName
The name of the package containing the discount. -
description
The discount's description. -
purchaseDate
The date and time the discount was purchased. -
purchaseEndDate
The date and time the purchase ends. -
lastStatusChange
The date and time the discount's status was last changed. -
status
The discount's status -
type
protected int typeThe type of discount. Can be one of the following:- 0: Optional
- 1: Required
- 2: Regular
-
-
Constructor Details
-
Discount
public Discount()
-
-
Method Details
-
getId
Gets the value of the id property.- Returns:
- possible object is
ResourceRef
-
setId
Sets the value of the id property.- Parameters:
value
- allowed object isResourceRef
-
getName
The discount's name.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value
- allowed object isString
- See Also:
-
getPlanName
The name of the package containing the discount.- Returns:
- possible object is
String
-
setPlanName
Sets the value of the planName property.- Parameters:
value
- allowed object isString
- See Also:
-
getDescription
The discount's description.- Returns:
- possible object is
String
-
setDescription
Sets the value of the description property.- Parameters:
value
- allowed object isString
- See Also:
-
getPurchaseDate
The date and time the discount was purchased.- Returns:
- possible object is
String
-
setPurchaseDate
Sets the value of the purchaseDate property.- Parameters:
value
- allowed object isString
- See Also:
-
getPurchaseEndDate
The date and time the purchase ends.- Returns:
- possible object is
String
-
setPurchaseEndDate
Sets the value of the purchaseEndDate property.- Parameters:
value
- allowed object isString
- See Also:
-
getLastStatusChange
The date and time the discount's status was last changed.- Returns:
- possible object is
String
-
setLastStatusChange
Sets the value of the lastStatusChange property.- Parameters:
value
- allowed object isString
- See Also:
-
getStatus
The discount's status- Returns:
- possible object is
String
-
setStatus
Sets the value of the status property.- Parameters:
value
- allowed object isString
- See Also:
-
getType
public int getType()The type of discount. Can be one of the following:- 0: Optional
- 1: Required
- 2: Regular
-
setType
public void setType(int value) Sets the value of the type property.
-