|
|||||||||||
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.CustomerOrderImpl
Nested Class Summary |
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.CustomerOrder |
ACCOMMODATION, BALANCE, BANNER, BILL_TO_ADDRESS, CANCEL_PENDED_ORDER_DATE, CUSTOMER, DISPLAY_NUMBER, MAIL_ORDER_BATCH, ORDER_LINE, ORDER_PRIORITY, ORDER_TYPE, PAYMENT, PRIORITY, RETURN_LINE, SHIP_TO_ADDRESS, SHIPPED_CONTAINER, SOURCE_CODE, STORE, TAX_ACCOMMODATION, ZERO_SALE_LINE |
Constructor Summary | |
CustomerOrderImpl(DistributedContext context,
DistributedReference ref,
boolean createHollow)
|
|
CustomerOrderImpl(DistributedContext context,
DistributedReference ref,
User user,
OrderType orderType)
|
Method Summary | |
void |
accept(com.retek.fsm.Event event)
|
void |
addAccommodationAndGeneratePayment(Accommodation accommodation,
Refundable refundable)
Calculates the value of the accommodation, adds the accommodation to the order, generates a credit payment for the accommodation, sets the order priority to HIGH, and generates a history event for the accommodation. |
void |
addCallTag(User user,
CallTag callTag)
|
void |
addHistoryEventRequest(HistoryEventRequest eventRequest)
Create a new history event request and add to the collection of requests so later history events can be created when order is submitted. |
void |
addJustPublishedToWmsShipmentRequest(ShipmentRequest shipmentRequest,
User user)
|
void |
addOfferCode(OfferCode offerCode)
|
void |
addPayment(CustomerOrderPayment payment)
|
void |
addPayment(CustomerOrderPayment payment,
boolean reapplyPromotions)
|
void |
addPayment(CustomerOrderPayment payment,
CustomerOrderTransactionGroup group,
boolean reapplyPromotions)
|
void |
addPaymentForConsolidation(CustomerOrderPayment payment)
|
void |
addPromotionDiscount(CustomerOrderPromotionDiscountImpl discount)
Add a promotion discount to the business object. |
void |
addTransactionGroup(CustomerOrderTransactionGroup transactionGroup)
|
void |
adjustCreditPaymentsForReturn(Money amount,
ReturnLine returnLine)
|
CustomerOrderPayment |
adjustPaymentsForSalesAuditGoodwill()
|
void |
applyGiftingDetailToLines(java.util.Set orderLines,
GiftingDetail giftingDetail)
|
void |
applyOrderLine(CustomerOrderLine orderLine,
User user)
Adds orderLine to the set of order lines for this order, reserves this order line, and applies promotions. |
void |
applyPromotionalOrderLine(CustomerOrderLine orderLine,
User user,
Promotion promotion)
|
void |
applyPromotionalPaymentPlanCode(PaymentPlanCode selectedPaymentPlanCode,
Promotion promotion)
|
void |
applyPromotions(User user,
RDate createDate)
|
void |
applyPromotions(User user,
RDate createDate,
OrderCancelReason reason)
|
void |
applyReplacement(ReplacementLinePair replacementPair,
User user)
Adds replacementLine from replacementGroup to the order and reserves the replacement line |
void |
applyReturnLine(ReturnLine returnLine,
User user)
Adds returnLine to the order, clears calculated totals on the return line's shipTo. |
void |
assignShipToForOrderLine(CustomerOrderLine orderLine)
|
void |
assignTransactionItemToGroup(CustomerOrderTransactionItem item)
|
void |
authorizePayment(CustomerOrderPayment payment)
Using an authorization calculation strategy, calculates the amount to be authorized for this payment. |
void |
authorizePaymentManually(CustomerOrderPayment payment,
java.lang.String authCode,
User user)
For payments needing manual authorization, manually authorize the payment by storing the authorization code and authorization date. |
boolean |
canApplyTaxAccommodation()
|
void |
cancel(OrderCancelReason cancelReason,
User user)
|
void |
cleanUpDanglingWrapTogetherGroups()
|
void |
clearHistoryEventRequests()
|
void |
clearPendAttributes()
This method is for internal use only in the state machine to clean up the pend attributes. |
void |
clearPromotionDiscounts()
Clear all non-locked promotion discounts on the business object. |
void |
clearSpecialHandlingForLines(java.util.Set orderLines,
User user)
|
void |
clearTaxCalculationError()
Clears tax calculation errors on all shipTos and all returnLines for this order |
void |
consolidatePreSettledPayments()
Combines payments at settlement time according to payment account number, payment tender type, and whether the payment amount is positive or negative. |
void |
createAndPublishDirectShipOrder(User user,
RDate maxReleaseDate)
|
void |
createBackorderNotificationHistoryEvent(CustomerOrderCorrespondenceRequest request,
User user)
Adds a new unsaved history event to the order with type = HistoryEventType.BO_NOTIFICATION. |
void |
createComponentReturnOnPackHistoryEvent(java.lang.String sellableItemId,
User user)
Adds a new unsaved history event to the order with type = HistoryEventType.COMPONENT_RETURN_ON_PACK |
void |
createCustomerCorrespondenceHistoryEvent(CorrespondenceType correspondenceType,
DeliveryMethodType deliveryMethodType,
java.util.List skuIds,
User user)
|
void |
createOrderHistory(HistoryEventType type,
java.lang.String detail)
|
void |
decrementOutstandingSalesAuditGoodwillAmount(Money amount)
Decrease current outstanding sales audit goodwill amount by amount param |
void |
doAddOrderLine(CustomerOrderLine orderLine,
User user)
|
void |
doAddPayment(CustomerOrderPaymentImpl payment,
CustomerOrderTransactionGroup group,
boolean reapplyPromotions)
|
void |
doAddReturnLine(ReturnLine returnLine,
User user)
|
void |
fireFromRemote()
|
CustomerOrderPayment |
generateCreditPaymentForAccommodation(Refundable refundable)
|
Money |
generateRefundIfNegativeBalance()
Generates a refund payment using the refund policy with transactionItem = null, payment tranaction type = CustomerOrderPaymentTransactionType.GENERIC_REFUND, refund balance = null, and no settlement. |
Money |
generateRefundIfNegativeBalance(CustomerOrderPaymentTransactionType transactionType)
|
Money |
generateRefundIfNegativeBalance(CustomerOrderTransactionItem tranItem,
CustomerOrderPaymentTransactionType transactionType)
Generates a refund payment using the refund policy with transactionItem = tranItem param payment transaction type = transactionType param, refund balance = null, and no settlement. |
CustomerOrderRefundPaymentContainer |
generateRefundIfNegativeBalance(Money refundAmount,
CustomerOrderTransactionItem transactionItem,
CustomerOrderPaymentTransactionType transactionType)
|
java.util.Set |
generateShipmentRequestsToReleaseToWms()
Builds shipment requests based on ship to address, shipping method, carrier, and direct ship for all lines on the order that are ready to be released to the warehouse, as well as any pack lines that have any component lines that are ready to be released to the warehouse. |
java.util.List |
getAccommodations()
|
java.util.List |
getAccommodations(AccommodationTypeEnum type)
|
Money |
getAccommodationsOverMerchAmount()
|
java.util.List |
getAllAccommodationAdjustments()
|
java.util.Set |
getAllAccommodations()
|
java.util.List |
getAllAccommodations(AccommodationTypeEnum type)
|
java.util.List |
getAllAccommodations(AccommodationTypeEnum type,
AccommodationShippingSubTypeEnum shippingSubType)
|
java.util.Set |
getAllCustomerOrderPayments()
Returns ALL the payments for the customer order (in no particular order). |
java.util.List |
getAllCustomerOrderPaymentsInSettlementOrder()
Returns the payments for the customer order sorted by settlement (processing) order. |
java.util.List |
getAllGeneralAccommodationAdjustments(AccommodationTypeEnum type)
|
java.util.List |
getAllGeneralAccommodationAdjustments(AccommodationTypeEnum type,
AccommodationShippingSubTypeEnum shippingSubType)
|
java.util.Set |
getAllOfferCodes()
|
java.util.Set |
getAllPackComponentLines()
|
java.util.Collection |
getAllPromotionDiscountRollups()
Return a summary of all promotion discount totals for the order, summarized by each Promotion applied to the order. |
java.util.Set |
getAllTransactionGroupItems()
|
Money |
getBalance()
|
Money |
getBalance(boolean includeWaitingAuthorization)
|
Money |
getBalanceIncludingWaitingAuthorization()
|
Banner |
getBanner()
|
CustomerAddress |
getBillToAddress()
|
RDate |
getCancelDate()
|
OrderCancelReason |
getCancelReason()
|
ChannelType |
getChannelType()
|
RDate |
getCreateDate()
Returns the date that this order was submitted. |
User |
getCreatedByUser()
|
Customer |
getCustomer()
|
java.util.List |
getCustomerOrderPendReasons()
|
java.util.List |
getCustomerOrderPendReasons(boolean onlyActiveReasons)
|
Media |
getDefaultMedia()
|
CustomerAddress |
getDefaultShipToAddress()
|
java.lang.String |
getDisplayNumber()
|
CustomerOrderDto |
getDto()
|
java.lang.String |
getFirstUniqueProcessTogetherIndicator()
|
GiftingDetail |
getGiftingDetailForLine(CustomerOrderLine orderLine)
|
java.util.Set |
getGiftServiceLinesFromLineOrPrimary(CustomerOrderLine customerOrderLine)
|
Money |
getGrandTotal()
|
java.util.Set |
getHistoryEventRequests()
|
User |
getLastUpdatedByUser()
|
RDate |
getLastUpdateTimestamp()
|
RDate |
getLatestEstimatedDeliveryDate()
Finds the latest estimated delivery date of the order lines on the order |
java.util.List |
getLinesForWrapTogether(java.lang.String wrapTogether)
|
java.util.HashMap |
getMapOfLineWhQuantity()
|
Address |
getOrderAcceptanceAddress()
|
CustomerOrderLine |
getOrderLine(int lineNumber)
|
java.util.List |
getOrderLines()
|
java.util.List |
getOrderLinesForCorrespondence()
|
OrderPriority |
getOrderPriority()
|
OrderSource |
getOrderSource()
|
OrderType |
getOrderType()
|
Money |
getOutstandingSalesAuditGoodwillAmount()
|
RDate |
getPendCancelByDate()
|
java.util.Set |
getPLCCPayments()
|
Money |
getPreviouslyRecordedDemandAmount()
|
java.util.Collection |
getPromotionDiscounts()
Return promotion discount records applicable to the order (only those discounts that are stored at the order level). |
java.util.Set |
getQualifiedPromotions()
Obtains the set of currently qualified promotions pertinent to this order. |
java.util.List |
getRefundables()
|
ReplacementLinePair |
getReplacementLinePair(CustomerOrderLine saleLine)
|
ReplacementLinePair |
getReplacementLinePair(ReturnLine returnLine)
|
java.util.List |
getReturnableOrderLines()
|
java.util.List |
getReturnLines()
|
java.util.List |
getSellingItems()
|
ShipmentRequest |
getShipmentRequestForOrderLine(CustomerOrderLine orderLine)
|
java.util.Set |
getShipmentRequests()
|
java.util.Set |
getShipTos()
|
java.util.Set |
getShipTos(boolean filterForCancelledLines)
|
SourceCode |
getSourceCode()
|
Media |
getSourceCodeMedia()
|
Money |
getStandardShippingPromotionDiscountValue()
|
com.retek.fsm.State |
getState()
|
CustomerOrderStateModel |
getStateModel()
|
Store |
getStore()
|
java.util.Set |
getTenderTypeGroups()
|
java.util.Set |
getTenderTypes()
|
Money |
getTotalAccommodationAmount()
|
Money |
getTotalAccommodationsValue()
|
Money |
getTotalAccommodationTaxAmount()
|
Money |
getTotalAdditionalShippingCharge()
|
Money |
getTotalAuthorizedPaymentAmount()
|
Money |
getTotalExtendedPrice()
|
Money |
getTotalExtendedTax()
|
Money |
getTotalGiftServiceCharge()
|
Money |
getTotalGrossStandardShippingCharge()
Return the total gross standard shipping charge for the order. |
Money |
getTotalNetAdditionalShippingCharge()
|
Money |
getTotalNetExtendedPrice()
Return the total net extended price for the order (total sale extended price, less any return extended price, less any merchandise accommodations/adjustments). |
Money |
getTotalNetGiftServiceCharge()
Return the total net gift service charge for the order (total sale gift service charge, less any return gift service charge, less any gift service accommodations/adjustments). |
Money |
getTotalNetPersonalizationServiceCharge()
Return the total net personalization service charge for the order (total sale personalization serivce charge, less any return personalization service charge, less any personalization service accommodations/adjustments). |
Money |
getTotalNetRushShippingCharge()
|
Money |
getTotalNetShippingCharge()
Return the total net shipping charge for the order (total sale shipping charge, less any return shipping charge, less any shipping accommodations/adjustments). |
Money |
getTotalNetStandardShippingCharge()
|
Money |
getTotalOrderHeaderAccommodationAmount()
|
Money |
getTotalPayments()
|
Money |
getTotalPayments(boolean includeWaitingAuthorization)
|
Money |
getTotalPaymentsIncludingWaitingAuthorization()
|
Money |
getTotalPersonalizationServiceCharge()
|
Money |
getTotalPromotionDiscountValue()
|
Money |
getTotalReturnAccommodationAdjustmentAmount()
|
Money |
getTotalReturnExtendedPrice()
|
Money |
getTotalReturnPostageAmount()
|
Money |
getTotalReturnTaxAdjustmentAmount()
|
Money |
getTotalSaleExtendedPriceForSalesDemand()
|
Money |
getTotalServiceCharge()
|
Quantity |
getTotalShippedQuantity()
|
Money |
getTotalShippingCharge()
|
Money |
getTotalShippingTax()
|
Money |
getTotalStandardShippingCharge()
|
Money |
getTotalTax()
|
Money |
getTotalValueAddedServiceTax()
|
java.util.Set |
getTransactionGroupItems(CustomerOrderTransactionGroup transactionGroup)
|
java.util.Set |
getTransactionGroups()
|
Money |
getUnderpaymentTolerance()
|
Money |
getUnsettledAmount()
|
boolean |
hasActiveManualPendReason()
|
boolean |
hasActivePaymentUsingTenderTypes(java.util.Set tenderTypes)
|
boolean |
hasEverBeenPendedForFraudReason()
|
boolean |
hasInvalidNonCreditPaymentForSVC()
|
boolean |
hasNewlyActivatedPLCCPayment()
|
boolean |
hasNewPLCCCard()
|
boolean |
hasNewPLCCPayment()
|
boolean |
hasOrderPendReason(OrderPendReason pendReason)
|
boolean |
hasUnpersistedExchangeSaleOrderLines()
|
boolean |
hasUnpersistedSVCOrderLine()
|
void |
inactivateManualPendReasons()
|
void |
incrementOutstandingSalesAuditGoodwillAmount(Money amount)
Increase current outstanding sales audit goodwill amount by amount param |
boolean |
inState(com.retek.fsm.State state)
Return boolean indicating if a state machine business object is the specified state. |
boolean |
isCancelled()
|
boolean |
isClosed()
|
boolean |
isExchangeSaleAllowed()
|
boolean |
isMailOrder()
|
boolean |
isMailOrderPreBatch()
|
boolean |
isModified()
|
boolean |
isNewNormalOrderLineAllowed()
|
boolean |
isOpen()
|
boolean |
isPended()
|
boolean |
isPendedForFraudReason()
|
boolean |
isTaxCalculationValid()
|
void |
moveNewAddressesToDtos(User user)
|
void |
onStateChange(com.retek.fsm.State originalState,
com.retek.fsm.State newState)
|
void |
orderLineStatusChanged(CustomerOrderLineImpl orderLine,
User user,
java.lang.Boolean lightPersist)
|
void |
pend(CustomerOrderPendReason customerOrderPendReason,
User user)
Pends an order for the given customer order pend reason. |
void |
pend(MailOrderBatch mailOrderBatch,
CustomerOrderPendReason customerOrderPendReason,
User user)
Different variation on pend, used when the order is a mail order in mail-order-pre-batch state. |
void |
persistCancel(User user,
OrderCancelReason cancelReason)
|
void |
persistForSalesAuditExport(User user)
|
void |
persistPend(User user,
java.util.Collection reasons,
RDate cancelByDate,
java.lang.String origOrderSummary)
|
void |
pruneUnusedShipTos(CustomerOrderLine orderLine)
|
Dto |
readLatest()
|
void |
reapplyPromotions()
Called by order user when they would like to genericly reapply promotions |
void |
reauthorizePaymentsForDirectShipOrderLines()
For all credit card payments on the order whose amount is positive, if the line is a direct ship order line and the estimatedShipDate of the line is the same day or earlier than today.plus(authLeadTimeDays), authorize the payment. |
void |
reauthorizePaymentsForNonDirectShipOrderLines()
For all credit card payments on the order whose amount is positive, if the line is not a direct ship order line and the lines releaseDate is the same day or earlier than today.plus(authLeadTimeDays), authorize the payment. |
void |
releaseFromMailOrderBatch(User user)
Releases this order to the warehouse because it is a mail order and the batch this mail order belongs to was just released. |
void |
releaseToWmsFromStateMachineJustForStateMachine(User user)
|
void |
returnLineStatusChanged(User user)
|
void |
setBanner(Banner banner)
|
void |
setBillToAddress(CustomerAddress address)
Set the bill to address for the order. |
void |
setCreateDate(RDate date)
|
void |
setCustomer(Customer customer)
(Re)sets the customer on the order. |
void |
setCustomerForCustomerMerge(Customer customer)
(Re)sets the customer on the order. |
void |
setCustomerOrderPendReasons(java.util.List customerOrderPendReasons,
User user)
|
void |
setEventHold(CustomerOrderLine holdLine,
GenericEvent genericEvent,
User user)
|
void |
setGenericHold(java.util.Set eventLines,
GenericEvent genericEvent,
User user)
|
void |
setMedia(Media media)
|
void |
setOrderPriority(OrderPriority priority)
|
void |
setOrderSource(OrderSource orderSource)
|
void |
setOrderType(OrderType orderType)
|
void |
setPendCancelByDate(RDate pendedCancelDate)
|
void |
setPersonalHoldDate(java.util.Set orderLines,
RDate requestedDeliveryDate,
User user)
|
void |
setPreviouslyRecordedDemandAmount(Money amt)
|
void |
setProcessTogether(CustomerOrderLine line,
java.lang.String processTogether)
|
void |
setProcessTogether(java.util.Set orderLines)
Joins the set of orderLines into the same process together group. |
protected void |
setQualifiedPromotions(java.util.Set promotions)
|
void |
setSourceCode(SourceCode sourceCode)
Sets the default source code for the order |
void |
setStore(Store store)
|
void |
settle(ShippedContainer shippedContainer,
User user,
Money origOrderTotalTax)
Finalize payments for the shippedContainer, generate credit payment if there was any tax adjustment in the customers favor at ship time, and allocate settlement for all payments that are ready to be settled. |
void |
setUnsettledAmount(Money unsettledAmount)
|
void |
setWrapTogetherForLines(java.util.Set orderLines)
Joins the set of orderLines into the same wrap together group. |
void |
submit(MailOrderBatch mailOrderBatch,
User user)
Persist this order to the database, perform minimal mail order submit validation, and add this order to the set of orders for the mailOrderBatch param. |
void |
submit(User user)
Persist this order to the database and perform all order submit validation. |
void |
submit(User user,
boolean doLightValidation)
|
Customer |
submitCustomer(User user)
|
void |
submitForFirstTimeFromUI(MailOrderBatch mailOrderBatch,
User user,
java.lang.String originalOrderSummaryData)
|
void |
submitForFirstTimeFromUI(User user,
java.lang.String orginalOrderSummary)
Persist this order to the database and perform all order submit validation. |
void |
unbundleWrappedTogetherLines(java.util.Set originalOrderLines)
|
void |
virtualWarehouseReserve(User user)
|
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.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 CustomerOrderImpl(DistributedContext context, DistributedReference ref, boolean createHollow) throws SystemException
public CustomerOrderImpl(DistributedContext context, DistributedReference ref, User user, OrderType orderType) throws BusinessException, SystemException
Method Detail |
public CustomerOrderDto getDto() throws SystemException
SystemException
public java.lang.String getDisplayNumber() throws SystemException
getDisplayNumber
in interface CustomerOrder
SystemException
public Dto readLatest() throws SystemException
readLatest
in class DistributedObjectImpl
SystemException
public Media getDefaultMedia() throws SystemException
getDefaultMedia
in interface CustomerOrder
SystemException
public ChannelType getChannelType() throws SystemException, BusinessException
getChannelType
in interface CustomerOrder
SystemException
BusinessException
public void setOrderType(OrderType orderType) throws SystemException, BusinessException
setOrderType
in interface CustomerOrder
SystemException
BusinessException
public OrderType getOrderType() throws SystemException
getOrderType
in interface CustomerOrder
SystemException
public OrderPriority getOrderPriority() throws SystemException
getOrderPriority
in interface CustomerOrder
SystemException
public Customer getCustomer() throws SystemException
getCustomer
in interface CustomerOrder
SystemException
public Banner getBanner() throws SystemException
getBanner
in interface CustomerOrder
SystemException
public CustomerAddress getDefaultShipToAddress() throws SystemException, BusinessException
getDefaultShipToAddress
in interface CustomerOrder
SystemException
BusinessException
public java.util.Set getShipTos() throws SystemException
getShipTos
in interface CustomerOrder
SystemException
public java.util.Set getShipTos(boolean filterForCancelledLines) throws SystemException
getShipTos
in interface CustomerOrder
SystemException
public void pruneUnusedShipTos(CustomerOrderLine orderLine) throws SystemException
SystemException
public void assignShipToForOrderLine(CustomerOrderLine orderLine) throws SystemException, BusinessException
SystemException
BusinessException
public CustomerAddress getBillToAddress() throws SystemException, BusinessException
getBillToAddress
in interface CustomerOrder
SystemException
BusinessException
public void setBillToAddress(CustomerAddress address) throws SystemException, BusinessException
CustomerOrder
setBillToAddress
in interface CustomerOrder
SystemException
BusinessException
public void setMedia(Media media) throws SystemException
SystemException
public SourceCode getSourceCode() throws SystemException
getSourceCode
in interface CustomerOrder
SystemException
public Media getSourceCodeMedia() throws SystemException, BusinessException
getSourceCodeMedia
in interface CustomerOrder
SystemException
BusinessException
public void createBackorderNotificationHistoryEvent(CustomerOrderCorrespondenceRequest request, User user) throws SystemException, BusinessException
CustomerOrder
createBackorderNotificationHistoryEvent
in interface CustomerOrder
SystemException
BusinessException
public void createComponentReturnOnPackHistoryEvent(java.lang.String sellableItemId, User user) throws SystemException, BusinessException
CustomerOrder
createComponentReturnOnPackHistoryEvent
in interface CustomerOrder
SystemException
BusinessException
public void createCustomerCorrespondenceHistoryEvent(CorrespondenceType correspondenceType, DeliveryMethodType deliveryMethodType, java.util.List skuIds, User user) throws SystemException, BusinessException
SystemException
BusinessException
public java.util.Set getAllOfferCodes() throws SystemException
getAllOfferCodes
in interface CustomerOrder
SystemException
public java.util.List getOrderLines() throws SystemException
getOrderLines
in interface CustomerOrder
SystemException
public java.util.List getReturnableOrderLines() throws SystemException
getReturnableOrderLines
in interface CustomerOrder
SystemException
public java.util.List getOrderLinesForCorrespondence() throws SystemException
SystemException
public java.util.List getReturnLines() throws SystemException
getReturnLines
in interface CustomerOrder
SystemException
public ReplacementLinePair getReplacementLinePair(CustomerOrderLine saleLine) throws SystemException
getReplacementLinePair
in interface CustomerOrder
SystemException
public ReplacementLinePair getReplacementLinePair(ReturnLine returnLine) throws SystemException
getReplacementLinePair
in interface CustomerOrder
SystemException
public Money getGrandTotal() throws SystemException, BusinessException
getGrandTotal
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalReturnPostageAmount() throws SystemException
getTotalReturnPostageAmount
in interface CustomerOrder
SystemException
public Money getAccommodationsOverMerchAmount() throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalAccommodationAmount() throws SystemException, BusinessException
getTotalAccommodationAmount
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalOrderHeaderAccommodationAmount() throws SystemException, BusinessException
getTotalOrderHeaderAccommodationAmount
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalShippingCharge() throws SystemException, BusinessException
getTotalShippingCharge
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalGrossStandardShippingCharge() throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalStandardShippingCharge() throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalAdditionalShippingCharge() throws SystemException, BusinessException
getTotalAdditionalShippingCharge
in interface CustomerOrder
SystemException
BusinessException
public java.util.List getAccommodations(AccommodationTypeEnum type) throws SystemException
getAccommodations
in interface CustomerOrder
SystemException
public java.util.List getAllAccommodations(AccommodationTypeEnum type) throws SystemException
SystemException
public java.util.List getAllAccommodations(AccommodationTypeEnum type, AccommodationShippingSubTypeEnum shippingSubType) throws SystemException
SystemException
public java.util.List getAllGeneralAccommodationAdjustments(AccommodationTypeEnum type) throws SystemException
SystemException
public java.util.List getAllGeneralAccommodationAdjustments(AccommodationTypeEnum type, AccommodationShippingSubTypeEnum shippingSubType) throws SystemException
SystemException
public Money getTotalExtendedPrice() throws SystemException, BusinessException
getTotalExtendedPrice
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalSaleExtendedPriceForSalesDemand() throws SystemException
SystemException
public Money getTotalReturnExtendedPrice() throws SystemException
getTotalReturnExtendedPrice
in interface CustomerOrder
SystemException
public Money getTotalNetExtendedPrice() throws SystemException, BusinessException
CustomerOrder
getTotalNetExtendedPrice
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalNetShippingCharge() throws SystemException, BusinessException
CustomerOrder
getTotalNetShippingCharge
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalNetStandardShippingCharge() throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalNetAdditionalShippingCharge() throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalNetRushShippingCharge() throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalNetGiftServiceCharge() throws SystemException, BusinessException
CustomerOrder
getTotalNetGiftServiceCharge
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalNetPersonalizationServiceCharge() throws SystemException, BusinessException
CustomerOrder
getTotalNetPersonalizationServiceCharge
in interface CustomerOrder
SystemException
BusinessException
public Money getBalance() throws SystemException, BusinessException
getBalance
in interface CustomerOrder
SystemException
BusinessException
public Money getBalanceIncludingWaitingAuthorization() throws SystemException, BusinessException
getBalanceIncludingWaitingAuthorization
in interface CustomerOrder
SystemException
BusinessException
public Money getBalance(boolean includeWaitingAuthorization) throws SystemException, BusinessException
SystemException
BusinessException
public boolean isCancelled() throws SystemException
isCancelled
in interface CustomerOrder
SystemException
public boolean isPended() throws SystemException
isPended
in interface CustomerOrder
SystemException
public boolean isMailOrderPreBatch() throws SystemException
isMailOrderPreBatch
in interface CustomerOrder
SystemException
public boolean isPendedForFraudReason() throws SystemException, BusinessException
isPendedForFraudReason
in interface CustomerOrder
SystemException
BusinessException
public boolean hasEverBeenPendedForFraudReason() throws SystemException, BusinessException
hasEverBeenPendedForFraudReason
in interface CustomerOrder
SystemException
BusinessException
public boolean hasNewPLCCCard() throws SystemException, BusinessException
hasNewPLCCCard
in interface CustomerOrder
SystemException
BusinessException
public boolean hasNewPLCCPayment() throws SystemException, BusinessException
hasNewPLCCPayment
in interface CustomerOrder
SystemException
BusinessException
public boolean hasNewlyActivatedPLCCPayment() throws SystemException, BusinessException
hasNewlyActivatedPLCCPayment
in interface CustomerOrder
SystemException
BusinessException
public boolean hasUnpersistedSVCOrderLine() throws SystemException
hasUnpersistedSVCOrderLine
in interface CustomerOrder
SystemException
public boolean hasInvalidNonCreditPaymentForSVC() throws SystemException
hasInvalidNonCreditPaymentForSVC
in interface CustomerOrder
SystemException
public boolean isClosed() throws SystemException
isClosed
in interface CustomerOrder
SystemException
public boolean isOpen() throws SystemException
isOpen
in interface CustomerOrder
SystemException
public boolean isMailOrder() throws SystemException
isMailOrder
in interface CustomerOrder
SystemException
public boolean isExchangeSaleAllowed() throws SystemException
isExchangeSaleAllowed
in interface CustomerOrder
SystemException
public boolean isNewNormalOrderLineAllowed() throws SystemException, BusinessException
isNewNormalOrderLineAllowed
in interface CustomerOrder
SystemException
BusinessException
public boolean canApplyTaxAccommodation() throws SystemException
canApplyTaxAccommodation
in interface CustomerOrder
SystemException
public OrderCancelReason getCancelReason() throws SystemException
getCancelReason
in interface CustomerOrder
SystemException
public java.util.List getCustomerOrderPendReasons() throws SystemException
getCustomerOrderPendReasons
in interface CustomerOrder
SystemException
public java.util.List getCustomerOrderPendReasons(boolean onlyActiveReasons) throws SystemException
getCustomerOrderPendReasons
in interface CustomerOrder
SystemException
public void setCustomerOrderPendReasons(java.util.List customerOrderPendReasons, User user) throws SystemException, BusinessException
setCustomerOrderPendReasons
in interface CustomerOrder
SystemException
BusinessException
public boolean hasOrderPendReason(OrderPendReason pendReason) throws SystemException
hasOrderPendReason
in interface CustomerOrder
SystemException
public RDate getPendCancelByDate() throws SystemException
getPendCancelByDate
in interface CustomerOrder
SystemException
public void setPendCancelByDate(RDate pendedCancelDate) throws SystemException, BusinessException
setPendCancelByDate
in interface CustomerOrder
SystemException
BusinessException
public void setCustomer(Customer customer) throws SystemException, BusinessException
CustomerOrder
setCustomer
in interface CustomerOrder
SystemException
BusinessException
public void setCustomerForCustomerMerge(Customer customer) throws SystemException, BusinessException
CustomerOrder
setCustomerForCustomerMerge
in interface CustomerOrder
SystemException
BusinessException
public void setBanner(Banner banner) throws SystemException
setBanner
in interface CustomerOrder
SystemException
public void applyOrderLine(CustomerOrderLine orderLine, User user) throws InvalidOrderLineException, ItemNotAvailableException, OrderQtyNotReservedException, SystemException, BusinessException
CustomerOrder
applyOrderLine
in interface CustomerOrder
InvalidOrderLineException
ItemNotAvailableException
OrderQtyNotReservedException
SystemException
BusinessException
public void applyPromotionalOrderLine(CustomerOrderLine orderLine, User user, Promotion promotion) throws SystemException, BusinessException
applyPromotionalOrderLine
in interface CustomerOrder
SystemException
BusinessException
public void applyReturnLine(ReturnLine returnLine, User user) throws SystemException, BusinessException
CustomerOrder
applyReturnLine
in interface CustomerOrder
SystemException
BusinessException
public void applyReplacement(ReplacementLinePair replacementPair, User user) throws SystemException, BusinessException
CustomerOrder
applyReplacement
in interface CustomerOrder
SystemException
BusinessException
public void doAddOrderLine(CustomerOrderLine orderLine, User user) throws BusinessException, SystemException
BusinessException
SystemException
public void doAddReturnLine(ReturnLine returnLine, User user) throws BusinessException, SystemException
BusinessException
SystemException
public void assignTransactionItemToGroup(CustomerOrderTransactionItem item) throws SystemException, BusinessException
SystemException
BusinessException
public void orderLineStatusChanged(CustomerOrderLineImpl orderLine, User user, java.lang.Boolean lightPersist) throws SystemException, BusinessException
SystemException
BusinessException
public void returnLineStatusChanged(User user) throws SystemException, BusinessException
SystemException
BusinessException
public void addOfferCode(OfferCode offerCode) throws SystemException
addOfferCode
in interface CustomerOrder
SystemException
public void addPaymentForConsolidation(CustomerOrderPayment payment) throws BusinessException, SystemException
BusinessException
SystemException
public void addPayment(CustomerOrderPayment payment, CustomerOrderTransactionGroup group, boolean reapplyPromotions) throws BusinessException, SystemException
BusinessException
SystemException
public void addPayment(CustomerOrderPayment payment) throws BusinessException, SystemException
addPayment
in interface CustomerOrder
BusinessException
SystemException
public void addPayment(CustomerOrderPayment payment, boolean reapplyPromotions) throws BusinessException, SystemException
BusinessException
SystemException
public void doAddPayment(CustomerOrderPaymentImpl payment, CustomerOrderTransactionGroup group, boolean reapplyPromotions) throws SystemException, BusinessException
SystemException
BusinessException
public java.util.Set getTenderTypeGroups() throws SystemException, BusinessException
getTenderTypeGroups
in interface CustomerOrder
SystemException
BusinessException
public java.util.Set getAllCustomerOrderPayments() throws SystemException
CustomerOrder
getAllCustomerOrderPayments
in interface CustomerOrder
SystemException
public java.util.List getAllCustomerOrderPaymentsInSettlementOrder() throws SystemException, BusinessException
CustomerOrder
getAllCustomerOrderPaymentsInSettlementOrder
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalPayments() throws SystemException, BusinessException
getTotalPayments
in interface CustomerOrder
SystemException
BusinessException
public void reauthorizePaymentsForNonDirectShipOrderLines() throws SystemException, BusinessException
CustomerOrder
reauthorizePaymentsForNonDirectShipOrderLines
in interface CustomerOrder
SystemException
BusinessException
public void reauthorizePaymentsForDirectShipOrderLines() throws SystemException, BusinessException
CustomerOrder
reauthorizePaymentsForDirectShipOrderLines
in interface CustomerOrder
SystemException
BusinessException
public void authorizePayment(CustomerOrderPayment payment) throws SystemException, BusinessException
CustomerOrder
authorizePayment
in interface CustomerOrder
SystemException
BusinessException
public void authorizePaymentManually(CustomerOrderPayment payment, java.lang.String authCode, User user) throws SystemException, BusinessException
CustomerOrder
authorizePaymentManually
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalPaymentsIncludingWaitingAuthorization() throws SystemException, BusinessException
getTotalPaymentsIncludingWaitingAuthorization
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalPayments(boolean includeWaitingAuthorization) throws SystemException, BusinessException
SystemException
BusinessException
public Money getTotalAuthorizedPaymentAmount() throws SystemException, BusinessException
getTotalAuthorizedPaymentAmount
in interface CustomerOrder
SystemException
BusinessException
public void releaseFromMailOrderBatch(User user) throws SystemException, BusinessException
CustomerOrder
releaseFromMailOrderBatch
in interface CustomerOrder
SystemException
BusinessException
public void submit(User user, boolean doLightValidation) throws SystemException, InvalidCustomerException, InvalidCustomerOrderException, BusinessException
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException
public void submit(User user) throws SystemException, InvalidCustomerException, InvalidCustomerOrderException, BusinessException
CustomerOrder
submit
in interface CustomerOrder
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException
public void submitForFirstTimeFromUI(User user, java.lang.String orginalOrderSummary) throws SystemException, BusinessException
CustomerOrder
submitForFirstTimeFromUI
in interface CustomerOrder
orginalOrderSummary
- Initial order summary page information in HTML format.
SystemException
BusinessException
public void moveNewAddressesToDtos(User user) throws SystemException, BusinessException
SystemException
BusinessException
public void submit(MailOrderBatch mailOrderBatch, User user) throws SystemException, InvalidCustomerException, InvalidCustomerOrderException, BusinessException
CustomerOrder
submit
in interface CustomerOrder
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException
public void submitForFirstTimeFromUI(MailOrderBatch mailOrderBatch, User user, java.lang.String originalOrderSummaryData) throws SystemException, InvalidCustomerException, InvalidCustomerOrderException, BusinessException
submitForFirstTimeFromUI
in interface CustomerOrder
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException
public void persistForSalesAuditExport(User user) throws SystemException, BusinessException
persistForSalesAuditExport
in interface CustomerOrder
SystemException
BusinessException
public void pend(CustomerOrderPendReason customerOrderPendReason, User user) throws SystemException, BusinessException
CustomerOrder
CustomerOrderPendReason
is a
relationship object which wraps a given OrderPendReason
.
pend
in interface CustomerOrder
customerOrderPendReason
- new customer order pend reason object
SystemException
BusinessException
CustomerOrderManager#buildCustomerOrderPendReason(OrderPendReason)
public void pend(MailOrderBatch mailOrderBatch, CustomerOrderPendReason customerOrderPendReason, User user) throws SystemException, BusinessException
CustomerOrder
pend
in interface CustomerOrder
mailOrderBatch
- mail order batch that this mail order belongs to
SystemException
BusinessException
CustomerOrderManager#buildCustomerOrderPendReason(OrderPendReason)
public void cancel(OrderCancelReason cancelReason, User user) throws SystemException, InvalidCustomerException, InvalidCustomerOrderException, BusinessException
cancel
in interface CustomerOrder
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException
public Customer submitCustomer(User user) throws SystemException, InvalidCustomerException, BusinessException
SystemException
InvalidCustomerException
BusinessException
public Money getTotalExtendedTax() throws BusinessException, SystemException
getTotalExtendedTax
in interface CustomerOrder
BusinessException
SystemException
public Money getTotalShippingTax() throws BusinessException, SystemException
getTotalShippingTax
in interface CustomerOrder
BusinessException
SystemException
public Money getTotalValueAddedServiceTax() throws BusinessException, SystemException
getTotalValueAddedServiceTax
in interface CustomerOrder
BusinessException
SystemException
public Money getTotalServiceCharge() throws SystemException, BusinessException
getTotalServiceCharge
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalGiftServiceCharge() throws SystemException, BusinessException
getTotalGiftServiceCharge
in interface CustomerOrder
SystemException
BusinessException
public Money getTotalPersonalizationServiceCharge() throws SystemException, BusinessException
getTotalPersonalizationServiceCharge
in interface CustomerOrder
SystemException
BusinessException
public boolean isTaxCalculationValid() throws BusinessException, SystemException
isTaxCalculationValid
in interface CustomerOrder
BusinessException
SystemException
public boolean hasUnpersistedExchangeSaleOrderLines() throws SystemException
SystemException
public void clearTaxCalculationError() throws BusinessException, SystemException
CustomerOrder
clearTaxCalculationError
in interface CustomerOrder
BusinessException
SystemException
public Money getTotalTax() throws BusinessException, SystemException
getTotalTax
in interface CustomerOrder
BusinessException
SystemException
public RDate getCreateDate() throws SystemException
CustomerOrder
getCreateDate
in interface CustomerOrder
SystemException
public Money getPreviouslyRecordedDemandAmount() throws SystemException
getPreviouslyRecordedDemandAmount
in interface CustomerOrder
SystemException
public void setPreviouslyRecordedDemandAmount(Money amt) throws SystemException
SystemException
public void setCreateDate(RDate date) throws SystemException
SystemException
public boolean isModified() throws SystemException
SystemException
public java.util.Set getShipmentRequests() throws SystemException
getShipmentRequests
in interface CustomerOrder
SystemException
public void addJustPublishedToWmsShipmentRequest(ShipmentRequest shipmentRequest, User user) throws SystemException, BusinessException
addJustPublishedToWmsShipmentRequest
in interface CustomerOrder
SystemException
BusinessException
public void setProcessTogether(CustomerOrderLine line, java.lang.String processTogether) throws SystemException, BusinessException
SystemException
BusinessException
public void setProcessTogether(java.util.Set orderLines) throws SystemException, BusinessException
CustomerOrder
setProcessTogether
in interface CustomerOrder
SystemException
BusinessException
public GiftingDetail getGiftingDetailForLine(CustomerOrderLine orderLine) throws SystemException, BusinessException
getGiftingDetailForLine
in interface CustomerOrder
SystemException
BusinessException
public void unbundleWrappedTogetherLines(java.util.Set originalOrderLines) throws SystemException, BusinessException
SystemException
BusinessException
public java.util.Set getGiftServiceLinesFromLineOrPrimary(CustomerOrderLine customerOrderLine) throws SystemException
getGiftServiceLinesFromLineOrPrimary
in interface CustomerOrder
SystemException
public void applyGiftingDetailToLines(java.util.Set orderLines, GiftingDetail giftingDetail) throws SystemException, BusinessException
applyGiftingDetailToLines
in interface CustomerOrder
SystemException
BusinessException
public void setWrapTogetherForLines(java.util.Set orderLines) throws SystemException, BusinessException
CustomerOrder
setWrapTogetherForLines
in interface CustomerOrder
SystemException
BusinessException
public void cleanUpDanglingWrapTogetherGroups() throws SystemException
SystemException
public java.util.List getLinesForWrapTogether(java.lang.String wrapTogether) throws SystemException
getLinesForWrapTogether
in interface CustomerOrder
SystemException
public java.lang.String getFirstUniqueProcessTogetherIndicator() throws SystemException, BusinessException
SystemException
BusinessException
public void setPersonalHoldDate(java.util.Set orderLines, RDate requestedDeliveryDate, User user) throws SystemException, BusinessException
setPersonalHoldDate
in interface CustomerOrder
SystemException
BusinessException
public void setEventHold(CustomerOrderLine holdLine, GenericEvent genericEvent, User user) throws SystemException, BusinessException
SystemException
BusinessException
public void setGenericHold(java.util.Set eventLines, GenericEvent genericEvent, User user) throws SystemException, BusinessException
setGenericHold
in interface CustomerOrder
SystemException
BusinessException
public void createAndPublishDirectShipOrder(User user, RDate maxReleaseDate) throws SystemException, BusinessException
createAndPublishDirectShipOrder
in interface CustomerOrder
SystemException
BusinessException
public void settle(ShippedContainer shippedContainer, User user, Money origOrderTotalTax) throws SystemException, BusinessException
CustomerOrder
settle
in interface CustomerOrder
SystemException
BusinessException
public void releaseToWmsFromStateMachineJustForStateMachine(User user) throws SystemException, BusinessException
SystemException
BusinessException
public void accept(com.retek.fsm.Event event) throws SystemException, BusinessException
accept
in interface RcomRmmFsmable
SystemException
BusinessException
public com.retek.fsm.State getState()
getState
in interface CustomerOrder
public boolean inState(com.retek.fsm.State state) throws SystemException
RcomRmmFsmable
inState
in interface RcomRmmFsmable
state
- expected state
SystemException
public CustomerOrderStateModel getStateModel()
public void clearPendAttributes() throws SystemException
SystemException
public void clearSpecialHandlingForLines(java.util.Set orderLines, User user) throws SystemException, BusinessException
clearSpecialHandlingForLines
in interface CustomerOrder
SystemException
BusinessException
public java.util.Set generateShipmentRequestsToReleaseToWms() throws SystemException, BusinessException
CustomerOrder
generateShipmentRequestsToReleaseToWms
in interface CustomerOrder
SystemException
BusinessException
public java.util.Set getAllPackComponentLines() throws SystemException
getAllPackComponentLines
in interface CustomerOrder
SystemException
public void persistPend(User user, java.util.Collection reasons, RDate cancelByDate, java.lang.String origOrderSummary) throws SystemException, BusinessException, java.rmi.RemoteException
SystemException
BusinessException
java.rmi.RemoteException
public void persistCancel(User user, OrderCancelReason cancelReason) throws SystemException, java.rmi.RemoteException, BusinessException
SystemException
java.rmi.RemoteException
BusinessException
public void setOrderPriority(OrderPriority priority) throws SystemException
setOrderPriority
in interface CustomerOrder
SystemException
public RDate getLastUpdateTimestamp() throws SystemException
getLastUpdateTimestamp
in interface CustomerOrder
SystemException
public User getLastUpdatedByUser() throws SystemException
getLastUpdatedByUser
in interface CustomerOrder
SystemException
public java.util.Set getHistoryEventRequests() throws SystemException
SystemException
public void addHistoryEventRequest(HistoryEventRequest eventRequest) throws SystemException
CustomerOrder
addHistoryEventRequest
in interface CustomerOrder
eventRequest
- history event request to add to the order
SystemException
public void clearHistoryEventRequests() throws SystemException
SystemException
public void addAccommodationAndGeneratePayment(Accommodation accommodation, Refundable refundable) throws SystemException, BusinessException
CustomerOrder
addAccommodationAndGeneratePayment
in interface CustomerOrder
SystemException
BusinessException
public void addTransactionGroup(CustomerOrderTransactionGroup transactionGroup) throws SystemException
addTransactionGroup
in interface CustomerOrder
SystemException
public java.util.Set getTransactionGroupItems(CustomerOrderTransactionGroup transactionGroup) throws SystemException
getTransactionGroupItems
in interface CustomerOrder
SystemException
public java.util.Set getAllTransactionGroupItems() throws SystemException
getAllTransactionGroupItems
in interface CustomerOrder
SystemException
public java.util.Set getTransactionGroups() throws SystemException
getTransactionGroups
in interface CustomerOrder
SystemException
public CustomerOrderPayment generateCreditPaymentForAccommodation(Refundable refundable) throws SystemException, BusinessException
SystemException
BusinessException
public void createOrderHistory(HistoryEventType type, java.lang.String detail) throws SystemException, BusinessException
SystemException
BusinessException
public java.util.List getAccommodations() throws SystemException
getAccommodations
in interface CustomerOrder
SystemException
public java.util.Set getAllAccommodations() throws SystemException
getAllAccommodations
in interface CustomerOrder
SystemException
public java.util.List getAllAccommodationAdjustments() throws SystemException
SystemException
public java.util.Set getTenderTypes() throws SystemException, BusinessException
getTenderTypes
in interface CustomerOrder
SystemException
BusinessException
public User getCreatedByUser() throws SystemException, BusinessException
getCreatedByUser
in interface CustomerOrder
SystemException
BusinessException
public void adjustCreditPaymentsForReturn(Money amount, ReturnLine returnLine) throws SystemException, BusinessException
SystemException
BusinessException
public java.util.List getRefundables() throws SystemException, BusinessException
getRefundables
in interface CustomerOrder
SystemException
BusinessException
public void fireFromRemote() throws SystemException, BusinessException
fireFromRemote
in interface RcomRmmFsmable
SystemException
BusinessException
public RDate getCancelDate() throws SystemException
getCancelDate
in interface CustomerOrder
SystemException
public void inactivateManualPendReasons() throws SystemException, BusinessException
SystemException
BusinessException
public boolean hasActiveManualPendReason() throws SystemException, BusinessException
hasActiveManualPendReason
in interface CustomerOrder
SystemException
BusinessException
public ShipmentRequest getShipmentRequestForOrderLine(CustomerOrderLine orderLine) throws SystemException
SystemException
public void consolidatePreSettledPayments() throws SystemException, BusinessException
CustomerOrder
consolidatePreSettledPayments
in interface CustomerOrder
SystemException
BusinessException
public OrderSource getOrderSource() throws SystemException
getOrderSource
in interface CustomerOrder
SystemException
public void setOrderSource(OrderSource orderSource) throws SystemException
SystemException
public void setSourceCode(SourceCode sourceCode) throws SystemException, BusinessException
CustomerOrder
setSourceCode
in interface CustomerOrder
SystemException
BusinessException
public void applyPromotions(User user, RDate createDate) throws SystemException, BusinessException
SystemException
BusinessException
public void applyPromotions(User user, RDate createDate, OrderCancelReason reason) throws SystemException, BusinessException
SystemException
BusinessException
public Money getStandardShippingPromotionDiscountValue() throws SystemException
getStandardShippingPromotionDiscountValue
in interface CustomerOrder
SystemException
public Money getTotalPromotionDiscountValue() throws SystemException
getTotalPromotionDiscountValue
in interface CustomerOrder
SystemException
public Money getTotalAccommodationTaxAmount() throws SystemException
getTotalAccommodationTaxAmount
in interface CustomerOrder
SystemException
public Money getTotalReturnAccommodationAdjustmentAmount() throws SystemException
SystemException
public Money getTotalReturnTaxAdjustmentAmount() throws SystemException
getTotalReturnTaxAdjustmentAmount
in interface CustomerOrder
SystemException
public Money getUnderpaymentTolerance() throws SystemException, BusinessException
SystemException
BusinessException
public java.util.Collection getAllPromotionDiscountRollups() throws SystemException
CustomerOrder
Promotion
applied to the order. The roll-up summary
objects contain a total discount amount for any discounts on the order (for all
discounts at any level, ie. at the order level, order line, and service line levels).
This summary can be used to report a breakdown of order level promotion totals by
promotion.
Note1: This summary should be used for display purposes only. Financial computations
should be based off of the lower level api.
Note2: These totals are a rolled up summary of discount records and thus do not account
for any return promotion adjustments.
getAllPromotionDiscountRollups
in interface CustomerOrder
SystemException
CustomerOrderPromotionDiscountRollup
public java.util.Collection getPromotionDiscounts() throws SystemException
CustomerOrder
getPromotionDiscounts
in interface CustomerOrder
SystemException
public void addPromotionDiscount(CustomerOrderPromotionDiscountImpl discount) throws SystemException
PromotionDiscountable
addPromotionDiscount
in interface PromotionDiscountable
discount
- customer order promotion discount
SystemException
public Money getOutstandingSalesAuditGoodwillAmount() throws SystemException
getOutstandingSalesAuditGoodwillAmount
in interface CustomerOrder
SystemException
public void decrementOutstandingSalesAuditGoodwillAmount(Money amount) throws SystemException
CustomerOrder
decrementOutstandingSalesAuditGoodwillAmount
in interface CustomerOrder
SystemException
public void incrementOutstandingSalesAuditGoodwillAmount(Money amount) throws SystemException
CustomerOrder
incrementOutstandingSalesAuditGoodwillAmount
in interface CustomerOrder
SystemException
public CustomerOrderPayment adjustPaymentsForSalesAuditGoodwill() throws SystemException, BusinessException
SystemException
BusinessException
public void clearPromotionDiscounts() throws SystemException
PromotionDiscountable
clearPromotionDiscounts
in interface PromotionDiscountable
SystemException
public Money generateRefundIfNegativeBalance() throws SystemException, BusinessException
CustomerOrder
generateRefundIfNegativeBalance
in interface CustomerOrder
SystemException
BusinessException
CustomerOrderGeneralRefundPolicyCommand
public Money generateRefundIfNegativeBalance(CustomerOrderTransactionItem tranItem, CustomerOrderPaymentTransactionType transactionType) throws SystemException, BusinessException
CustomerOrder
generateRefundIfNegativeBalance
in interface CustomerOrder
SystemException
BusinessException
CustomerOrderGeneralRefundPolicyCommand
public Money generateRefundIfNegativeBalance(CustomerOrderPaymentTransactionType transactionType) throws SystemException, BusinessException
SystemException
BusinessException
public CustomerOrderRefundPaymentContainer generateRefundIfNegativeBalance(Money refundAmount, CustomerOrderTransactionItem transactionItem, CustomerOrderPaymentTransactionType transactionType) throws SystemException, BusinessException
SystemException
BusinessException
public Quantity getTotalShippedQuantity() throws SystemException
getTotalShippedQuantity
in interface CustomerOrder
SystemException
public java.util.List getSellingItems() throws SystemException
getSellingItems
in interface CustomerOrder
SystemException
public RDate getLatestEstimatedDeliveryDate() throws SystemException
CustomerOrder
getLatestEstimatedDeliveryDate
in interface CustomerOrder
SystemException
public java.util.Set getPLCCPayments() throws SystemException
SystemException
protected void setQualifiedPromotions(java.util.Set promotions) throws SystemException
SystemException
public java.util.Set getQualifiedPromotions() throws SystemException
CustomerOrder
getQualifiedPromotions
in interface CustomerOrder
SystemException
public void applyPromotionalPaymentPlanCode(PaymentPlanCode selectedPaymentPlanCode, Promotion promotion) throws SystemException, BusinessException
applyPromotionalPaymentPlanCode
in interface CustomerOrder
promotion
- This is the promotion containing the tender type of the payment for
which the parameter selectedPaymentPlanCode should be set.selectedPaymentPlanCode
- This is the user selected payment plan code that should be set on the the
payment matching tenderType found on parameter promotion.
BusinessException
SystemException
public boolean hasActivePaymentUsingTenderTypes(java.util.Set tenderTypes) throws SystemException
SystemException
public void reapplyPromotions() throws SystemException, BusinessException
CustomerOrder
reapplyPromotions
in interface CustomerOrder
SystemException
BusinessException
public void onStateChange(com.retek.fsm.State originalState, com.retek.fsm.State newState)
onStateChange
in interface com.retek.fsm.FSMAble
public Money getTotalAccommodationsValue() throws SystemException
SystemException
public CustomerOrderLine getOrderLine(int lineNumber) throws SystemException
getOrderLine
in interface CustomerOrder
SystemException
public void virtualWarehouseReserve(User user) throws SystemException, BusinessException
virtualWarehouseReserve
in interface CustomerOrder
SystemException
BusinessException
public java.util.HashMap getMapOfLineWhQuantity()
public Store getStore() throws SystemException
getStore
in interface CustomerOrder
SystemException
public void setStore(Store store) throws SystemException, BusinessException
setStore
in interface CustomerOrder
SystemException
BusinessException
public Address getOrderAcceptanceAddress() throws SystemException, BusinessException
getOrderAcceptanceAddress
in interface CustomerOrder
SystemException
BusinessException
public void addCallTag(User user, CallTag callTag) throws SystemException, BusinessException
addCallTag
in interface CustomerOrder
SystemException
BusinessException
public void setUnsettledAmount(Money unsettledAmount) throws SystemException
SystemException
public Money getUnsettledAmount() throws SystemException
SystemException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |