public class StoreCreditProcessorImpl extends GenericService implements StoreCreditProcessor, atg.payment.storecredit.DecreaseStoreCreditAuthorizationProcessor
| 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 | 
|---|
| StoreCreditProcessorImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| StoreCreditStatus | authorize(StoreCreditInfo pStoreCreditInfo)The authorizaton of a store credit calls the authorizeClaimableStoreCredit method in
 the ClaimableManager. | 
| StoreCreditStatus | credit(StoreCreditInfo pStoreCreditInfo)Credit the store credit identified with the parameter 
 pStoreCreditInfo.getStoreCreditNumber() the amount returned by the getAmount call
 on the same StoreCreditInfo parameter. | 
| StoreCreditStatus | credit(StoreCreditInfo pStoreCreditInfo,
      PaymentStatus pStatus)Credit the store credit identified with the parameter 
 pStoreCreditInfo.getStoreCreditNumber() the amount returned by the getAmount call
 on the same storeCreditInfo parameter. | 
| StoreCreditStatus | debit(StoreCreditInfo pStoreCreditInfo,
     PaymentStatus pStatus)We check to see if the PaymentStatus amount is greater than the amount indicated in the
 storeCreditInfo. | 
| StoreCreditStatus | decreaseAuthorization(StoreCreditInfo pStoreCreditInfo,
                     PaymentStatus pAuthStatus)Decreases the authorized amount for the store credit identified with the parameter | 
| StoreCreditStatus | expireAuthorization(StoreCreditInfo pStoreCreditInfo)Expire a store credit 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 store credits. | 
| 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, stopServicevlogDebug, 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 StoreCreditStatus authorize(StoreCreditInfo pStoreCreditInfo)
authorize in interface StoreCreditProcessorpStoreCreditInfo - the StoreCreditInfo reference which contains all the 
 authorization datapublic StoreCreditStatus expireAuthorization(StoreCreditInfo pStoreCreditInfo)
expireAuthorization in interface StoreCreditProcessorpStoreCreditInfo - the StoreCreditInfo reference which contains all the authorization expiration datapublic StoreCreditStatus debit(StoreCreditInfo pStoreCreditInfo, PaymentStatus pStatus)
debit in interface StoreCreditProcessorpStoreCreditInfo - the StoreCreditInfo 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 StoreCreditStatus credit(StoreCreditInfo pStoreCreditInfo, PaymentStatus pStatus)
credit in interface StoreCreditProcessorpStoreCreditInfo - the StoreCreditInfo 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 StoreCreditStatus credit(StoreCreditInfo pStoreCreditInfo)
credit in interface StoreCreditProcessorpStoreCreditInfo - the StoreCreditInfo reference which contains all the credit datapublic StoreCreditStatus decreaseAuthorization(StoreCreditInfo pStoreCreditInfo, PaymentStatus pAuthStatus)
decreaseAuthorization in interface atg.payment.storecredit.DecreaseStoreCreditAuthorizationProcessorpStoreCreditInfo - the StoreCreditInfo reference which contains all the credit data