com.retek.component.customerorder.impl
Class CustomerOrderPaymentImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.CustomerOrderPaymentImpl
All Implemented Interfaces:
BusinessObject, java.lang.Comparable, CustomerOrderPayment, CustomerOrderTransactionItem, DistributedObject, com.retek.fsm.FSMAble, RcomRmmFsmable
Direct Known Subclasses:
CustomerOrderCashPaymentImpl, CustomerOrderCheckPaymentImpl, CustomerOrderCreditCardPaymentImpl, CustomerOrderMoneyOrderPaymentImpl, CustomerOrderVoucherPaymentImpl

public abstract class CustomerOrderPaymentImpl
extends DistributedObjectImpl
implements CustomerOrderPayment, RcomRmmFsmable, java.lang.Comparable


Nested Class Summary
static class 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.CustomerOrderPayment
AMOUNT, SET_ORDER, TENDER_TYPE
 
Constructor Summary
CustomerOrderPaymentImpl(DistributedContext context, DistributedReference ref)
           
CustomerOrderPaymentImpl(DistributedContext context, DistributedReference ref, boolean createHollow)
           
 
Method Summary
 void accept(com.retek.fsm.Event event)
           
 void addHistoryEvent(CustomerOrderPaymentHistoryEvent historyEvent)
           
protected  void addNewPaymentToOrder(CustomerOrderPaymentImpl newPayment)
           
 void addSalesAuditExportAmount(Money amount)
          Add to the Sales Audit export amount for the payment.
 void addSalesAuditExportAmount(Money amount, boolean checkForInvalidAmount)
           
 void allocateSettlement(Money amount, RDate dateOfPurchase)
           
 void allocateSettlement(Money amount, RDate dateOfPurchase, ReturnLine returnLine)
           
 void allocateSettlement(Money amount, RDate dateOfPurchase, ShippedContainer container)
           
 void authorize()
           
 void authorize(Money authorizeAmount)
           
 void authorizeManually(Money authorizeAmount, java.lang.String authCode, User user)
           
 void authorizeManually(java.lang.String authCode, User user)
           
 void cancel()
           
protected  void checkModifiable()
           
 int compareTo(java.lang.Object o)
           
 void consolidatePayments(java.util.Set groupOfPayments)
           
abstract  Payment convertToPayment()
           
 Payment convertToPayment(Money authorizeAmount)
           
 java.util.Set copyPaymentHistory(java.util.Set payments)
           
 void createHistoryEvent(com.retek.fsm.State state, java.util.Set containers, Money authorizedAmount)
           
abstract  void createHistoryEventDetails(CustomerOrderPaymentHistoryEvent event)
           
protected abstract  CustomerOrderPaymentImpl createSplitInstance()
           
 void doConsolidateFromSourcePayment(CustomerOrderPaymentImpl sourcePayment)
           
 void finishSettlement(CustomerOrderSettlement settlement, java.lang.String settlementFileNumber)
           
 void fireFromRemote()
           
abstract  java.lang.String getAccountNumber()
           
 Money getAmount()
           
 Money getAuthorizedAmount()
           
protected  Money getAuthorizedMerchandiseAmount()
           
 java.lang.String getCurrency()
           
 CustomerOrderPaymentDto getDto()
           
 java.util.Set getHistoryEvents()
           
 CustomerOrder getOrder()
           
 Money getOriginalAuthorizedAmount()
           
abstract  Payment getPayment()
           
 PaymentAuthorizationResponse getPaymentAuthorizationResponse()
           
 CustomerOrderPaymentTransactionType getPaymentTransactionType()
           
 CustomerAddress getRefundRecipientAddress()
          Return the refund recipient address for the refund payment.
 Money getSalesAuditExportAmount()
          Return the amount for the payment that has been exported as a TTEND record (tender) within a Sales Audit SALE or RETURN transaction.
 ExportState getSalesAuditPaidInState()
          Return the Sales Audit transaction trigger state for the payment with respect to PAIDIN liability transaction processing.
 ExportState getSalesAuditPaidOutState()
          Return the Sales Audit transaction trigger state for the payment with respect to PAIDOU liability transaction processing.
 RDate getSalesAuditTransactionDate()
          Return the transaction effective date for the payment for PAIDIN (sale payment) or PAIDOU (credit payment).
 CustomerOrderSettlement getSettlement()
           
 int getSettlementOrder()
           
 com.retek.fsm.State getState()
           
 CustomerOrderPaymentStateModel getStateModel()
           
 TenderType getTenderType()
           
 CustomerOrderTransactionGroup getTransactionGroup()
           
 Money getTransactionItemAmount()
           
 java.lang.String getTransactionTypeCode()
           
 Money getUnauthorizedAmount()
           
 RcomRmmWorkflowContext getWorkflowContext()
           
abstract  void handleNewCreditPayment(Payment newPayment)
           
abstract  void handleNewPayment(Payment newPayment)
           
 boolean hasUnauthorizedAmount()
           
 boolean inState(com.retek.fsm.State state)
          Return boolean indicating if a state machine business object is the specified state.
 boolean isAmountAdjustable()
           
 boolean isAmountAdjustable(CustomerOrderTransactionItem transactionItem)
           
 boolean isApproved()
           
 boolean isCancelable()
           
 boolean isCancelled()
           
 boolean isCreditCardTender()
           
 boolean isCreditForTransactionGroupBalance()
           
 boolean isCreditPayment()
           
 boolean isCreditPaymentForAccommodation()
           
 boolean isCreditPaymentForExchangeSaleCancelReadyForSettlement()
           
 boolean isCreditPaymentForPostSaleAccommodation()
           
 boolean isCreditPaymentForPreSaleAccommodation()
           
 boolean isCreditPaymentReadyForSettlement()
           
 boolean isDebitForTransactionGroupBalance()
           
 boolean isDeclined()
           
 boolean isExchangeSaleLine()
           
 boolean isFraud()
           
 boolean isInClosedTransactionGroup()
           
 boolean isManuallyApproved()
           
 boolean isModifiable()
           
 boolean isPhysicalTender()
           
 boolean isPreSettled()
           
 boolean isReferral()
           
 boolean isReplacementSaleLine()
           
 boolean isSettled()
           
 boolean isWaitingAuth()
           
 boolean isWaitingManualAuth()
           
abstract  boolean isWithinPaymentAgentAuthorizationPeriod()
           
abstract  void makePaymentAgentUnmodifiable()
           
 void markCreditPaymentExportedForPaidOut()
          Mark a credit payment 'E'XPORTED for Sales Audit PAIDOU transaction processing.
 void markCreditPaymentReadyForPaidOutExport()
          Mark a credit payment 'R'EADY for Sales Audit PAIDOU transaction processing.
 void markSalePaymentExportedForPaidIn()
          Mark a sale payment 'E'XPORTED for Sales Audit PAIDIN transaction processing.
 void markSalePaymentReadyForPaidInExport()
          Mark a sale payment 'R'EADY for Sales Audit PAIDIN transaction processing.
 void notifyTransactionGroupClosed()
           
 void onStateChange(com.retek.fsm.State originalState, com.retek.fsm.State newState)
           
protected  Dto readLatest()
           
 void setAmount(Money amount)
           
 void setAmountUnchecked(Money amount)
           
 void setAuthorizationResponseFromConvertedCustomerOrderVersion(Payment payment)
           
 void setAuthorizedAmount(Money authorizedAmount)
           
 void setCurrency(java.lang.String currency)
           
 void setOrder(CustomerOrder customerOrder)
           
 void setOriginalAuthorizedAmount(Money authorizedAmount)
           
abstract  void setPaymentAuthorizationCode(java.lang.String authCode)
           
 void setPaymentAuthorizationResponse(PaymentAuthorizationResponse paymentAuthorizationResponse)
           
 void setPaymentTransactionType(CustomerOrderPaymentTransactionType paymentTransactionType)
           
 void setRefundRecipientAddress(CustomerAddress address)
          Set the recipient address for the refund payment.
 void setSalesAuditTransactionDate(RDate salesAuditTransactionDate)
           
 void setSettlement(CustomerOrderSettlement settlement)
           
 void setTenderType(TenderType tenderType)
           
 void setTransactionGroup(CustomerOrderTransactionGroup transactionGroup)
           
 void setTransactionTypeCode(java.lang.String transactionTypeCode)
           
 CustomerOrderPayment split(Money newPaymentAmount)
           
 CustomerOrderPayment splitCredit(Money newPaymentAmount)
           
 CustomerOrderPayment splitPayment(Money newPaymentAmount)
           
 
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.CustomerOrderPayment
getRedemptionTenderType, getRefundTenderType
 
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
 

Constructor Detail

CustomerOrderPaymentImpl

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

CustomerOrderPaymentImpl

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

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

getDto

public CustomerOrderPaymentDto getDto()
                               throws SystemException
Throws:
SystemException

setAmount

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

setAmountUnchecked

public void setAmountUnchecked(Money amount)
                        throws SystemException
Throws:
SystemException

checkModifiable

protected void checkModifiable()
                        throws SystemException
Throws:
SystemException

getAmount

public Money getAmount()
                throws SystemException
Specified by:
getAmount in interface CustomerOrderPayment
Throws:
SystemException

isModifiable

public boolean isModifiable()
                     throws SystemException
Throws:
SystemException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

createHistoryEvent

public void createHistoryEvent(com.retek.fsm.State state,
                               java.util.Set containers,
                               Money authorizedAmount)
                        throws SystemException,
                               BusinessException
Throws:
SystemException
BusinessException

createHistoryEventDetails

public abstract void createHistoryEventDetails(CustomerOrderPaymentHistoryEvent event)
                                        throws SystemException
Throws:
SystemException

isSettled

public boolean isSettled()
                  throws SystemException
Specified by:
isSettled in interface CustomerOrderPayment
Throws:
SystemException

isWaitingManualAuth

public boolean isWaitingManualAuth()
                            throws SystemException
Specified by:
isWaitingManualAuth in interface CustomerOrderPayment
Throws:
SystemException

isWaitingAuth

public boolean isWaitingAuth()
                      throws SystemException
Specified by:
isWaitingAuth in interface CustomerOrderPayment
Throws:
SystemException

getSalesAuditExportAmount

public Money getSalesAuditExportAmount()
                                throws SystemException
Description copied from interface: CustomerOrderPayment
Return the amount for the payment that has been exported as a TTEND record (tender) within a Sales Audit SALE or RETURN transaction.

Specified by:
getSalesAuditExportAmount in interface CustomerOrderPayment
Returns:
Money sales audit export amount
Throws:
SystemException

addSalesAuditExportAmount

public void addSalesAuditExportAmount(Money amount)
                               throws SystemException
Description copied from interface: CustomerOrderPayment
Add to the Sales Audit export amount for the payment. This amount is only incremented when writing TTEND records as part of Sales Audit SALE OR RETURN transaction.

Specified by:
addSalesAuditExportAmount in interface CustomerOrderPayment
Parameters:
amount - export amount used (for SALE or RETURN)
Throws:
SystemException

getOriginalAuthorizedAmount

public Money getOriginalAuthorizedAmount()
                                  throws SystemException
Specified by:
getOriginalAuthorizedAmount in interface CustomerOrderPayment
Throws:
SystemException

addSalesAuditExportAmount

public void addSalesAuditExportAmount(Money amount,
                                      boolean checkForInvalidAmount)
                               throws SystemException
Throws:
SystemException

getSalesAuditPaidInState

public ExportState getSalesAuditPaidInState()
                                     throws SystemException
Description copied from interface: CustomerOrderPayment
Return the Sales Audit transaction trigger state for the payment with respect to PAIDIN liability transaction processing.

Specified by:
getSalesAuditPaidInState in interface CustomerOrderPayment
Returns:
ExportState sales audit trigger state
Throws:
SystemException

markSalePaymentReadyForPaidInExport

public void markSalePaymentReadyForPaidInExport()
                                         throws SystemException
Description copied from interface: CustomerOrderPayment
Mark a sale payment 'R'EADY for Sales Audit PAIDIN transaction processing.

Specified by:
markSalePaymentReadyForPaidInExport in interface CustomerOrderPayment
Throws:
SystemException

markSalePaymentExportedForPaidIn

public void markSalePaymentExportedForPaidIn()
                                      throws SystemException
Description copied from interface: CustomerOrderPayment
Mark a sale payment 'E'XPORTED for Sales Audit PAIDIN transaction processing.

Specified by:
markSalePaymentExportedForPaidIn in interface CustomerOrderPayment
Throws:
SystemException

getSalesAuditPaidOutState

public ExportState getSalesAuditPaidOutState()
                                      throws SystemException
Description copied from interface: CustomerOrderPayment
Return the Sales Audit transaction trigger state for the payment with respect to PAIDOU liability transaction processing.

Specified by:
getSalesAuditPaidOutState in interface CustomerOrderPayment
Returns:
ExportState sales audit trigger state
Throws:
SystemException

markCreditPaymentReadyForPaidOutExport

public void markCreditPaymentReadyForPaidOutExport()
                                            throws SystemException
Description copied from interface: CustomerOrderPayment
Mark a credit payment 'R'EADY for Sales Audit PAIDOU transaction processing.

Specified by:
markCreditPaymentReadyForPaidOutExport in interface CustomerOrderPayment
Throws:
SystemException

markCreditPaymentExportedForPaidOut

public void markCreditPaymentExportedForPaidOut()
                                         throws SystemException
Description copied from interface: CustomerOrderPayment
Mark a credit payment 'E'XPORTED for Sales Audit PAIDOU transaction processing.

Specified by:
markCreditPaymentExportedForPaidOut in interface CustomerOrderPayment
Throws:
SystemException

getSalesAuditTransactionDate

public RDate getSalesAuditTransactionDate()
                                   throws SystemException
Description copied from interface: CustomerOrderPayment
Return the transaction effective date for the payment for PAIDIN (sale payment) or PAIDOU (credit payment).

Specified by:
getSalesAuditTransactionDate in interface CustomerOrderPayment
Returns:
RDate sales audit transaction effective date
Throws:
SystemException

setSalesAuditTransactionDate

public void setSalesAuditTransactionDate(RDate salesAuditTransactionDate)
                                  throws SystemException
Throws:
SystemException

getState

public com.retek.fsm.State getState()
Specified by:
getState in interface CustomerOrderPayment

inState

public boolean inState(com.retek.fsm.State state)
                throws SystemException
Description copied from interface: RcomRmmFsmable
Return boolean indicating if a state machine business object is the specified state.

Specified by:
inState in interface RcomRmmFsmable
Parameters:
state - expected state
Returns:
true if business object in specified state
Throws:
SystemException

getStateModel

public CustomerOrderPaymentStateModel getStateModel()

accept

public void accept(com.retek.fsm.Event event)
            throws SystemException,
                   BusinessException
Specified by:
accept in interface RcomRmmFsmable
Throws:
SystemException
BusinessException

fireFromRemote

public void fireFromRemote()
                    throws SystemException,
                           BusinessException
Specified by:
fireFromRemote in interface RcomRmmFsmable
Throws:
SystemException
BusinessException

getWorkflowContext

public RcomRmmWorkflowContext getWorkflowContext()
                                          throws SystemException
Throws:
SystemException

addNewPaymentToOrder

protected final void addNewPaymentToOrder(CustomerOrderPaymentImpl newPayment)
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException

addHistoryEvent

public void addHistoryEvent(CustomerOrderPaymentHistoryEvent historyEvent)
                     throws SystemException
Throws:
SystemException

getHistoryEvents

public java.util.Set getHistoryEvents()
                               throws SystemException
Specified by:
getHistoryEvents in interface CustomerOrderPayment
Throws:
SystemException

cancel

public void cancel()
            throws SystemException,
                   BusinessException
Specified by:
cancel in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

getAuthorizedMerchandiseAmount

protected Money getAuthorizedMerchandiseAmount()
                                        throws SystemException
Throws:
SystemException

authorize

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

authorize

public void authorize(Money authorizeAmount)
               throws SystemException,
                      BusinessException
Specified by:
authorize in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

authorizeManually

public void authorizeManually(java.lang.String authCode,
                              User user)
                       throws SystemException,
                              BusinessException
Specified by:
authorizeManually in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

authorizeManually

public void authorizeManually(Money authorizeAmount,
                              java.lang.String authCode,
                              User user)
                       throws SystemException,
                              BusinessException
Specified by:
authorizeManually in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

finishSettlement

public void finishSettlement(CustomerOrderSettlement settlement,
                             java.lang.String settlementFileNumber)
                      throws SystemException,
                             BusinessException
Specified by:
finishSettlement in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

getPaymentAuthorizationResponse

public final PaymentAuthorizationResponse getPaymentAuthorizationResponse()
                                                                   throws SystemException
Specified by:
getPaymentAuthorizationResponse in interface CustomerOrderPayment
Throws:
SystemException

setPaymentAuthorizationResponse

public void setPaymentAuthorizationResponse(PaymentAuthorizationResponse paymentAuthorizationResponse)
                                     throws SystemException
Throws:
SystemException

getSettlement

public CustomerOrderSettlement getSettlement()
                                      throws SystemException
Specified by:
getSettlement in interface CustomerOrderPayment
Throws:
SystemException

setSettlement

public void setSettlement(CustomerOrderSettlement settlement)
                   throws SystemException
Throws:
SystemException

setCurrency

public void setCurrency(java.lang.String currency)
                 throws SystemException
Specified by:
setCurrency in interface CustomerOrderPayment
Throws:
SystemException

getCurrency

public java.lang.String getCurrency()
                             throws SystemException
Specified by:
getCurrency in interface CustomerOrderPayment
Throws:
SystemException

setTransactionTypeCode

public void setTransactionTypeCode(java.lang.String transactionTypeCode)
                            throws SystemException
Specified by:
setTransactionTypeCode in interface CustomerOrderPayment
Throws:
SystemException

getTransactionTypeCode

public java.lang.String getTransactionTypeCode()
                                        throws SystemException
Specified by:
getTransactionTypeCode in interface CustomerOrderPayment
Throws:
SystemException

convertToPayment

public Payment convertToPayment(Money authorizeAmount)
                         throws BusinessException,
                                SystemException
Throws:
BusinessException
SystemException

getPayment

public abstract Payment getPayment()
                            throws BusinessException,
                                   SystemException
Throws:
BusinessException
SystemException

setAuthorizationResponseFromConvertedCustomerOrderVersion

public void setAuthorizationResponseFromConvertedCustomerOrderVersion(Payment payment)
                                                               throws BusinessException,
                                                                      SystemException
Throws:
BusinessException
SystemException

getOrder

public CustomerOrder getOrder()
                       throws SystemException
Specified by:
getOrder in interface CustomerOrderPayment
Throws:
SystemException

setOrder

public void setOrder(CustomerOrder customerOrder)
              throws BusinessException,
                     SystemException
Throws:
BusinessException
SystemException

getSettlementOrder

public int getSettlementOrder()
                       throws SystemException
Throws:
SystemException

splitCredit

public CustomerOrderPayment splitCredit(Money newPaymentAmount)
                                 throws BusinessException,
                                        SystemException
Throws:
BusinessException
SystemException

split

public CustomerOrderPayment split(Money newPaymentAmount)
                           throws BusinessException,
                                  SystemException
Throws:
BusinessException
SystemException

splitPayment

public CustomerOrderPayment splitPayment(Money newPaymentAmount)
                                  throws BusinessException,
                                         SystemException
Throws:
BusinessException
SystemException

createSplitInstance

protected abstract CustomerOrderPaymentImpl createSplitInstance()
                                                         throws BusinessException,
                                                                SystemException
Throws:
BusinessException
SystemException

allocateSettlement

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

allocateSettlement

public void allocateSettlement(Money amount,
                               RDate dateOfPurchase,
                               ReturnLine returnLine)
                        throws SystemException,
                               BusinessException
Specified by:
allocateSettlement in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

allocateSettlement

public void allocateSettlement(Money amount,
                               RDate dateOfPurchase,
                               ShippedContainer container)
                        throws SystemException,
                               BusinessException
Specified by:
allocateSettlement in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

isCreditPayment

public boolean isCreditPayment()
                        throws SystemException
Specified by:
isCreditPayment in interface CustomerOrderPayment
Throws:
SystemException

isCreditPaymentReadyForSettlement

public boolean isCreditPaymentReadyForSettlement()
                                          throws SystemException
Throws:
SystemException

makePaymentAgentUnmodifiable

public abstract void makePaymentAgentUnmodifiable()
                                           throws SystemException
Throws:
SystemException

setPaymentAuthorizationCode

public abstract void setPaymentAuthorizationCode(java.lang.String authCode)
                                          throws SystemException,
                                                 BusinessException
Throws:
SystemException
BusinessException

handleNewCreditPayment

public abstract void handleNewCreditPayment(Payment newPayment)
                                     throws SystemException,
                                            BusinessException
Throws:
SystemException
BusinessException

handleNewPayment

public abstract void handleNewPayment(Payment newPayment)
                               throws SystemException,
                                      BusinessException
Throws:
SystemException
BusinessException

isWithinPaymentAgentAuthorizationPeriod

public abstract boolean isWithinPaymentAgentAuthorizationPeriod()
                                                         throws SystemException,
                                                                BusinessException
Throws:
SystemException
BusinessException

convertToPayment

public abstract Payment convertToPayment()
                                  throws SystemException,
                                         BusinessException
Throws:
SystemException
BusinessException

getAccountNumber

public abstract java.lang.String getAccountNumber()
                                           throws SystemException
Specified by:
getAccountNumber in interface CustomerOrderPayment
Throws:
SystemException

isAmountAdjustable

public boolean isAmountAdjustable()
                           throws SystemException
Specified by:
isAmountAdjustable in interface CustomerOrderPayment
Throws:
SystemException

isAmountAdjustable

public boolean isAmountAdjustable(CustomerOrderTransactionItem transactionItem)
                           throws SystemException
Specified by:
isAmountAdjustable in interface CustomerOrderPayment
Throws:
SystemException

consolidatePayments

public final void consolidatePayments(java.util.Set groupOfPayments)
                               throws SystemException,
                                      BusinessException
Specified by:
consolidatePayments in interface CustomerOrderPayment
Throws:
SystemException
BusinessException

doConsolidateFromSourcePayment

public void doConsolidateFromSourcePayment(CustomerOrderPaymentImpl sourcePayment)
                                    throws SystemException,
                                           BusinessException
Throws:
SystemException
BusinessException

getTenderType

public TenderType getTenderType()
                         throws SystemException
Specified by:
getTenderType in interface CustomerOrderPayment
Throws:
SystemException

setTenderType

public void setTenderType(TenderType tenderType)
                   throws SystemException
Throws:
SystemException

isApproved

public boolean isApproved()
                   throws SystemException
Specified by:
isApproved in interface CustomerOrderPayment
Throws:
SystemException

isManuallyApproved

public boolean isManuallyApproved()
                           throws SystemException
Specified by:
isManuallyApproved in interface CustomerOrderPayment
Throws:
SystemException

isCancelled

public boolean isCancelled()
                    throws SystemException
Specified by:
isCancelled in interface CustomerOrderPayment
Throws:
SystemException

isReferral

public boolean isReferral()
                   throws SystemException
Specified by:
isReferral in interface CustomerOrderPayment
Throws:
SystemException

isFraud

public boolean isFraud()
                throws SystemException
Specified by:
isFraud in interface CustomerOrderPayment
Throws:
SystemException

isDeclined

public boolean isDeclined()
                   throws SystemException
Specified by:
isDeclined in interface CustomerOrderPayment
Throws:
SystemException

isPreSettled

public boolean isPreSettled()
                     throws SystemException
Specified by:
isPreSettled in interface CustomerOrderPayment
Throws:
SystemException

isCancelable

public final boolean isCancelable()
                           throws SystemException
Specified by:
isCancelable in interface CustomerOrderPayment
Throws:
SystemException

setAuthorizedAmount

public void setAuthorizedAmount(Money authorizedAmount)
                         throws SystemException
Specified by:
setAuthorizedAmount in interface CustomerOrderPayment
Throws:
SystemException

setOriginalAuthorizedAmount

public void setOriginalAuthorizedAmount(Money authorizedAmount)
                                 throws SystemException
Specified by:
setOriginalAuthorizedAmount in interface CustomerOrderPayment
Throws:
SystemException

getAuthorizedAmount

public Money getAuthorizedAmount()
                          throws SystemException
Specified by:
getAuthorizedAmount in interface CustomerOrderPayment
Throws:
SystemException

getUnauthorizedAmount

public Money getUnauthorizedAmount()
                            throws SystemException
Specified by:
getUnauthorizedAmount in interface CustomerOrderPayment
Throws:
SystemException

hasUnauthorizedAmount

public boolean hasUnauthorizedAmount()
                              throws SystemException
Specified by:
hasUnauthorizedAmount in interface CustomerOrderPayment
Throws:
SystemException

getTransactionGroup

public CustomerOrderTransactionGroup getTransactionGroup()
                                                  throws SystemException
Specified by:
getTransactionGroup in interface CustomerOrderTransactionItem
Throws:
SystemException

isInClosedTransactionGroup

public boolean isInClosedTransactionGroup()
                                   throws SystemException
Specified by:
isInClosedTransactionGroup in interface CustomerOrderTransactionItem
Throws:
SystemException

setTransactionGroup

public void setTransactionGroup(CustomerOrderTransactionGroup transactionGroup)
                         throws SystemException
Specified by:
setTransactionGroup in interface CustomerOrderTransactionItem
Throws:
SystemException

notifyTransactionGroupClosed

public void notifyTransactionGroupClosed()
                                  throws SystemException
Specified by:
notifyTransactionGroupClosed in interface CustomerOrderTransactionItem
Throws:
SystemException

isCreditPaymentForAccommodation

public boolean isCreditPaymentForAccommodation()
                                        throws SystemException
Specified by:
isCreditPaymentForAccommodation in interface CustomerOrderPayment
Throws:
SystemException

isCreditPaymentForPostSaleAccommodation

public boolean isCreditPaymentForPostSaleAccommodation()
                                                throws SystemException
Specified by:
isCreditPaymentForPostSaleAccommodation in interface CustomerOrderPayment
Throws:
SystemException

isCreditPaymentForPreSaleAccommodation

public boolean isCreditPaymentForPreSaleAccommodation()
                                               throws SystemException
Specified by:
isCreditPaymentForPreSaleAccommodation in interface CustomerOrderPayment
Throws:
SystemException

isCreditPaymentForExchangeSaleCancelReadyForSettlement

public boolean isCreditPaymentForExchangeSaleCancelReadyForSettlement()
                                                               throws SystemException
Throws:
SystemException

getPaymentTransactionType

public CustomerOrderPaymentTransactionType getPaymentTransactionType()
                                                              throws SystemException
Specified by:
getPaymentTransactionType in interface CustomerOrderPayment
Throws:
SystemException

setPaymentTransactionType

public void setPaymentTransactionType(CustomerOrderPaymentTransactionType paymentTransactionType)
                               throws SystemException
Specified by:
setPaymentTransactionType in interface CustomerOrderPayment
Throws:
SystemException

getRefundRecipientAddress

public CustomerAddress getRefundRecipientAddress()
                                          throws SystemException
Description copied from interface: CustomerOrderPayment
Return the refund recipient address for the refund payment. Will be null if the payment is not a credit payment OR if no refund recipient was explicitly set for the payment. If the refund recipient is not set for the payment, the CustomerOrder bill-to address will be used as the default.

Specified by:
getRefundRecipientAddress in interface CustomerOrderPayment
Returns:
CustomerAddress refund recipient address
Throws:
SystemException

setRefundRecipientAddress

public void setRefundRecipientAddress(CustomerAddress address)
                               throws SystemException
Description copied from interface: CustomerOrderPayment
Set the recipient address for the refund payment. This address is used when publishing the refund payment during the payment settlement process. If the refund recipient is not set for the payment, the CustomerOrder bill-to address will be used as the default.

Specified by:
setRefundRecipientAddress in interface CustomerOrderPayment
Parameters:
address - refund recipient address
Throws:
SystemException

isCreditForTransactionGroupBalance

public boolean isCreditForTransactionGroupBalance()
                                           throws SystemException
Specified by:
isCreditForTransactionGroupBalance in interface CustomerOrderTransactionItem
Throws:
SystemException

isDebitForTransactionGroupBalance

public boolean isDebitForTransactionGroupBalance()
                                          throws SystemException
Specified by:
isDebitForTransactionGroupBalance in interface CustomerOrderTransactionItem
Throws:
SystemException

isCreditCardTender

public boolean isCreditCardTender()
                           throws SystemException
Throws:
SystemException

isPhysicalTender

public boolean isPhysicalTender()
                         throws SystemException
Specified by:
isPhysicalTender in interface CustomerOrderPayment
Throws:
SystemException

getTransactionItemAmount

public Money getTransactionItemAmount()
                               throws SystemException,
                                      BusinessException
Specified by:
getTransactionItemAmount in interface CustomerOrderTransactionItem
Throws:
SystemException
BusinessException

copyPaymentHistory

public java.util.Set copyPaymentHistory(java.util.Set payments)
                                 throws SystemException
Throws:
SystemException

isExchangeSaleLine

public boolean isExchangeSaleLine()
                           throws SystemException
Specified by:
isExchangeSaleLine in interface CustomerOrderTransactionItem
Throws:
SystemException

isReplacementSaleLine

public boolean isReplacementSaleLine()
                              throws SystemException
Specified by:
isReplacementSaleLine in interface CustomerOrderTransactionItem
Throws:
SystemException

onStateChange

public void onStateChange(com.retek.fsm.State originalState,
                          com.retek.fsm.State newState)
Specified by:
onStateChange in interface com.retek.fsm.FSMAble


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