|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.payment.DummyGiftCertificateProcessor
public class DummyGiftCertificateProcessor
This class is a dummy gift certificate processor. It purpose is to be a placeholder for a real gift certificate processor. The implementations of all the methods in this class construct a new GiftCertificateStatus object with dummy success data and return it to the caller.
GiftCertificateProcessor
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
DummyGiftCertificateProcessor()
|
Method Summary | |
---|---|
GiftCertificateStatus |
authorize(GiftCertificateInfo pGiftCertificateInfo)
Authorize the gift certificate |
GiftCertificateStatus |
credit(GiftCertificateInfo pGiftCertificateInfo)
Credit the amount on the gift certificate without a previous debit. |
GiftCertificateStatus |
credit(GiftCertificateInfo pGiftCertificateInfo,
PaymentStatus pStatus)
Credit the amount on the gift certificate after debiting. |
GiftCertificateStatus |
debit(GiftCertificateInfo pGiftCertificateInfo,
PaymentStatus pStatus)
Debit the amount on the gift certificate after authorization |
GiftCertificateStatus |
expireAuthorization(GiftCertificateInfo pGiftCertificateInfo)
Expire a gift certificate authorization |
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 DummyGiftCertificateProcessor()
Method Detail |
---|
public GiftCertificateStatus authorize(GiftCertificateInfo pGiftCertificateInfo)
authorize
in interface GiftCertificateProcessor
pGiftCertificateInfo
- the GiftCertificateInfo reference which contains all the authorization data
public GiftCertificateStatus expireAuthorization(GiftCertificateInfo pGiftCertificateInfo)
expireAuthorization
in interface GiftCertificateProcessor
pGiftCertificateInfo
- the GiftCertificateInfo reference which contains all the authorization expiration data
public GiftCertificateStatus debit(GiftCertificateInfo pGiftCertificateInfo, PaymentStatus pStatus)
debit
in interface GiftCertificateProcessor
pGiftCertificateInfo
- 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 GiftCertificateProcessor
pGiftCertificateInfo
- 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 GiftCertificateProcessor
pGiftCertificateInfo
- the GiftCertificateInfo reference which contains all the credit data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |