com.retek.component.customerorder.impl
Class CustomerOrderImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.CustomerOrderImpl
All Implemented Interfaces:
BusinessObject, CustomerOrder, DistributedObject, com.retek.fsm.FSMAble, PromotionDiscountable, RcomRmmFsmable

public class CustomerOrderImpl
extends DistributedObjectImpl
implements CustomerOrder, RcomRmmFsmable, PromotionDiscountable


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

CustomerOrderImpl

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

CustomerOrderImpl

public CustomerOrderImpl(DistributedContext context,
                         DistributedReference ref,
                         User user,
                         OrderType orderType)
                  throws BusinessException,
                         SystemException
Method Detail

getDto

public CustomerOrderDto getDto()
                        throws SystemException
Throws:
SystemException

getDisplayNumber

public java.lang.String getDisplayNumber()
                                  throws SystemException
Specified by:
getDisplayNumber in interface CustomerOrder
Throws:
SystemException

readLatest

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

getDefaultMedia

public Media getDefaultMedia()
                      throws SystemException
Specified by:
getDefaultMedia in interface CustomerOrder
Throws:
SystemException

getChannelType

public ChannelType getChannelType()
                           throws SystemException,
                                  BusinessException
Specified by:
getChannelType in interface CustomerOrder
Throws:
SystemException
BusinessException

setOrderType

public void setOrderType(OrderType orderType)
                  throws SystemException,
                         BusinessException
Specified by:
setOrderType in interface CustomerOrder
Throws:
SystemException
BusinessException

getOrderType

public OrderType getOrderType()
                       throws SystemException
Specified by:
getOrderType in interface CustomerOrder
Throws:
SystemException

getOrderPriority

public OrderPriority getOrderPriority()
                               throws SystemException
Specified by:
getOrderPriority in interface CustomerOrder
Throws:
SystemException

getCustomer

public Customer getCustomer()
                     throws SystemException
Specified by:
getCustomer in interface CustomerOrder
Throws:
SystemException

getBanner

public Banner getBanner()
                 throws SystemException
Specified by:
getBanner in interface CustomerOrder
Throws:
SystemException

getDefaultShipToAddress

public CustomerAddress getDefaultShipToAddress()
                                        throws SystemException,
                                               BusinessException
Specified by:
getDefaultShipToAddress in interface CustomerOrder
Throws:
SystemException
BusinessException

getShipTos

public java.util.Set getShipTos()
                         throws SystemException
Specified by:
getShipTos in interface CustomerOrder
Throws:
SystemException

getShipTos

public java.util.Set getShipTos(boolean filterForCancelledLines)
                         throws SystemException
Specified by:
getShipTos in interface CustomerOrder
Throws:
SystemException

pruneUnusedShipTos

public void pruneUnusedShipTos(CustomerOrderLine orderLine)
                        throws SystemException
Throws:
SystemException

assignShipToForOrderLine

public void assignShipToForOrderLine(CustomerOrderLine orderLine)
                              throws SystemException,
                                     BusinessException
Throws:
SystemException
BusinessException

getBillToAddress

public CustomerAddress getBillToAddress()
                                 throws SystemException,
                                        BusinessException
Specified by:
getBillToAddress in interface CustomerOrder
Throws:
SystemException
BusinessException

setBillToAddress

public void setBillToAddress(CustomerAddress address)
                      throws SystemException,
                             BusinessException
Description copied from interface: CustomerOrder
Set the bill to address for the order.

Specified by:
setBillToAddress in interface CustomerOrder
Throws:
SystemException
BusinessException

setMedia

public void setMedia(Media media)
              throws SystemException
Throws:
SystemException

getSourceCode

public SourceCode getSourceCode()
                         throws SystemException
Specified by:
getSourceCode in interface CustomerOrder
Throws:
SystemException

getSourceCodeMedia

public Media getSourceCodeMedia()
                         throws SystemException,
                                BusinessException
Specified by:
getSourceCodeMedia in interface CustomerOrder
Throws:
SystemException
BusinessException

createBackorderNotificationHistoryEvent

public void createBackorderNotificationHistoryEvent(CustomerOrderCorrespondenceRequest request,
                                                    User user)
                                             throws SystemException,
                                                    BusinessException
Description copied from interface: CustomerOrder
Adds a new unsaved history event to the order with type = HistoryEventType.BO_NOTIFICATION.

Specified by:
createBackorderNotificationHistoryEvent in interface CustomerOrder
Throws:
SystemException
BusinessException

createComponentReturnOnPackHistoryEvent

public void createComponentReturnOnPackHistoryEvent(java.lang.String sellableItemId,
                                                    User user)
                                             throws SystemException,
                                                    BusinessException
Description copied from interface: CustomerOrder
Adds a new unsaved history event to the order with type = HistoryEventType.COMPONENT_RETURN_ON_PACK

Specified by:
createComponentReturnOnPackHistoryEvent in interface CustomerOrder
Throws:
SystemException
BusinessException

createCustomerCorrespondenceHistoryEvent

public void createCustomerCorrespondenceHistoryEvent(CorrespondenceType correspondenceType,
                                                     DeliveryMethodType deliveryMethodType,
                                                     java.util.List skuIds,
                                                     User user)
                                              throws SystemException,
                                                     BusinessException
Throws:
SystemException
BusinessException

getAllOfferCodes

public java.util.Set getAllOfferCodes()
                               throws SystemException
Specified by:
getAllOfferCodes in interface CustomerOrder
Throws:
SystemException

getOrderLines

public java.util.List getOrderLines()
                             throws SystemException
Specified by:
getOrderLines in interface CustomerOrder
Throws:
SystemException

getReturnableOrderLines

public java.util.List getReturnableOrderLines()
                                       throws SystemException
Specified by:
getReturnableOrderLines in interface CustomerOrder
Throws:
SystemException

getOrderLinesForCorrespondence

public java.util.List getOrderLinesForCorrespondence()
                                              throws SystemException
Throws:
SystemException

getReturnLines

public java.util.List getReturnLines()
                              throws SystemException
Specified by:
getReturnLines in interface CustomerOrder
Throws:
SystemException

getReplacementLinePair

public ReplacementLinePair getReplacementLinePair(CustomerOrderLine saleLine)
                                           throws SystemException
Specified by:
getReplacementLinePair in interface CustomerOrder
Throws:
SystemException

getReplacementLinePair

public ReplacementLinePair getReplacementLinePair(ReturnLine returnLine)
                                           throws SystemException
Specified by:
getReplacementLinePair in interface CustomerOrder
Throws:
SystemException

getGrandTotal

public Money getGrandTotal()
                    throws SystemException,
                           BusinessException
Specified by:
getGrandTotal in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalReturnPostageAmount

public Money getTotalReturnPostageAmount()
                                  throws SystemException
Specified by:
getTotalReturnPostageAmount in interface CustomerOrder
Throws:
SystemException

getAccommodationsOverMerchAmount

public Money getAccommodationsOverMerchAmount()
                                       throws SystemException,
                                              BusinessException
Throws:
SystemException
BusinessException

getTotalAccommodationAmount

public Money getTotalAccommodationAmount()
                                  throws SystemException,
                                         BusinessException
Specified by:
getTotalAccommodationAmount in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalOrderHeaderAccommodationAmount

public Money getTotalOrderHeaderAccommodationAmount()
                                             throws SystemException,
                                                    BusinessException
Specified by:
getTotalOrderHeaderAccommodationAmount in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalShippingCharge

public Money getTotalShippingCharge()
                             throws SystemException,
                                    BusinessException
Specified by:
getTotalShippingCharge in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalGrossStandardShippingCharge

public Money getTotalGrossStandardShippingCharge()
                                          throws SystemException,
                                                 BusinessException
Return the total gross standard shipping charge for the order. This is the sum of all standard shipping charges for all ship-to's (not subtracting accommodations or returns).

Returns:
Money total gross standard shipping
Throws:
SystemException
BusinessException

getTotalStandardShippingCharge

public Money getTotalStandardShippingCharge()
                                     throws SystemException,
                                            BusinessException
Throws:
SystemException
BusinessException

getTotalAdditionalShippingCharge

public Money getTotalAdditionalShippingCharge()
                                       throws SystemException,
                                              BusinessException
Specified by:
getTotalAdditionalShippingCharge in interface CustomerOrder
Throws:
SystemException
BusinessException

getAccommodations

public java.util.List getAccommodations(AccommodationTypeEnum type)
                                 throws SystemException
Specified by:
getAccommodations in interface CustomerOrder
Throws:
SystemException

getAllAccommodations

public java.util.List getAllAccommodations(AccommodationTypeEnum type)
                                    throws SystemException
Throws:
SystemException

getAllAccommodations

public java.util.List getAllAccommodations(AccommodationTypeEnum type,
                                           AccommodationShippingSubTypeEnum shippingSubType)
                                    throws SystemException
Throws:
SystemException

getAllGeneralAccommodationAdjustments

public java.util.List getAllGeneralAccommodationAdjustments(AccommodationTypeEnum type)
                                                     throws SystemException
Throws:
SystemException

getAllGeneralAccommodationAdjustments

public java.util.List getAllGeneralAccommodationAdjustments(AccommodationTypeEnum type,
                                                            AccommodationShippingSubTypeEnum shippingSubType)
                                                     throws SystemException
Throws:
SystemException

getTotalExtendedPrice

public Money getTotalExtendedPrice()
                            throws SystemException,
                                   BusinessException
Specified by:
getTotalExtendedPrice in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalSaleExtendedPriceForSalesDemand

public Money getTotalSaleExtendedPriceForSalesDemand()
                                              throws SystemException
Throws:
SystemException

getTotalReturnExtendedPrice

public Money getTotalReturnExtendedPrice()
                                  throws SystemException
Specified by:
getTotalReturnExtendedPrice in interface CustomerOrder
Throws:
SystemException

getTotalNetExtendedPrice

public Money getTotalNetExtendedPrice()
                               throws SystemException,
                                      BusinessException
Description copied from interface: CustomerOrder
Return the total net extended price for the order (total sale extended price, less any return extended price, less any merchandise accommodations/adjustments).

Specified by:
getTotalNetExtendedPrice in interface CustomerOrder
Returns:
Money total net extended price
Throws:
SystemException
BusinessException

getTotalNetShippingCharge

public Money getTotalNetShippingCharge()
                                throws SystemException,
                                       BusinessException
Description copied from interface: CustomerOrder
Return the total net shipping charge for the order (total sale shipping charge, less any return shipping charge, less any shipping accommodations/adjustments).

Specified by:
getTotalNetShippingCharge in interface CustomerOrder
Returns:
Money total net shipping charge
Throws:
SystemException
BusinessException

getTotalNetStandardShippingCharge

public Money getTotalNetStandardShippingCharge()
                                        throws SystemException,
                                               BusinessException
Throws:
SystemException
BusinessException

getTotalNetAdditionalShippingCharge

public Money getTotalNetAdditionalShippingCharge()
                                          throws SystemException,
                                                 BusinessException
Throws:
SystemException
BusinessException

getTotalNetRushShippingCharge

public Money getTotalNetRushShippingCharge()
                                    throws SystemException,
                                           BusinessException
Throws:
SystemException
BusinessException

getTotalNetGiftServiceCharge

public Money getTotalNetGiftServiceCharge()
                                   throws SystemException,
                                          BusinessException
Description copied from interface: CustomerOrder
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).

Specified by:
getTotalNetGiftServiceCharge in interface CustomerOrder
Returns:
Money total net gift service charge
Throws:
SystemException
BusinessException

getTotalNetPersonalizationServiceCharge

public Money getTotalNetPersonalizationServiceCharge()
                                              throws SystemException,
                                                     BusinessException
Description copied from interface: CustomerOrder
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).

Specified by:
getTotalNetPersonalizationServiceCharge in interface CustomerOrder
Returns:
Money total net personalization service charge
Throws:
SystemException
BusinessException

getBalance

public Money getBalance()
                 throws SystemException,
                        BusinessException
Specified by:
getBalance in interface CustomerOrder
Throws:
SystemException
BusinessException

getBalanceIncludingWaitingAuthorization

public Money getBalanceIncludingWaitingAuthorization()
                                              throws SystemException,
                                                     BusinessException
Specified by:
getBalanceIncludingWaitingAuthorization in interface CustomerOrder
Throws:
SystemException
BusinessException

getBalance

public Money getBalance(boolean includeWaitingAuthorization)
                 throws SystemException,
                        BusinessException
Throws:
SystemException
BusinessException

isCancelled

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

isPended

public boolean isPended()
                 throws SystemException
Specified by:
isPended in interface CustomerOrder
Throws:
SystemException

isMailOrderPreBatch

public boolean isMailOrderPreBatch()
                            throws SystemException
Specified by:
isMailOrderPreBatch in interface CustomerOrder
Throws:
SystemException

isPendedForFraudReason

public boolean isPendedForFraudReason()
                               throws SystemException,
                                      BusinessException
Specified by:
isPendedForFraudReason in interface CustomerOrder
Throws:
SystemException
BusinessException

hasEverBeenPendedForFraudReason

public boolean hasEverBeenPendedForFraudReason()
                                        throws SystemException,
                                               BusinessException
Specified by:
hasEverBeenPendedForFraudReason in interface CustomerOrder
Throws:
SystemException
BusinessException

hasNewPLCCCard

public boolean hasNewPLCCCard()
                       throws SystemException,
                              BusinessException
Specified by:
hasNewPLCCCard in interface CustomerOrder
Throws:
SystemException
BusinessException

hasNewPLCCPayment

public boolean hasNewPLCCPayment()
                          throws SystemException,
                                 BusinessException
Specified by:
hasNewPLCCPayment in interface CustomerOrder
Throws:
SystemException
BusinessException

hasNewlyActivatedPLCCPayment

public boolean hasNewlyActivatedPLCCPayment()
                                     throws SystemException,
                                            BusinessException
Specified by:
hasNewlyActivatedPLCCPayment in interface CustomerOrder
Throws:
SystemException
BusinessException

hasUnpersistedSVCOrderLine

public boolean hasUnpersistedSVCOrderLine()
                                   throws SystemException
Specified by:
hasUnpersistedSVCOrderLine in interface CustomerOrder
Throws:
SystemException

hasInvalidNonCreditPaymentForSVC

public boolean hasInvalidNonCreditPaymentForSVC()
                                         throws SystemException
Specified by:
hasInvalidNonCreditPaymentForSVC in interface CustomerOrder
Throws:
SystemException

isClosed

public boolean isClosed()
                 throws SystemException
Specified by:
isClosed in interface CustomerOrder
Throws:
SystemException

isOpen

public boolean isOpen()
               throws SystemException
Specified by:
isOpen in interface CustomerOrder
Throws:
SystemException

isMailOrder

public boolean isMailOrder()
                    throws SystemException
Specified by:
isMailOrder in interface CustomerOrder
Throws:
SystemException

isExchangeSaleAllowed

public boolean isExchangeSaleAllowed()
                              throws SystemException
Specified by:
isExchangeSaleAllowed in interface CustomerOrder
Throws:
SystemException

isNewNormalOrderLineAllowed

public boolean isNewNormalOrderLineAllowed()
                                    throws SystemException,
                                           BusinessException
Specified by:
isNewNormalOrderLineAllowed in interface CustomerOrder
Throws:
SystemException
BusinessException

canApplyTaxAccommodation

public boolean canApplyTaxAccommodation()
                                 throws SystemException
Specified by:
canApplyTaxAccommodation in interface CustomerOrder
Throws:
SystemException

getCancelReason

public OrderCancelReason getCancelReason()
                                  throws SystemException
Specified by:
getCancelReason in interface CustomerOrder
Throws:
SystemException

getCustomerOrderPendReasons

public java.util.List getCustomerOrderPendReasons()
                                           throws SystemException
Specified by:
getCustomerOrderPendReasons in interface CustomerOrder
Throws:
SystemException

getCustomerOrderPendReasons

public java.util.List getCustomerOrderPendReasons(boolean onlyActiveReasons)
                                           throws SystemException
Specified by:
getCustomerOrderPendReasons in interface CustomerOrder
Throws:
SystemException

setCustomerOrderPendReasons

public void setCustomerOrderPendReasons(java.util.List customerOrderPendReasons,
                                        User user)
                                 throws SystemException,
                                        BusinessException
Specified by:
setCustomerOrderPendReasons in interface CustomerOrder
Throws:
SystemException
BusinessException

hasOrderPendReason

public boolean hasOrderPendReason(OrderPendReason pendReason)
                           throws SystemException
Specified by:
hasOrderPendReason in interface CustomerOrder
Throws:
SystemException

getPendCancelByDate

public RDate getPendCancelByDate()
                          throws SystemException
Specified by:
getPendCancelByDate in interface CustomerOrder
Throws:
SystemException

setPendCancelByDate

public void setPendCancelByDate(RDate pendedCancelDate)
                         throws SystemException,
                                BusinessException
Specified by:
setPendCancelByDate in interface CustomerOrder
Throws:
SystemException
BusinessException

setCustomer

public void setCustomer(Customer customer)
                 throws SystemException,
                        BusinessException
Description copied from interface: CustomerOrder
(Re)sets the customer on the order. Any previously held customer-related order attributes (i.e. dayPhone, evePhone, email, billToAddress, shipToAddress) are reset to the new customer's default values.

Specified by:
setCustomer in interface CustomerOrder
Throws:
SystemException
BusinessException

setCustomerForCustomerMerge

public void setCustomerForCustomerMerge(Customer customer)
                                 throws SystemException,
                                        BusinessException
Description copied from interface: CustomerOrder
(Re)sets the customer on the order. DOES NOT reset any previously held customer-related order attributes. All other customer attributes should have already been moved to this order as a new customer.

Specified by:
setCustomerForCustomerMerge in interface CustomerOrder
Throws:
SystemException
BusinessException

setBanner

public void setBanner(Banner banner)
               throws SystemException
Specified by:
setBanner in interface CustomerOrder
Throws:
SystemException

applyOrderLine

public void applyOrderLine(CustomerOrderLine orderLine,
                           User user)
                    throws InvalidOrderLineException,
                           ItemNotAvailableException,
                           OrderQtyNotReservedException,
                           SystemException,
                           BusinessException
Description copied from interface: CustomerOrder
Adds orderLine to the set of order lines for this order, reserves this order line, and applies promotions.

Specified by:
applyOrderLine in interface CustomerOrder
Throws:
InvalidOrderLineException
ItemNotAvailableException
OrderQtyNotReservedException
SystemException
BusinessException

applyPromotionalOrderLine

public void applyPromotionalOrderLine(CustomerOrderLine orderLine,
                                      User user,
                                      Promotion promotion)
                               throws SystemException,
                                      BusinessException
Specified by:
applyPromotionalOrderLine in interface CustomerOrder
Throws:
SystemException
BusinessException

applyReturnLine

public void applyReturnLine(ReturnLine returnLine,
                            User user)
                     throws SystemException,
                            BusinessException
Description copied from interface: CustomerOrder
Adds returnLine to the order, clears calculated totals on the return line's shipTo.

Specified by:
applyReturnLine in interface CustomerOrder
Throws:
SystemException
BusinessException

applyReplacement

public void applyReplacement(ReplacementLinePair replacementPair,
                             User user)
                      throws SystemException,
                             BusinessException
Description copied from interface: CustomerOrder
Adds replacementLine from replacementGroup to the order and reserves the replacement line

Specified by:
applyReplacement in interface CustomerOrder
Throws:
SystemException
BusinessException

doAddOrderLine

public void doAddOrderLine(CustomerOrderLine orderLine,
                           User user)
                    throws BusinessException,
                           SystemException
Throws:
BusinessException
SystemException

doAddReturnLine

public void doAddReturnLine(ReturnLine returnLine,
                            User user)
                     throws BusinessException,
                            SystemException
Throws:
BusinessException
SystemException

assignTransactionItemToGroup

public void assignTransactionItemToGroup(CustomerOrderTransactionItem item)
                                  throws SystemException,
                                         BusinessException
Throws:
SystemException
BusinessException

orderLineStatusChanged

public void orderLineStatusChanged(CustomerOrderLineImpl orderLine,
                                   User user,
                                   java.lang.Boolean lightPersist)
                            throws SystemException,
                                   BusinessException
Throws:
SystemException
BusinessException

returnLineStatusChanged

public void returnLineStatusChanged(User user)
                             throws SystemException,
                                    BusinessException
Throws:
SystemException
BusinessException

addOfferCode

public void addOfferCode(OfferCode offerCode)
                  throws SystemException
Specified by:
addOfferCode in interface CustomerOrder
Throws:
SystemException

addPaymentForConsolidation

public void addPaymentForConsolidation(CustomerOrderPayment payment)
                                throws BusinessException,
                                       SystemException
Throws:
BusinessException
SystemException

addPayment

public void addPayment(CustomerOrderPayment payment,
                       CustomerOrderTransactionGroup group,
                       boolean reapplyPromotions)
                throws BusinessException,
                       SystemException
Throws:
BusinessException
SystemException

addPayment

public void addPayment(CustomerOrderPayment payment)
                throws BusinessException,
                       SystemException
Specified by:
addPayment in interface CustomerOrder
Throws:
BusinessException
SystemException

addPayment

public void addPayment(CustomerOrderPayment payment,
                       boolean reapplyPromotions)
                throws BusinessException,
                       SystemException
Throws:
BusinessException
SystemException

doAddPayment

public void doAddPayment(CustomerOrderPaymentImpl payment,
                         CustomerOrderTransactionGroup group,
                         boolean reapplyPromotions)
                  throws SystemException,
                         BusinessException
Throws:
SystemException
BusinessException

getTenderTypeGroups

public java.util.Set getTenderTypeGroups()
                                  throws SystemException,
                                         BusinessException
Specified by:
getTenderTypeGroups in interface CustomerOrder
Throws:
SystemException
BusinessException

getAllCustomerOrderPayments

public java.util.Set getAllCustomerOrderPayments()
                                          throws SystemException
Description copied from interface: CustomerOrder
Returns ALL the payments for the customer order (in no particular order).

Specified by:
getAllCustomerOrderPayments in interface CustomerOrder
Returns:
Set all customer order payments
Throws:
SystemException

getAllCustomerOrderPaymentsInSettlementOrder

public java.util.List getAllCustomerOrderPaymentsInSettlementOrder()
                                                            throws SystemException,
                                                                   BusinessException
Description copied from interface: CustomerOrder
Returns the payments for the customer order sorted by settlement (processing) order.

Specified by:
getAllCustomerOrderPaymentsInSettlementOrder in interface CustomerOrder
Returns:
List all customer order payments in settlement order
Throws:
SystemException
BusinessException

getTotalPayments

public Money getTotalPayments()
                       throws SystemException,
                              BusinessException
Specified by:
getTotalPayments in interface CustomerOrder
Throws:
SystemException
BusinessException

reauthorizePaymentsForNonDirectShipOrderLines

public void reauthorizePaymentsForNonDirectShipOrderLines()
                                                   throws SystemException,
                                                          BusinessException
Description copied from interface: CustomerOrder
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.

Specified by:
reauthorizePaymentsForNonDirectShipOrderLines in interface CustomerOrder
Throws:
SystemException
BusinessException

reauthorizePaymentsForDirectShipOrderLines

public void reauthorizePaymentsForDirectShipOrderLines()
                                                throws SystemException,
                                                       BusinessException
Description copied from interface: CustomerOrder
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.

Specified by:
reauthorizePaymentsForDirectShipOrderLines in interface CustomerOrder
Throws:
SystemException
BusinessException

authorizePayment

public void authorizePayment(CustomerOrderPayment payment)
                      throws SystemException,
                             BusinessException
Description copied from interface: CustomerOrder
Using an authorization calculation strategy, calculates the amount to be authorized for this payment. After the amount to authorize is computed 1.If the amount to authorize is $0 then if the payment had NOT already been authorized for $1 authorize the payment for $1. Otherwise, don't auth the payment and return. 2. If the amount to authorize is not $0 then subtract out the previously authorized amount and then do the $0 check

Specified by:
authorizePayment in interface CustomerOrder
Throws:
SystemException
BusinessException

authorizePaymentManually

public void authorizePaymentManually(CustomerOrderPayment payment,
                                     java.lang.String authCode,
                                     User user)
                              throws SystemException,
                                     BusinessException
Description copied from interface: CustomerOrder
For payments needing manual authorization, manually authorize the payment by storing the authorization code and authorization date.

Specified by:
authorizePaymentManually in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalPaymentsIncludingWaitingAuthorization

public Money getTotalPaymentsIncludingWaitingAuthorization()
                                                    throws SystemException,
                                                           BusinessException
Specified by:
getTotalPaymentsIncludingWaitingAuthorization in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalPayments

public Money getTotalPayments(boolean includeWaitingAuthorization)
                       throws SystemException,
                              BusinessException
Throws:
SystemException
BusinessException

getTotalAuthorizedPaymentAmount

public Money getTotalAuthorizedPaymentAmount()
                                      throws SystemException,
                                             BusinessException
Specified by:
getTotalAuthorizedPaymentAmount in interface CustomerOrder
Throws:
SystemException
BusinessException

releaseFromMailOrderBatch

public void releaseFromMailOrderBatch(User user)
                               throws SystemException,
                                      BusinessException
Description copied from interface: CustomerOrder
Releases this order to the warehouse because it is a mail order and the batch this mail order belongs to was just released.

Specified by:
releaseFromMailOrderBatch in interface CustomerOrder
Throws:
SystemException
BusinessException

submit

public void submit(User user,
                   boolean doLightValidation)
            throws SystemException,
                   InvalidCustomerException,
                   InvalidCustomerOrderException,
                   BusinessException
Throws:
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException

submit

public void submit(User user)
            throws SystemException,
                   InvalidCustomerException,
                   InvalidCustomerOrderException,
                   BusinessException
Description copied from interface: CustomerOrder
Persist this order to the database and perform all order submit validation.

Specified by:
submit in interface CustomerOrder
Throws:
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException

submitForFirstTimeFromUI

public void submitForFirstTimeFromUI(User user,
                                     java.lang.String orginalOrderSummary)
                              throws SystemException,
                                     BusinessException
Description copied from interface: CustomerOrder
Persist this order to the database and perform all order submit validation. This is called only from the UI and only once. i.e. when the order gets submitted for the first time.

Specified by:
submitForFirstTimeFromUI in interface CustomerOrder
Parameters:
orginalOrderSummary - Initial order summary page information in HTML format.
Throws:
SystemException
BusinessException

moveNewAddressesToDtos

public void moveNewAddressesToDtos(User user)
                            throws SystemException,
                                   BusinessException
Throws:
SystemException
BusinessException

submit

public void submit(MailOrderBatch mailOrderBatch,
                   User user)
            throws SystemException,
                   InvalidCustomerException,
                   InvalidCustomerOrderException,
                   BusinessException
Description copied from interface: CustomerOrder
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.

Specified by:
submit in interface CustomerOrder
Throws:
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException

submitForFirstTimeFromUI

public void submitForFirstTimeFromUI(MailOrderBatch mailOrderBatch,
                                     User user,
                                     java.lang.String originalOrderSummaryData)
                              throws SystemException,
                                     InvalidCustomerException,
                                     InvalidCustomerOrderException,
                                     BusinessException
Specified by:
submitForFirstTimeFromUI in interface CustomerOrder
Throws:
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException

persistForSalesAuditExport

public void persistForSalesAuditExport(User user)
                                throws SystemException,
                                       BusinessException
Specified by:
persistForSalesAuditExport in interface CustomerOrder
Throws:
SystemException
BusinessException

pend

public void pend(CustomerOrderPendReason customerOrderPendReason,
                 User user)
          throws SystemException,
                 BusinessException
Description copied from interface: CustomerOrder
Pends an order for the given customer order pend reason. A CustomerOrderPendReason is a relationship object which wraps a given OrderPendReason.

Specified by:
pend in interface CustomerOrder
Parameters:
customerOrderPendReason - new customer order pend reason object
Throws:
SystemException
BusinessException
See Also:
CustomerOrderManager#buildCustomerOrderPendReason(OrderPendReason)

pend

public void pend(MailOrderBatch mailOrderBatch,
                 CustomerOrderPendReason customerOrderPendReason,
                 User user)
          throws SystemException,
                 BusinessException
Description copied from interface: CustomerOrder
Different variation on pend, used when the order is a mail order in mail-order-pre-batch state. Persists the order with the batch, sets the pend reason onto the order, but does not send the mail order to the pend state, instead stays in mailOrderPreBatch state

Specified by:
pend in interface CustomerOrder
Parameters:
mailOrderBatch - mail order batch that this mail order belongs to
Throws:
SystemException
BusinessException
See Also:
CustomerOrderManager#buildCustomerOrderPendReason(OrderPendReason)

cancel

public void cancel(OrderCancelReason cancelReason,
                   User user)
            throws SystemException,
                   InvalidCustomerException,
                   InvalidCustomerOrderException,
                   BusinessException
Specified by:
cancel in interface CustomerOrder
Throws:
SystemException
InvalidCustomerException
InvalidCustomerOrderException
BusinessException

submitCustomer

public Customer submitCustomer(User user)
                        throws SystemException,
                               InvalidCustomerException,
                               BusinessException
Throws:
SystemException
InvalidCustomerException
BusinessException

getTotalExtendedTax

public Money getTotalExtendedTax()
                          throws BusinessException,
                                 SystemException
Specified by:
getTotalExtendedTax in interface CustomerOrder
Throws:
BusinessException
SystemException

getTotalShippingTax

public Money getTotalShippingTax()
                          throws BusinessException,
                                 SystemException
Specified by:
getTotalShippingTax in interface CustomerOrder
Throws:
BusinessException
SystemException

getTotalValueAddedServiceTax

public Money getTotalValueAddedServiceTax()
                                   throws BusinessException,
                                          SystemException
Specified by:
getTotalValueAddedServiceTax in interface CustomerOrder
Throws:
BusinessException
SystemException

getTotalServiceCharge

public Money getTotalServiceCharge()
                            throws SystemException,
                                   BusinessException
Specified by:
getTotalServiceCharge in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalGiftServiceCharge

public Money getTotalGiftServiceCharge()
                                throws SystemException,
                                       BusinessException
Specified by:
getTotalGiftServiceCharge in interface CustomerOrder
Throws:
SystemException
BusinessException

getTotalPersonalizationServiceCharge

public Money getTotalPersonalizationServiceCharge()
                                           throws SystemException,
                                                  BusinessException
Specified by:
getTotalPersonalizationServiceCharge in interface CustomerOrder
Throws:
SystemException
BusinessException

isTaxCalculationValid

public boolean isTaxCalculationValid()
                              throws BusinessException,
                                     SystemException
Specified by:
isTaxCalculationValid in interface CustomerOrder
Throws:
BusinessException
SystemException

hasUnpersistedExchangeSaleOrderLines

public boolean hasUnpersistedExchangeSaleOrderLines()
                                             throws SystemException
Throws:
SystemException

clearTaxCalculationError

public void clearTaxCalculationError()
                              throws BusinessException,
                                     SystemException
Description copied from interface: CustomerOrder
Clears tax calculation errors on all shipTos and all returnLines for this order

Specified by:
clearTaxCalculationError in interface CustomerOrder
Throws:
BusinessException
SystemException

getTotalTax

public Money getTotalTax()
                  throws BusinessException,
                         SystemException
Specified by:
getTotalTax in interface CustomerOrder
Throws:
BusinessException
SystemException

getCreateDate

public RDate getCreateDate()
                    throws SystemException
Description copied from interface: CustomerOrder
Returns the date that this order was submitted.

Specified by:
getCreateDate in interface CustomerOrder
Returns:
RDate createDate
Throws:
SystemException

getPreviouslyRecordedDemandAmount

public Money getPreviouslyRecordedDemandAmount()
                                        throws SystemException
Specified by:
getPreviouslyRecordedDemandAmount in interface CustomerOrder
Throws:
SystemException

setPreviouslyRecordedDemandAmount

public void setPreviouslyRecordedDemandAmount(Money amt)
                                       throws SystemException
Throws:
SystemException

setCreateDate

public void setCreateDate(RDate date)
                   throws SystemException
Throws:
SystemException

isModified

public boolean isModified()
                   throws SystemException
Throws:
SystemException

getShipmentRequests

public java.util.Set getShipmentRequests()
                                  throws SystemException
Specified by:
getShipmentRequests in interface CustomerOrder
Throws:
SystemException

addJustPublishedToWmsShipmentRequest

public void addJustPublishedToWmsShipmentRequest(ShipmentRequest shipmentRequest,
                                                 User user)
                                          throws SystemException,
                                                 BusinessException
Specified by:
addJustPublishedToWmsShipmentRequest in interface CustomerOrder
Throws:
SystemException
BusinessException

setProcessTogether

public void setProcessTogether(CustomerOrderLine line,
                               java.lang.String processTogether)
                        throws SystemException,
                               BusinessException
Throws:
SystemException
BusinessException

setProcessTogether

public void setProcessTogether(java.util.Set orderLines)
                        throws SystemException,
                               BusinessException
Description copied from interface: CustomerOrder
Joins the set of orderLines into the same process together group.

Specified by:
setProcessTogether in interface CustomerOrder
Throws:
SystemException
BusinessException

getGiftingDetailForLine

public GiftingDetail getGiftingDetailForLine(CustomerOrderLine orderLine)
                                      throws SystemException,
                                             BusinessException
Specified by:
getGiftingDetailForLine in interface CustomerOrder
Throws:
SystemException
BusinessException

unbundleWrappedTogetherLines

public void unbundleWrappedTogetherLines(java.util.Set originalOrderLines)
                                  throws SystemException,
                                         BusinessException
Throws:
SystemException
BusinessException

getGiftServiceLinesFromLineOrPrimary

public java.util.Set getGiftServiceLinesFromLineOrPrimary(CustomerOrderLine customerOrderLine)
                                                   throws SystemException
Specified by:
getGiftServiceLinesFromLineOrPrimary in interface CustomerOrder
Throws:
SystemException

applyGiftingDetailToLines

public void applyGiftingDetailToLines(java.util.Set orderLines,
                                      GiftingDetail giftingDetail)
                               throws SystemException,
                                      BusinessException
Specified by:
applyGiftingDetailToLines in interface CustomerOrder
Throws:
SystemException
BusinessException

setWrapTogetherForLines

public void setWrapTogetherForLines(java.util.Set orderLines)
                             throws SystemException,
                                    BusinessException
Description copied from interface: CustomerOrder
Joins the set of orderLines into the same wrap together group.

Specified by:
setWrapTogetherForLines in interface CustomerOrder
Throws:
SystemException
BusinessException

cleanUpDanglingWrapTogetherGroups

public void cleanUpDanglingWrapTogetherGroups()
                                       throws SystemException
Throws:
SystemException

getLinesForWrapTogether

public java.util.List getLinesForWrapTogether(java.lang.String wrapTogether)
                                       throws SystemException
Specified by:
getLinesForWrapTogether in interface CustomerOrder
Throws:
SystemException

getFirstUniqueProcessTogetherIndicator

public java.lang.String getFirstUniqueProcessTogetherIndicator()
                                                        throws SystemException,
                                                               BusinessException
Throws:
SystemException
BusinessException

setPersonalHoldDate

public void setPersonalHoldDate(java.util.Set orderLines,
                                RDate requestedDeliveryDate,
                                User user)
                         throws SystemException,
                                BusinessException
Specified by:
setPersonalHoldDate in interface CustomerOrder
Throws:
SystemException
BusinessException

setEventHold

public void setEventHold(CustomerOrderLine holdLine,
                         GenericEvent genericEvent,
                         User user)
                  throws SystemException,
                         BusinessException
Throws:
SystemException
BusinessException

setGenericHold

public void setGenericHold(java.util.Set eventLines,
                           GenericEvent genericEvent,
                           User user)
                    throws SystemException,
                           BusinessException
Specified by:
setGenericHold in interface CustomerOrder
Throws:
SystemException
BusinessException

createAndPublishDirectShipOrder

public void createAndPublishDirectShipOrder(User user,
                                            RDate maxReleaseDate)
                                     throws SystemException,
                                            BusinessException
Specified by:
createAndPublishDirectShipOrder in interface CustomerOrder
Throws:
SystemException
BusinessException

settle

public void settle(ShippedContainer shippedContainer,
                   User user,
                   Money origOrderTotalTax)
            throws SystemException,
                   BusinessException
Description copied from interface: CustomerOrder
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.

Specified by:
settle in interface CustomerOrder
Throws:
SystemException
BusinessException

releaseToWmsFromStateMachineJustForStateMachine

public void releaseToWmsFromStateMachineJustForStateMachine(User user)
                                                     throws SystemException,
                                                            BusinessException
Throws:
SystemException
BusinessException

accept

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

getState

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

inState

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

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

getStateModel

public CustomerOrderStateModel getStateModel()

clearPendAttributes

public void clearPendAttributes()
                         throws SystemException
This method is for internal use only in the state machine to clean up the pend attributes.

Throws:
SystemException

clearSpecialHandlingForLines

public void clearSpecialHandlingForLines(java.util.Set orderLines,
                                         User user)
                                  throws SystemException,
                                         BusinessException
Specified by:
clearSpecialHandlingForLines in interface CustomerOrder
Throws:
SystemException
BusinessException

generateShipmentRequestsToReleaseToWms

public java.util.Set generateShipmentRequestsToReleaseToWms()
                                                     throws SystemException,
                                                            BusinessException
Description copied from interface: CustomerOrder
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.

Specified by:
generateShipmentRequestsToReleaseToWms in interface CustomerOrder
Throws:
SystemException
BusinessException

getAllPackComponentLines

public java.util.Set getAllPackComponentLines()
                                       throws SystemException
Specified by:
getAllPackComponentLines in interface CustomerOrder
Throws:
SystemException

persistPend

public void persistPend(User user,
                        java.util.Collection reasons,
                        RDate cancelByDate,
                        java.lang.String origOrderSummary)
                 throws SystemException,
                        BusinessException,
                        java.rmi.RemoteException
Throws:
SystemException
BusinessException
java.rmi.RemoteException

persistCancel

public void persistCancel(User user,
                          OrderCancelReason cancelReason)
                   throws SystemException,
                          java.rmi.RemoteException,
                          BusinessException
Throws:
SystemException
java.rmi.RemoteException
BusinessException

setOrderPriority

public void setOrderPriority(OrderPriority priority)
                      throws SystemException
Specified by:
setOrderPriority in interface CustomerOrder
Throws:
SystemException

getLastUpdateTimestamp

public RDate getLastUpdateTimestamp()
                             throws SystemException
Specified by:
getLastUpdateTimestamp in interface CustomerOrder
Throws:
SystemException

getLastUpdatedByUser

public User getLastUpdatedByUser()
                          throws SystemException
Specified by:
getLastUpdatedByUser in interface CustomerOrder
Throws:
SystemException

getHistoryEventRequests

public java.util.Set getHistoryEventRequests()
                                      throws SystemException
Throws:
SystemException

addHistoryEventRequest

public void addHistoryEventRequest(HistoryEventRequest eventRequest)
                            throws SystemException
Description copied from interface: CustomerOrder
Create a new history event request and add to the collection of requests so later history events can be created when order is submitted.

Specified by:
addHistoryEventRequest in interface CustomerOrder
Parameters:
eventRequest - history event request to add to the order
Throws:
SystemException

clearHistoryEventRequests

public void clearHistoryEventRequests()
                               throws SystemException
Throws:
SystemException

addAccommodationAndGeneratePayment

public void addAccommodationAndGeneratePayment(Accommodation accommodation,
                                               Refundable refundable)
                                        throws SystemException,
                                               BusinessException
Description copied from interface: CustomerOrder
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. If generating the credit payment caused an exception, the accommodation is removed from the order.

Specified by:
addAccommodationAndGeneratePayment in interface CustomerOrder
Throws:
SystemException
BusinessException

addTransactionGroup

public void addTransactionGroup(CustomerOrderTransactionGroup transactionGroup)
                         throws SystemException
Specified by:
addTransactionGroup in interface CustomerOrder
Throws:
SystemException

getTransactionGroupItems

public java.util.Set getTransactionGroupItems(CustomerOrderTransactionGroup transactionGroup)
                                       throws SystemException
Specified by:
getTransactionGroupItems in interface CustomerOrder
Throws:
SystemException

getAllTransactionGroupItems

public java.util.Set getAllTransactionGroupItems()
                                          throws SystemException
Specified by:
getAllTransactionGroupItems in interface CustomerOrder
Throws:
SystemException

getTransactionGroups

public java.util.Set getTransactionGroups()
                                   throws SystemException
Specified by:
getTransactionGroups in interface CustomerOrder
Throws:
SystemException

generateCreditPaymentForAccommodation

public CustomerOrderPayment generateCreditPaymentForAccommodation(Refundable refundable)
                                                           throws SystemException,
                                                                  BusinessException
Throws:
SystemException
BusinessException

createOrderHistory

public void createOrderHistory(HistoryEventType type,
                               java.lang.String detail)
                        throws SystemException,
                               BusinessException
Throws:
SystemException
BusinessException

getAccommodations

public java.util.List getAccommodations()
                                 throws SystemException
Specified by:
getAccommodations in interface CustomerOrder
Throws:
SystemException

getAllAccommodations

public java.util.Set getAllAccommodations()
                                   throws SystemException
Specified by:
getAllAccommodations in interface CustomerOrder
Throws:
SystemException

getAllAccommodationAdjustments

public java.util.List getAllAccommodationAdjustments()
                                              throws SystemException
Throws:
SystemException

getTenderTypes

public java.util.Set getTenderTypes()
                             throws SystemException,
                                    BusinessException
Specified by:
getTenderTypes in interface CustomerOrder
Throws:
SystemException
BusinessException

getCreatedByUser

public User getCreatedByUser()
                      throws SystemException,
                             BusinessException
Specified by:
getCreatedByUser in interface CustomerOrder
Throws:
SystemException
BusinessException

adjustCreditPaymentsForReturn

public void adjustCreditPaymentsForReturn(Money amount,
                                          ReturnLine returnLine)
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException

getRefundables

public java.util.List getRefundables()
                              throws SystemException,
                                     BusinessException
Specified by:
getRefundables in interface CustomerOrder
Throws:
SystemException
BusinessException

fireFromRemote

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

getCancelDate

public RDate getCancelDate()
                    throws SystemException
Specified by:
getCancelDate in interface CustomerOrder
Throws:
SystemException

inactivateManualPendReasons

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

hasActiveManualPendReason

public boolean hasActiveManualPendReason()
                                  throws SystemException,
                                         BusinessException
Specified by:
hasActiveManualPendReason in interface CustomerOrder
Throws:
SystemException
BusinessException

getShipmentRequestForOrderLine

public ShipmentRequest getShipmentRequestForOrderLine(CustomerOrderLine orderLine)
                                               throws SystemException
Throws:
SystemException

consolidatePreSettledPayments

public void consolidatePreSettledPayments()
                                   throws SystemException,
                                          BusinessException
Description copied from interface: CustomerOrder
Combines payments at settlement time according to payment account number, payment tender type, and whether the payment amount is positive or negative.

Specified by:
consolidatePreSettledPayments in interface CustomerOrder
Throws:
SystemException
BusinessException

getOrderSource

public OrderSource getOrderSource()
                           throws SystemException
Specified by:
getOrderSource in interface CustomerOrder
Throws:
SystemException

setOrderSource

public void setOrderSource(OrderSource orderSource)
                    throws SystemException
Throws:
SystemException

setSourceCode

public void setSourceCode(SourceCode sourceCode)
                   throws SystemException,
                          BusinessException
Description copied from interface: CustomerOrder
Sets the default source code for the order

Specified by:
setSourceCode in interface CustomerOrder
Throws:
SystemException
BusinessException

applyPromotions

public void applyPromotions(User user,
                            RDate createDate)
                     throws SystemException,
                            BusinessException
Throws:
SystemException
BusinessException

applyPromotions

public void applyPromotions(User user,
                            RDate createDate,
                            OrderCancelReason reason)
                     throws SystemException,
                            BusinessException
Throws:
SystemException
BusinessException

getStandardShippingPromotionDiscountValue

public Money getStandardShippingPromotionDiscountValue()
                                                throws SystemException
Specified by:
getStandardShippingPromotionDiscountValue in interface CustomerOrder
Throws:
SystemException

getTotalPromotionDiscountValue

public Money getTotalPromotionDiscountValue()
                                     throws SystemException
Specified by:
getTotalPromotionDiscountValue in interface CustomerOrder
Throws:
SystemException

getTotalAccommodationTaxAmount

public Money getTotalAccommodationTaxAmount()
                                     throws SystemException
Specified by:
getTotalAccommodationTaxAmount in interface CustomerOrder
Throws:
SystemException

getTotalReturnAccommodationAdjustmentAmount

public Money getTotalReturnAccommodationAdjustmentAmount()
                                                  throws SystemException
Throws:
SystemException

getTotalReturnTaxAdjustmentAmount

public Money getTotalReturnTaxAdjustmentAmount()
                                        throws SystemException
Specified by:
getTotalReturnTaxAdjustmentAmount in interface CustomerOrder
Throws:
SystemException

getUnderpaymentTolerance

public Money getUnderpaymentTolerance()
                               throws SystemException,
                                      BusinessException
Throws:
SystemException
BusinessException

getAllPromotionDiscountRollups

public java.util.Collection getAllPromotionDiscountRollups()
                                                    throws SystemException
Description copied from interface: CustomerOrder
Return a summary of all promotion discount totals for the order, summarized by each 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.

Specified by:
getAllPromotionDiscountRollups in interface CustomerOrder
Returns:
Collection CustomerOrderPromotionDiscountRollup summary objects
Throws:
SystemException
See Also:
CustomerOrderPromotionDiscountRollup

getPromotionDiscounts

public java.util.Collection getPromotionDiscounts()
                                           throws SystemException
Description copied from interface: CustomerOrder
Return promotion discount records applicable to the order (only those discounts that are stored at the order level).

Specified by:
getPromotionDiscounts in interface CustomerOrder
Returns:
Collection order-level promotion discounts
Throws:
SystemException

addPromotionDiscount

public void addPromotionDiscount(CustomerOrderPromotionDiscountImpl discount)
                          throws SystemException
Description copied from interface: PromotionDiscountable
Add a promotion discount to the business object.

Specified by:
addPromotionDiscount in interface PromotionDiscountable
Parameters:
discount - customer order promotion discount
Throws:
SystemException

getOutstandingSalesAuditGoodwillAmount

public Money getOutstandingSalesAuditGoodwillAmount()
                                             throws SystemException
Specified by:
getOutstandingSalesAuditGoodwillAmount in interface CustomerOrder
Throws:
SystemException

decrementOutstandingSalesAuditGoodwillAmount

public void decrementOutstandingSalesAuditGoodwillAmount(Money amount)
                                                  throws SystemException
Description copied from interface: CustomerOrder
Decrease current outstanding sales audit goodwill amount by amount param

Specified by:
decrementOutstandingSalesAuditGoodwillAmount in interface CustomerOrder
Throws:
SystemException

incrementOutstandingSalesAuditGoodwillAmount

public void incrementOutstandingSalesAuditGoodwillAmount(Money amount)
                                                  throws SystemException
Description copied from interface: CustomerOrder
Increase current outstanding sales audit goodwill amount by amount param

Specified by:
incrementOutstandingSalesAuditGoodwillAmount in interface CustomerOrder
Throws:
SystemException

adjustPaymentsForSalesAuditGoodwill

public CustomerOrderPayment adjustPaymentsForSalesAuditGoodwill()
                                                         throws SystemException,
                                                                BusinessException
Throws:
SystemException
BusinessException

clearPromotionDiscounts

public void clearPromotionDiscounts()
                             throws SystemException
Description copied from interface: PromotionDiscountable
Clear all non-locked promotion discounts on the business object.

Specified by:
clearPromotionDiscounts in interface PromotionDiscountable
Throws:
SystemException

generateRefundIfNegativeBalance

public Money generateRefundIfNegativeBalance()
                                      throws SystemException,
                                             BusinessException
Description copied from interface: CustomerOrder
Generates a refund payment using the refund policy with transactionItem = null, payment tranaction type = CustomerOrderPaymentTransactionType.GENERIC_REFUND, refund balance = null, and no settlement.

Specified by:
generateRefundIfNegativeBalance in interface CustomerOrder
Returns:
Money value of refund generated
Throws:
SystemException
BusinessException
See Also:
CustomerOrderGeneralRefundPolicyCommand

generateRefundIfNegativeBalance

public Money generateRefundIfNegativeBalance(CustomerOrderTransactionItem tranItem,
                                             CustomerOrderPaymentTransactionType transactionType)
                                      throws SystemException,
                                             BusinessException
Description copied from interface: CustomerOrder
Generates a refund payment using the refund policy with transactionItem = tranItem param payment transaction type = transactionType param, refund balance = null, and no settlement.

Specified by:
generateRefundIfNegativeBalance in interface CustomerOrder
Returns:
Money value of refund generated
Throws:
SystemException
BusinessException
See Also:
CustomerOrderGeneralRefundPolicyCommand

generateRefundIfNegativeBalance

public Money generateRefundIfNegativeBalance(CustomerOrderPaymentTransactionType transactionType)
                                      throws SystemException,
                                             BusinessException
Throws:
SystemException
BusinessException

generateRefundIfNegativeBalance

public CustomerOrderRefundPaymentContainer generateRefundIfNegativeBalance(Money refundAmount,
                                                                           CustomerOrderTransactionItem transactionItem,
                                                                           CustomerOrderPaymentTransactionType transactionType)
                                                                    throws SystemException,
                                                                           BusinessException
Throws:
SystemException
BusinessException

getTotalShippedQuantity

public Quantity getTotalShippedQuantity()
                                 throws SystemException
Specified by:
getTotalShippedQuantity in interface CustomerOrder
Throws:
SystemException

getSellingItems

public java.util.List getSellingItems()
                               throws SystemException
Specified by:
getSellingItems in interface CustomerOrder
Throws:
SystemException

getLatestEstimatedDeliveryDate

public RDate getLatestEstimatedDeliveryDate()
                                     throws SystemException
Description copied from interface: CustomerOrder
Finds the latest estimated delivery date of the order lines on the order

Specified by:
getLatestEstimatedDeliveryDate in interface CustomerOrder
Returns:
RDate Latest date
Throws:
SystemException

getPLCCPayments

public java.util.Set getPLCCPayments()
                              throws SystemException
Throws:
SystemException

setQualifiedPromotions

protected void setQualifiedPromotions(java.util.Set promotions)
                               throws SystemException
Throws:
SystemException

getQualifiedPromotions

public java.util.Set getQualifiedPromotions()
                                     throws SystemException
Description copied from interface: CustomerOrder
Obtains the set of currently qualified promotions pertinent to this order. "Qualified" promotions are those that are: (1) visible via the prevailing trigger(s), and (2) have passed one or more thresholds but have not yet been either automatically or manually (via the UI) "accepted".

Specified by:
getQualifiedPromotions in interface CustomerOrder
Throws:
SystemException

applyPromotionalPaymentPlanCode

public void applyPromotionalPaymentPlanCode(PaymentPlanCode selectedPaymentPlanCode,
                                            Promotion promotion)
                                     throws SystemException,
                                            BusinessException
Specified by:
applyPromotionalPaymentPlanCode in interface CustomerOrder
Parameters:
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.
Throws:
BusinessException
SystemException

hasActivePaymentUsingTenderTypes

public boolean hasActivePaymentUsingTenderTypes(java.util.Set tenderTypes)
                                         throws SystemException
Throws:
SystemException

reapplyPromotions

public void reapplyPromotions()
                       throws SystemException,
                              BusinessException
Description copied from interface: CustomerOrder
Called by order user when they would like to genericly reapply promotions

Specified by:
reapplyPromotions in interface CustomerOrder
Throws:
SystemException
BusinessException

onStateChange

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

getTotalAccommodationsValue

public Money getTotalAccommodationsValue()
                                  throws SystemException
Throws:
SystemException

getOrderLine

public CustomerOrderLine getOrderLine(int lineNumber)
                               throws SystemException
Specified by:
getOrderLine in interface CustomerOrder
Throws:
SystemException

virtualWarehouseReserve

public void virtualWarehouseReserve(User user)
                             throws SystemException,
                                    BusinessException
Specified by:
virtualWarehouseReserve in interface CustomerOrder
Throws:
SystemException
BusinessException

getMapOfLineWhQuantity

public java.util.HashMap getMapOfLineWhQuantity()

getStore

public Store getStore()
               throws SystemException
Specified by:
getStore in interface CustomerOrder
Throws:
SystemException

setStore

public void setStore(Store store)
              throws SystemException,
                     BusinessException
Specified by:
setStore in interface CustomerOrder
Throws:
SystemException
BusinessException

getOrderAcceptanceAddress

public Address getOrderAcceptanceAddress()
                                  throws SystemException,
                                         BusinessException
Specified by:
getOrderAcceptanceAddress in interface CustomerOrder
Returns:
Address This is the address that should be used in tax calculation for order acceptance.
Throws:
SystemException
BusinessException

addCallTag

public void addCallTag(User user,
                       CallTag callTag)
                throws SystemException,
                       BusinessException
Specified by:
addCallTag in interface CustomerOrder
Throws:
SystemException
BusinessException

setUnsettledAmount

public void setUnsettledAmount(Money unsettledAmount)
                        throws SystemException
Throws:
SystemException

getUnsettledAmount

public Money getUnsettledAmount()
                         throws SystemException
Throws:
SystemException


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