com.retek.component.payment
Interface Payment

All Superinterfaces:
BusinessObject
All Known Subinterfaces:
CashPayment, CheckPayment, CreditCardPayment, GiftCertificatePayment, MerchandiseCertificatePayment, MoneyOrderPayment, RewardCertificatePayment, StoredValueCardPayment
All Known Implementing Classes:
CashPaymentImpl, CheckPaymentImpl, CreditCardPaymentImpl, GiftCertificatePaymentImpl, MerchandiseCertificatePaymentImpl, MoneyOrderPaymentImpl, PaymentImpl, RewardCertificatePaymentImpl, StoredValueCardPaymentImpl

public interface Payment
extends BusinessObject

A high level independent interface that is implemented by all the Tender Types. Tender Types like, CheckPayment, CreditCardPayment, GiftCertificatePayment etc extends this interface.

Retek Inc. Copyright (c) 2003


Field Summary
static java.lang.String AMOUNT
           
static java.lang.String SETTLE
           
 
Method Summary
 Payment allocateSettlement(Money amount, RDate dateOfPurchase)
           
 void authorize()
           
 Money getAmount()
           
 java.lang.String getCurrency()
           
 PaymentAuthorizationResponse getPaymentAuthorizationResponse()
           
 Settlement getSettlement()
           
 java.lang.String getTransactionTypeCode()
           
 boolean isPersisted()
           
 boolean isSettled()
           
 void setAmount(Money amount)
           
 void setCurrency(java.lang.String currency)
           
 void setPaymentAuthorizationResponse(PaymentAuthorizationResponse response)
           
 void setTransactionTypeCode(java.lang.String transactionTypeCode)
           
 
Methods inherited from interface com.retek.commons.domain.core.BusinessObject
getId
 

Field Detail

AMOUNT

public static final java.lang.String AMOUNT
See Also:
Constant Field Values

SETTLE

public static final java.lang.String SETTLE
See Also:
Constant Field Values
Method Detail

isPersisted

public boolean isPersisted()

authorize

public void authorize()
               throws SystemException,
                      BusinessException
Throws:
SystemException
BusinessException

getAmount

public Money getAmount()

setAmount

public void setAmount(Money amount)

allocateSettlement

public Payment allocateSettlement(Money amount,
                                  RDate dateOfPurchase)
                           throws SystemException,
                                  BusinessException
Throws:
SystemException
BusinessException

isSettled

public boolean isSettled()

getSettlement

public Settlement getSettlement()

getPaymentAuthorizationResponse

public PaymentAuthorizationResponse getPaymentAuthorizationResponse()

setPaymentAuthorizationResponse

public void setPaymentAuthorizationResponse(PaymentAuthorizationResponse response)

setTransactionTypeCode

public void setTransactionTypeCode(java.lang.String transactionTypeCode)

getTransactionTypeCode

public java.lang.String getTransactionTypeCode()

getCurrency

public java.lang.String getCurrency()

setCurrency

public void setCurrency(java.lang.String currency)


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28