|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GiftCertificateProcessor
This class defines an interface for gift certificate processing. It has three methods for submitting transactions to a gtft certificate processing system. They are authorize, debit, and credit. Any class which implements this class must provide implementations for each of these methods.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
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 |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
GiftCertificateStatus authorize(GiftCertificateInfo pGiftCertificateInfo)
pGiftCertificateInfo
- the GiftCertificateInfo reference which contains all the authorization data
GiftCertificateStatus expireAuthorization(GiftCertificateInfo pGiftCertificateInfo)
pGiftCertificateInfo
- the GiftCertificateInfo reference which contains all the authorization expiration data
GiftCertificateStatus debit(GiftCertificateInfo pGiftCertificateInfo, PaymentStatus pStatus)
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().
GiftCertificateStatus credit(GiftCertificateInfo pGiftCertificateInfo, PaymentStatus pStatus)
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().
GiftCertificateStatus credit(GiftCertificateInfo pGiftCertificateInfo)
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 |