public class ProcCreateElectronicGood extends java.lang.Object implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
Constructor and Description |
---|
ProcCreateElectronicGood() |
Modifier and Type | Method and Description |
---|---|
protected RepositoryItem |
createElectronicGood(ElectronicFulfiller of,
java.lang.Double pAmount,
java.lang.Double pAmountRemaining,
java.lang.String pPurchaserId,
java.util.Date pPurchaseDate)
This method is used to create the electronic good that is being
fulfilled.
|
int[] |
getRetCodes()
Returns the valid return codes
1 - The processor completed
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
Allocates an electronic item by calling the ClaimableManager
This method requires that an Order and OrderFulfiller object be supplied
in pParam in a HashMap.
|
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
public int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
runProcess
in interface PipelineProcessor
pParam
- a HashMap which must contain an Order and OrderFulfiller objectpResult
- a PipelineResult object which stores any information which must
be returned from this method invokationjava.lang.Exception
- throws any exception back to the callerPipelineProcessor.runProcess(Object, PipelineResult)
protected RepositoryItem createElectronicGood(ElectronicFulfiller of, java.lang.Double pAmount, java.lang.Double pAmountRemaining, java.lang.String pPurchaserId, java.util.Date pPurchaseDate) throws CommerceException
pAmount
- the amount of the gift certificatepAmountRemaining
- the amount left on a gift certificatepPurchaserId
- profile id of the person who purchased the gift certificatepPurchaseDate
- the date the gift certificate was purchasedCommerceException
- if an error occurs