public class GiftCertificateProcessorImpl extends GenericService implements GiftCertificateProcessor, atg.payment.giftcertificate.DecreaseGiftCertificateAuthorizationProcessor
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION  | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
GiftCertificateProcessorImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
GiftCertificateStatus | 
authorize(GiftCertificateInfo pGiftCertificateInfo)
The authorizaton of a gift certificate calls the authorizeClaimableGiftCerificate method in
 the ClaimableManager. 
 | 
GiftCertificateStatus | 
credit(GiftCertificateInfo pGiftCertificateInfo)
Credit the gift certificate identified with the parameter 
 pGiftCertificateInfo.getGiftCertificateNumber() the amount returned by the getAmount call
 on the same giftCertificateInfo parameter. 
 | 
GiftCertificateStatus | 
credit(GiftCertificateInfo pGiftCertificateInfo,
      PaymentStatus pStatus)
Credit the gift certificate identified with the parameter 
 pGiftCertificateInfo.getGiftCertificateNumber() the amount returned by the getAmount call
 on the same giftCertificateInfo parameter. 
 | 
GiftCertificateStatus | 
debit(GiftCertificateInfo pGiftCertificateInfo,
     PaymentStatus pStatus)
We check to see if the PaymentStatus amount is greater that the amount indicated in the
 giftCertificateInfo. 
 | 
GiftCertificateStatus | 
decreaseAuthorization(GiftCertificateInfo pGiftCertificateInfo,
                     PaymentStatus pAuthStatus)  | 
GiftCertificateStatus | 
expireAuthorization(GiftCertificateInfo pGiftCertificateInfo)
Expire a gift certificate authorization 
 | 
ClaimableManager | 
getClaimableManager()
Get the ClaimableManager property. 
 | 
protected java.lang.String | 
getNextTransactionId()
This method generates a transactionId by returning a the System time in milliseconds. 
 | 
long | 
getSecondsUntilExpiration()
Returns property secondsUntilExpiration 
 | 
void | 
setClaimableManager(ClaimableManager pClaimableManager)
Set the ClaimableManager that will be used to claim the gift certificats. 
 | 
void | 
setSecondsUntilExpiration(long pSecondsUntilExpiration)
Sets property secondsUntilExpiration 
 | 
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setClaimableManager(ClaimableManager pClaimableManager)
pClaimableManager - the ClaimableManager that will be usedpublic ClaimableManager getClaimableManager()
public long getSecondsUntilExpiration()
public void setSecondsUntilExpiration(long pSecondsUntilExpiration)
pSecondsUntilExpiration - the value to set for property secondsUntilExpirationprotected java.lang.String getNextTransactionId()
public GiftCertificateStatus authorize(GiftCertificateInfo pGiftCertificateInfo)
authorize in interface GiftCertificateProcessorpGiftCertificateInfo - the GiftCertificateInfo reference which contains all the 
 authorization datapublic GiftCertificateStatus expireAuthorization(GiftCertificateInfo pGiftCertificateInfo)
expireAuthorization in interface GiftCertificateProcessorpGiftCertificateInfo - the GiftCertificateInfo reference which contains all the authorization expiration datapublic GiftCertificateStatus debit(GiftCertificateInfo pGiftCertificateInfo, PaymentStatus pStatus)
debit in interface GiftCertificateProcessorpGiftCertificateInfo - the GiftCertificateInfo reference which contains all the debit 
 datapStatus - the PaymentStatus object which contains information about the transaction. 
 This should be the object which was returned from authorize().public GiftCertificateStatus credit(GiftCertificateInfo pGiftCertificateInfo, PaymentStatus pStatus)
credit in interface GiftCertificateProcessorpGiftCertificateInfo - the GiftCertificateInfo reference which contains all the credit datapStatus - the PaymentStatus object which contains information about the transaction. This
                should be the object which was returned from debit().public GiftCertificateStatus credit(GiftCertificateInfo pGiftCertificateInfo)
credit in interface GiftCertificateProcessorpGiftCertificateInfo - the GiftCertificateInfo reference which contains all the credit datapublic GiftCertificateStatus decreaseAuthorization(GiftCertificateInfo pGiftCertificateInfo, PaymentStatus pAuthStatus)
decreaseAuthorization in interface atg.payment.giftcertificate.DecreaseGiftCertificateAuthorizationProcessor