com.retek.component.customerorder.impl
Class CustomerOrderCreditCardPaymentImpl

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.CustomerOrderCreditCardPaymentImpl
All Implemented Interfaces:
BusinessObject, java.lang.Comparable, CustomerOrderCreditCardPayment, CustomerOrderPayment, CustomerOrderTransactionItem, DistributedObject, com.retek.fsm.FSMAble, RcomRmmFsmable, Refundable

public class CustomerOrderCreditCardPaymentImpl
extends CustomerOrderPaymentImpl
implements CustomerOrderCreditCardPayment


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.CustomerOrderCreditCardPayment
CREDIT_CARD, CREDIT_LIMIT, CURRENCY, CUSTOMER, PAYMENT_PLAN_CODE, TRANSACTION_TYPE_CODE
 
Fields inherited from interface com.retek.component.customerorder.CustomerOrderPayment
AMOUNT, SET_ORDER, TENDER_TYPE
 
Constructor Summary
CustomerOrderCreditCardPaymentImpl(DistributedContext context, DistributedReference ref)
           
CustomerOrderCreditCardPaymentImpl(DistributedContext context, DistributedReference ref, boolean createHollow)
           
 
Method Summary
 boolean checkPaymentExpired()
           
 void clearPromotionAndPlanCode()
           
 Payment convertToPayment()
           
 Payment convertToPayment(Money authorizeAmount)
           
 void createHistoryEventDetails(CustomerOrderPaymentHistoryEvent event)
           
protected  CustomerOrderPaymentImpl createSplitInstance()
           
 void doConsolidateFromSourcePayment(CustomerOrderPaymentImpl sourcePayment)
           
 java.lang.String getAccountNumber()
           
 Address getAddress()
           
 CreditCard getCreditCard()
           
 CustomerOrderCreditCardPaymentAuthorizationResponse getCreditCardAuthorizationResponse()
           
 Payment getPayment()
           
 PaymentPlanCode getPaymentPlanCode()
           
 Promotion getPromotion()
           
 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.
 TenderType getTenderType()
           
 void handleNewCreditPayment(Payment newCreditPayment)
           
 void handleNewPayment(Payment newPayment)
           
 boolean isReauthorizationAllowed()
           
 boolean isWithinPaymentAgentAuthorizationPeriod()
           
 void makePaymentAgentUnmodifiable()
           
 void markSalePaymentReadyForPaidInExport()
          Mark a sale payment 'R'EADY for Sales Audit PAIDIN transaction processing.
 void setAddress(Address address)
           
 void setAmount(Money amount)
           
 void setAuthorizationResponseFromConvertedCustomerOrderVersion(Payment payment)
           
 void setCreditCard(CreditCard creditCard)
           
 void setCreditCardAuthorizationResponse(CustomerOrderCreditCardPaymentAuthorizationResponse response)
           
 void setPaymentAuthorizationCode(java.lang.String authCode)
           
 void setPaymentPlanCode(PaymentPlanCode paymentPlanCode)
           
 void setPromotion(Promotion promotion)
           
 void setTenderType(TenderType tenderType)
           
 
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, copyPaymentHistory, createHistoryEvent, finishSettlement, fireFromRemote, getAmount, getAuthorizedAmount, getAuthorizedMerchandiseAmount, getCurrency, getDto, getHistoryEvents, getOrder, getOriginalAuthorizedAmount, getPaymentAuthorizationResponse, getPaymentTransactionType, getRefundRecipientAddress, getSalesAuditExportAmount, getSalesAuditPaidInState, getSalesAuditPaidOutState, getSalesAuditTransactionDate, getSettlement, getSettlementOrder, getState, getStateModel, 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, notifyTransactionGroupClosed, onStateChange, readLatest, setAmountUnchecked, setAuthorizedAmount, setCurrency, setOrder, setOriginalAuthorizedAmount, setPaymentAuthorizationResponse, setPaymentTransactionType, setRefundRecipientAddress, setSalesAuditTransactionDate, setSettlement, 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.CustomerOrderCreditCardPayment
getTransactionTypeCode
 
Methods inherited from interface com.retek.component.customerorder.CustomerOrderPayment
addSalesAuditExportAmount, allocateSettlement, allocateSettlement, allocateSettlement, authorize, authorize, authorizeManually, authorizeManually, cancel, consolidatePayments, finishSettlement, getAmount, getAuthorizedAmount, getCurrency, getHistoryEvents, getOrder, getOriginalAuthorizedAmount, getPaymentAuthorizationResponse, getPaymentTransactionType, getRefundRecipientAddress, getSalesAuditExportAmount, getSalesAuditPaidInState, getSalesAuditPaidOutState, getSalesAuditTransactionDate, getSettlement, getState, getUnauthorizedAmount, hasUnauthorizedAmount, isAmountAdjustable, isAmountAdjustable, isApproved, isCancelable, isCancelled, isCreditPayment, isCreditPaymentForAccommodation, isCreditPaymentForPostSaleAccommodation, isCreditPaymentForPreSaleAccommodation, isDeclined, isFraud, isManuallyApproved, isPhysicalTender, isPreSettled, isReferral, isSettled, isWaitingAuth, isWaitingManualAuth, markCreditPaymentExportedForPaidOut, markCreditPaymentReadyForPaidOutExport, markSalePaymentExportedForPaidIn, 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

CustomerOrderCreditCardPaymentImpl

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

CustomerOrderCreditCardPaymentImpl

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

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

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

createHistoryEventDetails

public void createHistoryEventDetails(CustomerOrderPaymentHistoryEvent event)
                               throws SystemException
Specified by:
createHistoryEventDetails in class CustomerOrderPaymentImpl
Throws:
SystemException

setCreditCard

public void setCreditCard(CreditCard creditCard)
                   throws SystemException,
                          BusinessException
Specified by:
setCreditCard in interface CustomerOrderCreditCardPayment
Throws:
SystemException
BusinessException

getAddress

public Address getAddress()
                   throws SystemException
Specified by:
getAddress in interface CustomerOrderCreditCardPayment
Throws:
SystemException

getCreditCard

public CreditCard getCreditCard()
                         throws SystemException
Specified by:
getCreditCard in interface CustomerOrderCreditCardPayment
Throws:
SystemException

setAddress

public void setAddress(Address address)
                throws SystemException
Specified by:
setAddress in interface CustomerOrderCreditCardPayment
Throws:
SystemException

getPaymentPlanCode

public PaymentPlanCode getPaymentPlanCode()
                                   throws SystemException
Specified by:
getPaymentPlanCode in interface CustomerOrderCreditCardPayment
Throws:
SystemException

setPaymentPlanCode

public void setPaymentPlanCode(PaymentPlanCode paymentPlanCode)
                        throws SystemException
Specified by:
setPaymentPlanCode in interface CustomerOrderCreditCardPayment
Throws:
SystemException

convertToPayment

public Payment convertToPayment(Money authorizeAmount)
                         throws BusinessException,
                                SystemException
Overrides:
convertToPayment in class CustomerOrderPaymentImpl
Throws:
BusinessException
SystemException

checkPaymentExpired

public boolean checkPaymentExpired()
                            throws SystemException,
                                   BusinessException
Specified by:
checkPaymentExpired in interface CustomerOrderCreditCardPayment
Throws:
SystemException
BusinessException

setAuthorizationResponseFromConvertedCustomerOrderVersion

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

getCreditCardAuthorizationResponse

public CustomerOrderCreditCardPaymentAuthorizationResponse getCreditCardAuthorizationResponse()
                                                                                       throws SystemException
Specified by:
getCreditCardAuthorizationResponse in interface CustomerOrderCreditCardPayment
Throws:
SystemException

setCreditCardAuthorizationResponse

public void setCreditCardAuthorizationResponse(CustomerOrderCreditCardPaymentAuthorizationResponse response)
                                        throws SystemException
Throws:
SystemException

setAmount

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

getPayment

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

handleNewPayment

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

handleNewCreditPayment

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

convertToPayment

public Payment convertToPayment()
                         throws SystemException,
                                BusinessException
Specified by:
convertToPayment in class CustomerOrderPaymentImpl
Throws:
SystemException
BusinessException

makePaymentAgentUnmodifiable

public void makePaymentAgentUnmodifiable()
                                  throws SystemException
Specified by:
makePaymentAgentUnmodifiable in class CustomerOrderPaymentImpl
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
Overrides:
markSalePaymentReadyForPaidInExport in class CustomerOrderPaymentImpl
Throws:
SystemException

setPaymentAuthorizationCode

public void setPaymentAuthorizationCode(java.lang.String authCode)
                                 throws SystemException,
                                        BusinessException
Specified by:
setPaymentAuthorizationCode in class CustomerOrderPaymentImpl
Throws:
SystemException
BusinessException

isReauthorizationAllowed

public boolean isReauthorizationAllowed()
                                 throws SystemException
Specified by:
isReauthorizationAllowed in interface CustomerOrderCreditCardPayment
Throws:
SystemException

isWithinPaymentAgentAuthorizationPeriod

public boolean isWithinPaymentAgentAuthorizationPeriod()
                                                throws SystemException,
                                                       BusinessException
Specified by:
isWithinPaymentAgentAuthorizationPeriod in class CustomerOrderPaymentImpl
Throws:
SystemException
BusinessException

getTenderType

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

setTenderType

public void setTenderType(TenderType tenderType)
                   throws SystemException
Specified by:
setTenderType in interface CustomerOrderCreditCardPayment
Overrides:
setTenderType in class CustomerOrderPaymentImpl
Throws:
SystemException

createSplitInstance

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

getAccountNumber

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

doConsolidateFromSourcePayment

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

getPromotion

public Promotion getPromotion()
                       throws SystemException
Specified by:
getPromotion in interface CustomerOrderCreditCardPayment
Throws:
SystemException

setPromotion

public void setPromotion(Promotion promotion)
                  throws SystemException
Specified by:
setPromotion in interface CustomerOrderCreditCardPayment
Throws:
SystemException

clearPromotionAndPlanCode

public void clearPromotionAndPlanCode()
                               throws SystemException
Specified by:
clearPromotionAndPlanCode in interface CustomerOrderCreditCardPayment
Throws:
SystemException


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