|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecebs.rtd.enabler.types.request.ModifyRequest
com.ecebs.rtd.enabler.types.request.AddStoredUseRequest
public class AddStoredUseRequest
Represents a request to add a number of stored uses to a product on a CM
Constructor Summary | |
---|---|
AddStoredUseRequest()
Create a request with no initialised parameters. |
|
AddStoredUseRequest(String cardId,
CardType cardType,
String identifier,
String productName,
int numUses)
Sets all the required parameters with the provided values. |
Method Summary | |
---|---|
AddStoredUseRequest |
addParam(String key,
Object value)
Add a parameter to the request. |
AddStoredUseRequest |
setCardId(String cardId)
Set the ID of the card to modify |
AddStoredUseRequest |
setCardType(CardType cardType)
Set the type of the card to modify |
AddStoredUseRequest |
setIdentifierId(String identifier)
Set the details of the ISAM that created the product |
AddStoredUseRequest |
setProductName(String productName)
Set the name of the product to add stored uses to |
AddStoredUseRequest |
setUses(int numUses)
Set the uses to be added to the product |
Outcome |
validate()
Validate that the required fields have been set |
Methods inherited from class com.ecebs.rtd.enabler.types.request.ModifyRequest |
---|
getCardId, getCardType, getRequestId, setRequestId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddStoredUseRequest()
setCardId(String)
,
setCardType(CardType)
,
setUses(int)
,
setIdentifierId(String)
,
setProductName(String)
public AddStoredUseRequest(String cardId, CardType cardType, String identifier, String productName, int numUses)
cardId
- ID of the card with the product that stored uses should be added tocardType
- The type of the cardidentifier
- The identifier of the ISAM that created the productproductName
- The name of the productnumUses
- The number of stored uses to be addedMethod Detail |
---|
public AddStoredUseRequest setCardId(String cardId)
cardId
- ID of the card to modify
public AddStoredUseRequest setCardType(CardType cardType)
cardType
- Type of the card to modify
public AddStoredUseRequest setProductName(String productName)
productName
- Name of the product to add stored uses to
public AddStoredUseRequest setUses(int numUses)
numUses
- The uses to be added
public AddStoredUseRequest addParam(String key, Object value)
addParam
in class ModifyRequest
key
- The key for the parametervalue
- The value of the parameter
public AddStoredUseRequest setIdentifierId(String identifier)
identifier
- The identifier of the ISAM that created the product to be updated.
public Outcome validate()
Request
validate
in interface Request
validate
in class ModifyRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |