com.retek.component.payment.impl
Class PaymentImpl

java.lang.Object
  extended bycom.retek.commons.domain.core.impl.BusinessObjectImpl
      extended bycom.retek.component.payment.impl.PaymentImpl
All Implemented Interfaces:
BusinessObject, java.lang.Comparable, Payment
Direct Known Subclasses:
CashPaymentImpl, CheckPaymentImpl, CreditCardPaymentImpl, GiftCertificatePaymentImpl, MerchandiseCertificatePaymentImpl, MoneyOrderPaymentImpl, RewardCertificatePaymentImpl, StoredValueCardPaymentImpl

public abstract class PaymentImpl
extends BusinessObjectImpl
implements Payment


Field Summary
 
Fields inherited from interface com.retek.component.payment.Payment
AMOUNT, SETTLE
 
Constructor Summary
PaymentImpl()
           
 
Method Summary
 Payment allocateSettlement(Money amount, RDate dateOfPurchase)
           
 void authorize()
           
protected abstract  void doAuthorization()
           
protected abstract  PaymentImpl doCreateNewPayment(Money amount)
           
 Money getAmount()
           
 java.lang.String getCurrency()
           
 AbstractDto getDto()
           
 PaymentAuthorizationResponse getPaymentAuthorizationResponse()
           
protected abstract  PaymentDto getPaymentDto()
           
 Settlement getSettlement()
           
 java.lang.String getTransactionTypeCode()
           
 boolean isSettled()
           
 void setAmount(Money amount)
           
 void setCurrency(java.lang.String currency)
           
 void setPaymentAuthorizationResponse(PaymentAuthorizationResponse response)
           
 void setTransactionTypeCode(java.lang.String transactionTypeCode)
           
protected  void validate(PaymentBusinessException exception)
           
 
Methods inherited from class com.retek.commons.domain.core.impl.BusinessObjectImpl
compareTo, equals, getDescription, getId, hashCode, isPersisted, isValid, setDescription, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.component.payment.Payment
isPersisted
 
Methods inherited from interface com.retek.commons.domain.core.BusinessObject
getId
 

Constructor Detail

PaymentImpl

public PaymentImpl()
Method Detail

getDto

public AbstractDto getDto()
Specified by:
getDto in class BusinessObjectImpl

setAmount

public void setAmount(Money amount)
Specified by:
setAmount in interface Payment

getAmount

public Money getAmount()
Specified by:
getAmount in interface Payment

authorize

public void authorize()
               throws BusinessException,
                      SystemException
Specified by:
authorize in interface Payment
Throws:
BusinessException
SystemException

validate

protected void validate(PaymentBusinessException exception)
                 throws BusinessException,
                        SystemException
Throws:
BusinessException
SystemException

allocateSettlement

public final Payment allocateSettlement(Money amount,
                                        RDate dateOfPurchase)
                                 throws SystemException,
                                        BusinessException
Specified by:
allocateSettlement in interface Payment
Throws:
SystemException
BusinessException

getPaymentDto

protected abstract PaymentDto getPaymentDto()

doAuthorization

protected abstract void doAuthorization()
                                 throws SystemException
Throws:
SystemException

doCreateNewPayment

protected abstract PaymentImpl doCreateNewPayment(Money amount)
                                           throws SystemException
Throws:
SystemException

isSettled

public boolean isSettled()
Specified by:
isSettled in interface Payment

getSettlement

public Settlement getSettlement()
Specified by:
getSettlement in interface Payment

getPaymentAuthorizationResponse

public PaymentAuthorizationResponse getPaymentAuthorizationResponse()
Specified by:
getPaymentAuthorizationResponse in interface Payment

setPaymentAuthorizationResponse

public void setPaymentAuthorizationResponse(PaymentAuthorizationResponse response)
Specified by:
setPaymentAuthorizationResponse in interface Payment

getTransactionTypeCode

public java.lang.String getTransactionTypeCode()
Specified by:
getTransactionTypeCode in interface Payment

getCurrency

public java.lang.String getCurrency()
Specified by:
getCurrency in interface Payment

setCurrency

public void setCurrency(java.lang.String currency)
Specified by:
setCurrency in interface Payment

setTransactionTypeCode

public void setTransactionTypeCode(java.lang.String transactionTypeCode)
Specified by:
setTransactionTypeCode in interface Payment


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