| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.payment.StoreCreditProcessorImpl
public class StoreCreditProcessorImpl
This class performs the actual functions of authorizing, debiting and crediting a store credit. These are all the method that must be implemented in order to provide a payment method.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| Fields inherited from class atg.nucleus.GenericService | 
|---|
| SERVICE_INFO_KEY | 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
|---|
| DEFAULT_LOG_TRACE_STATUS | 
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging | 
|---|
| DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS | 
| Constructor Summary | |
|---|---|
| StoreCreditProcessorImpl() | |
| Method Summary | |
|---|---|
|  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 | 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
|---|
| vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
public StoreCreditProcessorImpl()
| Method Detail | 
|---|
public 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 data
public StoreCreditStatus expireAuthorization(StoreCreditInfo pStoreCreditInfo)
expireAuthorization in interface StoreCreditProcessorpStoreCreditInfo - the StoreCreditInfo reference which contains all the authorization expiration data
public 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 data
public StoreCreditStatus decreaseAuthorization(StoreCreditInfo pStoreCreditInfo,
                                               PaymentStatus pAuthStatus)
decreaseAuthorization in interface atg.payment.storecredit.DecreaseStoreCreditAuthorizationProcessorpStoreCreditInfo - the StoreCreditInfo reference which contains all the credit data
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||