|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.component.impl.BusinessObjectImpl
com.retek.commons.component.impl.DistributedObjectImpl
com.retek.component.customerorder.impl.CustomerOrderPaymentImpl
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 |
public CustomerOrderPaymentImpl(DistributedContext context, DistributedReference ref, boolean createHollow) throws SystemException
public CustomerOrderPaymentImpl(DistributedContext context, DistributedReference ref) throws SystemException, BusinessException
Method Detail |
protected Dto readLatest() throws SystemException
readLatest
in class DistributedObjectImpl
SystemException
public CustomerOrderPaymentDto getDto() throws SystemException
SystemException
public void setAmount(Money amount) throws SystemException, BusinessException
setAmount
in interface CustomerOrderPayment
SystemException
BusinessException
public void setAmountUnchecked(Money amount) throws SystemException
SystemException
protected void checkModifiable() throws SystemException
SystemException
public Money getAmount() throws SystemException
getAmount
in interface CustomerOrderPayment
SystemException
public boolean isModifiable() throws SystemException
SystemException
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void createHistoryEvent(com.retek.fsm.State state, java.util.Set containers, Money authorizedAmount) throws SystemException, BusinessException
SystemException
BusinessException
public abstract void createHistoryEventDetails(CustomerOrderPaymentHistoryEvent event) throws SystemException
SystemException
public boolean isSettled() throws SystemException
isSettled
in interface CustomerOrderPayment
SystemException
public boolean isWaitingManualAuth() throws SystemException
isWaitingManualAuth
in interface CustomerOrderPayment
SystemException
public boolean isWaitingAuth() throws SystemException
isWaitingAuth
in interface CustomerOrderPayment
SystemException
public Money getSalesAuditExportAmount() throws SystemException
CustomerOrderPayment
getSalesAuditExportAmount
in interface CustomerOrderPayment
SystemException
public void addSalesAuditExportAmount(Money amount) throws SystemException
CustomerOrderPayment
addSalesAuditExportAmount
in interface CustomerOrderPayment
amount
- export amount used (for SALE or RETURN)
SystemException
public Money getOriginalAuthorizedAmount() throws SystemException
getOriginalAuthorizedAmount
in interface CustomerOrderPayment
SystemException
public void addSalesAuditExportAmount(Money amount, boolean checkForInvalidAmount) throws SystemException
SystemException
public ExportState getSalesAuditPaidInState() throws SystemException
CustomerOrderPayment
getSalesAuditPaidInState
in interface CustomerOrderPayment
SystemException
public void markSalePaymentReadyForPaidInExport() throws SystemException
CustomerOrderPayment
markSalePaymentReadyForPaidInExport
in interface CustomerOrderPayment
SystemException
public void markSalePaymentExportedForPaidIn() throws SystemException
CustomerOrderPayment
markSalePaymentExportedForPaidIn
in interface CustomerOrderPayment
SystemException
public ExportState getSalesAuditPaidOutState() throws SystemException
CustomerOrderPayment
getSalesAuditPaidOutState
in interface CustomerOrderPayment
SystemException
public void markCreditPaymentReadyForPaidOutExport() throws SystemException
CustomerOrderPayment
markCreditPaymentReadyForPaidOutExport
in interface CustomerOrderPayment
SystemException
public void markCreditPaymentExportedForPaidOut() throws SystemException
CustomerOrderPayment
markCreditPaymentExportedForPaidOut
in interface CustomerOrderPayment
SystemException
public RDate getSalesAuditTransactionDate() throws SystemException
CustomerOrderPayment
getSalesAuditTransactionDate
in interface CustomerOrderPayment
SystemException
public void setSalesAuditTransactionDate(RDate salesAuditTransactionDate) throws SystemException
SystemException
public com.retek.fsm.State getState()
getState
in interface CustomerOrderPayment
public boolean inState(com.retek.fsm.State state) throws SystemException
RcomRmmFsmable
inState
in interface RcomRmmFsmable
state
- expected state
SystemException
public CustomerOrderPaymentStateModel getStateModel()
public void accept(com.retek.fsm.Event event) throws SystemException, BusinessException
accept
in interface RcomRmmFsmable
SystemException
BusinessException
public void fireFromRemote() throws SystemException, BusinessException
fireFromRemote
in interface RcomRmmFsmable
SystemException
BusinessException
public RcomRmmWorkflowContext getWorkflowContext() throws SystemException
SystemException
protected final void addNewPaymentToOrder(CustomerOrderPaymentImpl newPayment) throws SystemException, BusinessException
SystemException
BusinessException
public void addHistoryEvent(CustomerOrderPaymentHistoryEvent historyEvent) throws SystemException
SystemException
public java.util.Set getHistoryEvents() throws SystemException
getHistoryEvents
in interface CustomerOrderPayment
SystemException
public void cancel() throws SystemException, BusinessException
cancel
in interface CustomerOrderPayment
SystemException
BusinessException
protected Money getAuthorizedMerchandiseAmount() throws SystemException
SystemException
public void authorize() throws SystemException, BusinessException
authorize
in interface CustomerOrderPayment
SystemException
BusinessException
public void authorize(Money authorizeAmount) throws SystemException, BusinessException
authorize
in interface CustomerOrderPayment
SystemException
BusinessException
public void authorizeManually(java.lang.String authCode, User user) throws SystemException, BusinessException
authorizeManually
in interface CustomerOrderPayment
SystemException
BusinessException
public void authorizeManually(Money authorizeAmount, java.lang.String authCode, User user) throws SystemException, BusinessException
authorizeManually
in interface CustomerOrderPayment
SystemException
BusinessException
public void finishSettlement(CustomerOrderSettlement settlement, java.lang.String settlementFileNumber) throws SystemException, BusinessException
finishSettlement
in interface CustomerOrderPayment
SystemException
BusinessException
public final PaymentAuthorizationResponse getPaymentAuthorizationResponse() throws SystemException
getPaymentAuthorizationResponse
in interface CustomerOrderPayment
SystemException
public void setPaymentAuthorizationResponse(PaymentAuthorizationResponse paymentAuthorizationResponse) throws SystemException
SystemException
public CustomerOrderSettlement getSettlement() throws SystemException
getSettlement
in interface CustomerOrderPayment
SystemException
public void setSettlement(CustomerOrderSettlement settlement) throws SystemException
SystemException
public void setCurrency(java.lang.String currency) throws SystemException
setCurrency
in interface CustomerOrderPayment
SystemException
public java.lang.String getCurrency() throws SystemException
getCurrency
in interface CustomerOrderPayment
SystemException
public void setTransactionTypeCode(java.lang.String transactionTypeCode) throws SystemException
setTransactionTypeCode
in interface CustomerOrderPayment
SystemException
public java.lang.String getTransactionTypeCode() throws SystemException
getTransactionTypeCode
in interface CustomerOrderPayment
SystemException
public Payment convertToPayment(Money authorizeAmount) throws BusinessException, SystemException
BusinessException
SystemException
public abstract Payment getPayment() throws BusinessException, SystemException
BusinessException
SystemException
public void setAuthorizationResponseFromConvertedCustomerOrderVersion(Payment payment) throws BusinessException, SystemException
BusinessException
SystemException
public CustomerOrder getOrder() throws SystemException
getOrder
in interface CustomerOrderPayment
SystemException
public void setOrder(CustomerOrder customerOrder) throws BusinessException, SystemException
BusinessException
SystemException
public int getSettlementOrder() throws SystemException
SystemException
public CustomerOrderPayment splitCredit(Money newPaymentAmount) throws BusinessException, SystemException
BusinessException
SystemException
public CustomerOrderPayment split(Money newPaymentAmount) throws BusinessException, SystemException
BusinessException
SystemException
public CustomerOrderPayment splitPayment(Money newPaymentAmount) throws BusinessException, SystemException
BusinessException
SystemException
protected abstract CustomerOrderPaymentImpl createSplitInstance() throws BusinessException, SystemException
BusinessException
SystemException
public void allocateSettlement(Money amount, RDate dateOfPurchase) throws SystemException, BusinessException
allocateSettlement
in interface CustomerOrderPayment
SystemException
BusinessException
public void allocateSettlement(Money amount, RDate dateOfPurchase, ReturnLine returnLine) throws SystemException, BusinessException
allocateSettlement
in interface CustomerOrderPayment
SystemException
BusinessException
public void allocateSettlement(Money amount, RDate dateOfPurchase, ShippedContainer container) throws SystemException, BusinessException
allocateSettlement
in interface CustomerOrderPayment
SystemException
BusinessException
public boolean isCreditPayment() throws SystemException
isCreditPayment
in interface CustomerOrderPayment
SystemException
public boolean isCreditPaymentReadyForSettlement() throws SystemException
SystemException
public abstract void makePaymentAgentUnmodifiable() throws SystemException
SystemException
public abstract void setPaymentAuthorizationCode(java.lang.String authCode) throws SystemException, BusinessException
SystemException
BusinessException
public abstract void handleNewCreditPayment(Payment newPayment) throws SystemException, BusinessException
SystemException
BusinessException
public abstract void handleNewPayment(Payment newPayment) throws SystemException, BusinessException
SystemException
BusinessException
public abstract boolean isWithinPaymentAgentAuthorizationPeriod() throws SystemException, BusinessException
SystemException
BusinessException
public abstract Payment convertToPayment() throws SystemException, BusinessException
SystemException
BusinessException
public abstract java.lang.String getAccountNumber() throws SystemException
getAccountNumber
in interface CustomerOrderPayment
SystemException
public boolean isAmountAdjustable() throws SystemException
isAmountAdjustable
in interface CustomerOrderPayment
SystemException
public boolean isAmountAdjustable(CustomerOrderTransactionItem transactionItem) throws SystemException
isAmountAdjustable
in interface CustomerOrderPayment
SystemException
public final void consolidatePayments(java.util.Set groupOfPayments) throws SystemException, BusinessException
consolidatePayments
in interface CustomerOrderPayment
SystemException
BusinessException
public void doConsolidateFromSourcePayment(CustomerOrderPaymentImpl sourcePayment) throws SystemException, BusinessException
SystemException
BusinessException
public TenderType getTenderType() throws SystemException
getTenderType
in interface CustomerOrderPayment
SystemException
public void setTenderType(TenderType tenderType) throws SystemException
SystemException
public boolean isApproved() throws SystemException
isApproved
in interface CustomerOrderPayment
SystemException
public boolean isManuallyApproved() throws SystemException
isManuallyApproved
in interface CustomerOrderPayment
SystemException
public boolean isCancelled() throws SystemException
isCancelled
in interface CustomerOrderPayment
SystemException
public boolean isReferral() throws SystemException
isReferral
in interface CustomerOrderPayment
SystemException
public boolean isFraud() throws SystemException
isFraud
in interface CustomerOrderPayment
SystemException
public boolean isDeclined() throws SystemException
isDeclined
in interface CustomerOrderPayment
SystemException
public boolean isPreSettled() throws SystemException
isPreSettled
in interface CustomerOrderPayment
SystemException
public final boolean isCancelable() throws SystemException
isCancelable
in interface CustomerOrderPayment
SystemException
public void setAuthorizedAmount(Money authorizedAmount) throws SystemException
setAuthorizedAmount
in interface CustomerOrderPayment
SystemException
public void setOriginalAuthorizedAmount(Money authorizedAmount) throws SystemException
setOriginalAuthorizedAmount
in interface CustomerOrderPayment
SystemException
public Money getAuthorizedAmount() throws SystemException
getAuthorizedAmount
in interface CustomerOrderPayment
SystemException
public Money getUnauthorizedAmount() throws SystemException
getUnauthorizedAmount
in interface CustomerOrderPayment
SystemException
public boolean hasUnauthorizedAmount() throws SystemException
hasUnauthorizedAmount
in interface CustomerOrderPayment
SystemException
public CustomerOrderTransactionGroup getTransactionGroup() throws SystemException
getTransactionGroup
in interface CustomerOrderTransactionItem
SystemException
public boolean isInClosedTransactionGroup() throws SystemException
isInClosedTransactionGroup
in interface CustomerOrderTransactionItem
SystemException
public void setTransactionGroup(CustomerOrderTransactionGroup transactionGroup) throws SystemException
setTransactionGroup
in interface CustomerOrderTransactionItem
SystemException
public void notifyTransactionGroupClosed() throws SystemException
notifyTransactionGroupClosed
in interface CustomerOrderTransactionItem
SystemException
public boolean isCreditPaymentForAccommodation() throws SystemException
isCreditPaymentForAccommodation
in interface CustomerOrderPayment
SystemException
public boolean isCreditPaymentForPostSaleAccommodation() throws SystemException
isCreditPaymentForPostSaleAccommodation
in interface CustomerOrderPayment
SystemException
public boolean isCreditPaymentForPreSaleAccommodation() throws SystemException
isCreditPaymentForPreSaleAccommodation
in interface CustomerOrderPayment
SystemException
public boolean isCreditPaymentForExchangeSaleCancelReadyForSettlement() throws SystemException
SystemException
public CustomerOrderPaymentTransactionType getPaymentTransactionType() throws SystemException
getPaymentTransactionType
in interface CustomerOrderPayment
SystemException
public void setPaymentTransactionType(CustomerOrderPaymentTransactionType paymentTransactionType) throws SystemException
setPaymentTransactionType
in interface CustomerOrderPayment
SystemException
public CustomerAddress getRefundRecipientAddress() throws SystemException
CustomerOrderPayment
getRefundRecipientAddress
in interface CustomerOrderPayment
SystemException
public void setRefundRecipientAddress(CustomerAddress address) throws SystemException
CustomerOrderPayment
setRefundRecipientAddress
in interface CustomerOrderPayment
address
- refund recipient address
SystemException
public boolean isCreditForTransactionGroupBalance() throws SystemException
isCreditForTransactionGroupBalance
in interface CustomerOrderTransactionItem
SystemException
public boolean isDebitForTransactionGroupBalance() throws SystemException
isDebitForTransactionGroupBalance
in interface CustomerOrderTransactionItem
SystemException
public boolean isCreditCardTender() throws SystemException
SystemException
public boolean isPhysicalTender() throws SystemException
isPhysicalTender
in interface CustomerOrderPayment
SystemException
public Money getTransactionItemAmount() throws SystemException, BusinessException
getTransactionItemAmount
in interface CustomerOrderTransactionItem
SystemException
BusinessException
public java.util.Set copyPaymentHistory(java.util.Set payments) throws SystemException
SystemException
public boolean isExchangeSaleLine() throws SystemException
isExchangeSaleLine
in interface CustomerOrderTransactionItem
SystemException
public boolean isReplacementSaleLine() throws SystemException
isReplacementSaleLine
in interface CustomerOrderTransactionItem
SystemException
public void onStateChange(com.retek.fsm.State originalState, com.retek.fsm.State newState)
onStateChange
in interface com.retek.fsm.FSMAble
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |