com.retek.component.customerorder.impl
Class CustomerOrderRewardCertificatePaymentImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.CustomerOrderPaymentImpl
              extended bycom.retek.component.customerorder.impl.CustomerOrderVoucherPaymentImpl
                  extended bycom.retek.component.customerorder.impl.CustomerOrderRewardCertificatePaymentImpl
All Implemented Interfaces:
BusinessObject, java.lang.Comparable, CustomerOrderPayment, CustomerOrderRewardCertificatePayment, CustomerOrderTransactionItem, CustomerOrderVoucherPayment, DistributedObject, com.retek.fsm.FSMAble, RcomRmmFsmable

public class CustomerOrderRewardCertificatePaymentImpl
extends CustomerOrderVoucherPaymentImpl
implements CustomerOrderRewardCertificatePayment


Nested Class Summary
 
Nested classes inherited from class com.retek.component.customerorder.impl.CustomerOrderPaymentImpl
CustomerOrderPaymentImpl.SalesAuditPaidStateWhiteBoxHelper
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.customerorder.CustomerOrderVoucherPayment
CONTROL_NUMBER
 
Fields inherited from interface com.retek.component.customerorder.CustomerOrderPayment
AMOUNT, SET_ORDER, TENDER_TYPE
 
Constructor Summary
CustomerOrderRewardCertificatePaymentImpl(DistributedContext context, DistributedReference ref)
           
CustomerOrderRewardCertificatePaymentImpl(DistributedContext context, DistributedReference ref, boolean createHollow)
           
 
Method Summary
 void adjustAmount()
           
protected  CustomerOrderPaymentImpl createSplitInstance()
           
 void decreaseRCPaymentAmount(Money amountToDecreaseBy)
           
 void doConsolidateFromSourcePayment(CustomerOrderPaymentImpl sourcePayment)
           
 Money getAvailableCertificateBalance()
           
 Money getCertificateValue()
           
 TenderType getPaidInLiabilityTenderType()
           
 Payment getPayment()
           
 TenderType getRedemptionTenderType()
          Return the tender type for the payment which is for use for a redemption tender record for use in a SALE transaction.
 TenderType getRefundTenderType()
          Return the tender type for the payment which is for use for a refund tender record for use in a RETURN OR PAIDOU transaction.
 CustomerOrderRewardCertificatePaymentAuthorizationResponse getRewardCertificateAuthorizationResponse()
           
 void handleNewCreditPayment(Payment newCreditPayment)
           
 void handleNewPayment(Payment newPayment)
           
 boolean isRedeemed()
           
 void redeem()
           
 void setAmount(Money amount)
           
 void setAuthorizationResponseFromConvertedCustomerOrderVersion(Payment payment)
           
 void setControlNumber(java.lang.String controlNumber)
           
 void setRewardCertificateAuthorizationResponse(CustomerOrderRewardCertificatePaymentAuthorizationResponse response)
           
 
Methods inherited from class com.retek.component.customerorder.impl.CustomerOrderVoucherPaymentImpl
convertToPayment, createHistoryEventDetails, getAccountNumber, getControlNumber, isWithinPaymentAgentAuthorizationPeriod, makePaymentAgentUnmodifiable, setPaymentAuthorizationCode
 
Methods inherited from class com.retek.component.customerorder.impl.CustomerOrderPaymentImpl
accept, addHistoryEvent, addNewPaymentToOrder, addSalesAuditExportAmount, addSalesAuditExportAmount, allocateSettlement, allocateSettlement, allocateSettlement, authorize, authorize, authorizeManually, authorizeManually, cancel, checkModifiable, compareTo, consolidatePayments, convertToPayment, copyPaymentHistory, createHistoryEvent, finishSettlement, fireFromRemote, getAmount, getAuthorizedAmount, getAuthorizedMerchandiseAmount, getCurrency, getDto, getHistoryEvents, getOrder, getOriginalAuthorizedAmount, getPaymentAuthorizationResponse, getPaymentTransactionType, getRefundRecipientAddress, getSalesAuditExportAmount, getSalesAuditPaidInState, getSalesAuditPaidOutState, getSalesAuditTransactionDate, getSettlement, getSettlementOrder, getState, getStateModel, getTenderType, getTransactionGroup, getTransactionItemAmount, getTransactionTypeCode, getUnauthorizedAmount, getWorkflowContext, hasUnauthorizedAmount, inState, isAmountAdjustable, isAmountAdjustable, isApproved, isCancelable, isCancelled, isCreditCardTender, isCreditForTransactionGroupBalance, isCreditPayment, isCreditPaymentForAccommodation, isCreditPaymentForExchangeSaleCancelReadyForSettlement, isCreditPaymentForPostSaleAccommodation, isCreditPaymentForPreSaleAccommodation, isCreditPaymentReadyForSettlement, isDebitForTransactionGroupBalance, isDeclined, isExchangeSaleLine, isFraud, isInClosedTransactionGroup, isManuallyApproved, isModifiable, isPhysicalTender, isPreSettled, isReferral, isReplacementSaleLine, isSettled, isWaitingAuth, isWaitingManualAuth, markCreditPaymentExportedForPaidOut, markCreditPaymentReadyForPaidOutExport, markSalePaymentExportedForPaidIn, markSalePaymentReadyForPaidInExport, notifyTransactionGroupClosed, onStateChange, readLatest, setAmountUnchecked, setAuthorizedAmount, setCurrency, setOrder, setOriginalAuthorizedAmount, setPaymentAuthorizationResponse, setPaymentTransactionType, setRefundRecipientAddress, setSalesAuditTransactionDate, setSettlement, setTenderType, setTransactionGroup, setTransactionTypeCode, split, splitCredit, splitPayment
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap
 
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.component.customerorder.CustomerOrderVoucherPayment
getControlNumber
 
Methods inherited from interface com.retek.component.customerorder.CustomerOrderPayment
addSalesAuditExportAmount, allocateSettlement, allocateSettlement, allocateSettlement, authorize, authorize, authorizeManually, authorizeManually, cancel, consolidatePayments, finishSettlement, getAccountNumber, getAmount, getAuthorizedAmount, getCurrency, getHistoryEvents, getOrder, getOriginalAuthorizedAmount, getPaymentAuthorizationResponse, getPaymentTransactionType, getRefundRecipientAddress, getSalesAuditExportAmount, getSalesAuditPaidInState, getSalesAuditPaidOutState, getSalesAuditTransactionDate, getSettlement, getState, getTenderType, getTransactionTypeCode, getUnauthorizedAmount, hasUnauthorizedAmount, isAmountAdjustable, isAmountAdjustable, isApproved, isCancelable, isCancelled, isCreditPayment, isCreditPaymentForAccommodation, isCreditPaymentForPostSaleAccommodation, isCreditPaymentForPreSaleAccommodation, isDeclined, isFraud, isManuallyApproved, isPhysicalTender, isPreSettled, isReferral, isSettled, isWaitingAuth, isWaitingManualAuth, markCreditPaymentExportedForPaidOut, markCreditPaymentReadyForPaidOutExport, markSalePaymentExportedForPaidIn, markSalePaymentReadyForPaidInExport, setAuthorizedAmount, setCurrency, setOriginalAuthorizedAmount, setPaymentTransactionType, setRefundRecipientAddress, setTransactionTypeCode
 
Methods inherited from interface com.retek.commons.component.DistributedObject
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 
Methods inherited from interface com.retek.component.customerorder.CustomerOrderTransactionItem
getTransactionGroup, getTransactionItemAmount, isCreditForTransactionGroupBalance, isDebitForTransactionGroupBalance, isExchangeSaleLine, isInClosedTransactionGroup, isReplacementSaleLine, notifyTransactionGroupClosed, setTransactionGroup
 

Constructor Detail

CustomerOrderRewardCertificatePaymentImpl

public CustomerOrderRewardCertificatePaymentImpl(DistributedContext context,
                                                 DistributedReference ref,
                                                 boolean createHollow)
                                          throws SystemException

CustomerOrderRewardCertificatePaymentImpl

public CustomerOrderRewardCertificatePaymentImpl(DistributedContext context,
                                                 DistributedReference ref)
                                          throws SystemException,
                                                 BusinessException
Method Detail

getPayment

public Payment getPayment()
                   throws BusinessException,
                          SystemException
Specified by:
getPayment in class CustomerOrderVoucherPaymentImpl
Throws:
BusinessException
SystemException

getRewardCertificateAuthorizationResponse

public CustomerOrderRewardCertificatePaymentAuthorizationResponse getRewardCertificateAuthorizationResponse()
                                                                                                     throws SystemException
Throws:
SystemException

getCertificateValue

public Money getCertificateValue()
                          throws SystemException
Specified by:
getCertificateValue in interface CustomerOrderRewardCertificatePayment
Throws:
SystemException

getAvailableCertificateBalance

public Money getAvailableCertificateBalance()
                                     throws SystemException
Specified by:
getAvailableCertificateBalance in interface CustomerOrderRewardCertificatePayment
Throws:
SystemException

getRedemptionTenderType

public TenderType getRedemptionTenderType()
                                   throws SystemException
Description copied from interface: CustomerOrderPayment
Return the tender type for the payment which is for use for a redemption tender record for use in a SALE transaction.

Specified by:
getRedemptionTenderType in interface CustomerOrderPayment
Returns:
TenderType redemption tender type
Throws:
SystemException

getPaidInLiabilityTenderType

public TenderType getPaidInLiabilityTenderType()
                                        throws SystemException
Throws:
SystemException

getRefundTenderType

public TenderType getRefundTenderType()
                               throws SystemException
Description copied from interface: CustomerOrderPayment
Return the tender type for the payment which is for use for a refund tender record for use in a RETURN OR PAIDOU transaction.

Specified by:
getRefundTenderType in interface CustomerOrderPayment
Returns:
TenderType redemption tender type
Throws:
SystemException

setControlNumber

public void setControlNumber(java.lang.String controlNumber)
                      throws SystemException,
                             BusinessException
Specified by:
setControlNumber in interface CustomerOrderVoucherPayment
Overrides:
setControlNumber in class CustomerOrderVoucherPaymentImpl
Throws:
SystemException
BusinessException

setAmount

public void setAmount(Money amount)
               throws SystemException,
                      BusinessException
Specified by:
setAmount in interface CustomerOrderPayment
Overrides:
setAmount in class CustomerOrderPaymentImpl
Throws:
SystemException
BusinessException

setRewardCertificateAuthorizationResponse

public void setRewardCertificateAuthorizationResponse(CustomerOrderRewardCertificatePaymentAuthorizationResponse response)
                                               throws SystemException
Throws:
SystemException

setAuthorizationResponseFromConvertedCustomerOrderVersion

public final void setAuthorizationResponseFromConvertedCustomerOrderVersion(Payment payment)
                                                                     throws SystemException,
                                                                            BusinessException
Overrides:
setAuthorizationResponseFromConvertedCustomerOrderVersion in class CustomerOrderPaymentImpl
Throws:
SystemException
BusinessException

handleNewPayment

public void handleNewPayment(Payment newPayment)
                      throws SystemException,
                             BusinessException
Specified by:
handleNewPayment in class CustomerOrderVoucherPaymentImpl
Throws:
SystemException
BusinessException

handleNewCreditPayment

public void handleNewCreditPayment(Payment newCreditPayment)
                            throws SystemException,
                                   BusinessException
Specified by:
handleNewCreditPayment in class CustomerOrderPaymentImpl
Throws:
SystemException
BusinessException

createSplitInstance

protected CustomerOrderPaymentImpl createSplitInstance()
                                                throws BusinessException,
                                                       SystemException
Specified by:
createSplitInstance in class CustomerOrderPaymentImpl
Throws:
BusinessException
SystemException

isRedeemed

public boolean isRedeemed()
                   throws SystemException
Specified by:
isRedeemed in interface CustomerOrderRewardCertificatePayment
Throws:
SystemException

decreaseRCPaymentAmount

public void decreaseRCPaymentAmount(Money amountToDecreaseBy)
                             throws SystemException,
                                    BusinessException
Specified by:
decreaseRCPaymentAmount in interface CustomerOrderRewardCertificatePayment
Throws:
SystemException
BusinessException

adjustAmount

public void adjustAmount()
                  throws SystemException,
                         BusinessException
Specified by:
adjustAmount in interface CustomerOrderRewardCertificatePayment
Throws:
SystemException
BusinessException

redeem

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

doConsolidateFromSourcePayment

public void doConsolidateFromSourcePayment(CustomerOrderPaymentImpl sourcePayment)
                                    throws SystemException,
                                           BusinessException
Overrides:
doConsolidateFromSourcePayment in class CustomerOrderVoucherPaymentImpl
Throws:
SystemException
BusinessException


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