com.ibm.commerce.order.beans

Class OrderItemDataBean

    • Constructor Detail

      • OrderItemDataBean

        public OrderItemDataBean()
        The default constructor.
      • OrderItemDataBean

        public OrderItemDataBean(OrderItemAccessBean aabOrderItem,
                                 CommandContext aCommandContext)
        Constructs an OrderItemDataBean from an OrderItemAccessBean by extracting the OrderItem Entity reference from the OrderItemAccessBean and setting the command context
        Parameters:
        aabOrderItem - OrderItemAccessBean
        aCommandContext - CommandContext
        Throws:
        java.lang.Exception
      • OrderItemDataBean

        public OrderItemDataBean(OrderItemAccessBean aabOrderItem)
        Constructs an OrderItemDataBean from an OrderItemAccessBean by extracting the OrderItem Entity reference from the OrderItemAccessBean.
        Parameters:
        aabOrderItem - OrderItemAccessBean
        Throws:
        java.lang.Exception
    • Method Detail

      • getApplicableContractId

        public java.lang.Long getApplicableContractId()
        This method returns the contract price in FormattedMonetaryAmountDataBean.
        Specified by:
        getApplicableContractId in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        Long
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getApplicableContractPrice

        public FormattedMonetaryAmountDataBean getApplicableContractPrice()
                                                                   throws ECSystemException
        This method returns the contract price in FormattedMonetaryAmountDataBean.
        Specified by:
        getApplicableContractPrice in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getCatalogEntryDataBean

        public CatalogEntryDataBean getCatalogEntryDataBean()
        This method returns CatalogEntryDataBean.
        Returns:
        CatalogEntryDataBean
      • getFormattedShippingCharge

        public FormattedMonetaryAmountDataBean getFormattedShippingCharge()
                                                                   throws ECSystemException
        This method returns the base shipping charge of the orderitem in FormattedMonetaryAmountDataBean. the base shipping charge is the original shipping charge without any adjustments.
        Specified by:
        getFormattedShippingCharge in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getFormattedTotalShippingAdjustment

        public FormattedMonetaryAmountDataBean getFormattedTotalShippingAdjustment()
                                                                            throws ECSystemException
        This method returns the total shipping adjustment of the orderitem in FormattedMonetaryAmountDataBean. The total shipping adjustment is the summation of all the shipping charge adjustment of the orderitem. such as CSR given shipping adjustment, shipping promotion, TSR driven shipping adjustment, and contract defined shipping adjustment.
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getShippingAdjustmentTotal

        public java.math.BigDecimal getShippingAdjustmentTotal()
        This method returns the shipping adjustment total of this OrderItem, with CalculationUsage -7 (that is shipping adjustment). the total shipping adjustment is the summary of all the shipping charge adjustment of the orderitem. such as CSR given shipping adjustment, shipping promotion, TSR driven shipping adjustment, and contract defined shipping adjustment. Equivalent to This method returnsTotalAdjustmentByCalculationUsageId(new Integer(-7)).
        Returns:
        the shipping adjustment total, or null if an error has occurred.
      • getFormattedTotalShippingCharge

        public FormattedMonetaryAmountDataBean getFormattedTotalShippingCharge()
                                                                        throws ECSystemException
        This method returns the total shipping charge of the orderitem in FormattedMonetaryAmountDataBean. the total shipping charge is the sum of the base shipping charge and the total shipping adjustment.
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
        See Also:
        getShippingChargeTotal()
      • getFormattedShippingTaxAmount

        public FormattedMonetaryAmountDataBean getFormattedShippingTaxAmount()
                                                                      throws ECSystemException
        This method returns the shipping tax in FormattedMonetaryAmountDataBean.
        Specified by:
        getFormattedShippingTaxAmount in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getFormattedTaxAmount

        public FormattedMonetaryAmountDataBean getFormattedTaxAmount()
                                                              throws ECSystemException
        This method returns the tax in FormattedMonetaryAmountDataBean.
        Specified by:
        getFormattedTaxAmount in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getFormattedTotalAdjustment

        public FormattedMonetaryAmountDataBean getFormattedTotalAdjustment()
                                                                    throws ECSystemException
        This method returns the total adjustment of the orderitem in FormattedMonetaryAmountDataBean. the total adjustment is the summation of all the adjustment applied on the orderitem. including discount, coupon, surcharge and shipping adjustment.
        Specified by:
        getFormattedTotalAdjustment in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getFormattedTotalProduct

        public FormattedMonetaryAmountDataBean getFormattedTotalProduct()
                                                                 throws ECSystemException
        This method returns the total price in FormattedMonetaryAmountDataBean.
        Specified by:
        getFormattedTotalProduct in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getPerItemTotalPrice

        public PriceDataBean getPerItemTotalPrice()
        This method returns the total price in PriceDataBean.
        Specified by:
        getPerItemTotalPrice in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        PriceDataBean
      • getPriceDataBean

        public PriceDataBean getPriceDataBean()
        This method returns the price in PriceDataBean.
        Specified by:
        getPriceDataBean in interface com.ibm.commerce.order.beans.OrderItemSmartDataBean
        Returns:
        PriceDataBean
      • getChildItems

        public OrderItemDataBean[] getChildItems(java.lang.Integer[] aDistributorStoreIds,
                                                 java.lang.String aLineItemType,
                                                 java.lang.String aRelType)
        This method returns child order items for a list of distributors by LineItemType, and RelType LineItemType can be 'ALT','PRIM', or 'BOTH'
        Parameters:
        aDistributorStoreIds -
        aLineItemType -
        aRelType -
        Returns:
        OrderItemDataBean[]
      • getParentItems

        public OrderItemDataBean[] getParentItems()
        This method returns parent order items
        Returns:
        OrderItemDataBean[]
      • getSiblingItems

        public OrderItemDataBean[] getSiblingItems(java.lang.String aRelType)
        This method returns sibling order items.
        Parameters:
        aRelType -
        Returns:
        OrderItemDataBean[]
      • getSiblingSelectionItems

        public OrderItemDataBean[] getSiblingSelectionItems()
        This method returns "selection" sibling order items.
        Returns:
        OrderItemDataBean[]
      • getSiblingFinalItems

        public OrderItemDataBean[] getSiblingFinalItems()
        This method returns "final" sibling order items
        Returns:
        OrderItemDataBean[]
      • getSiblingInitialItems

        public OrderItemDataBean[] getSiblingInitialItems()
        This method returns "initial" sibling order items.
        Returns:
        OrderItemDataBean[]
      • getSiblingSubmissionItems

        public OrderItemDataBean[] getSiblingSubmissionItems()
        This method returns "submission" sibling order items.
        Returns:
        OrderItemDataBean[]
      • getSelectionQuantity

        public java.lang.Double getSelectionQuantity()
        This method returns total quantity of selection items.
        Returns:
        Double
      • populate

        public void populate()
                      throws java.lang.Exception
        This method is used to populate the OrderItemDataBean. You must set OrderItemId using the setOrderItemId method before running the populate() method.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
        See Also:
        setOrderItemId(String)
      • setCatalogEntry

        public void setCatalogEntry(CatalogEntryDataBean adbCatalogEntry)
        This method sets catalog entry.
        Parameters:
        adbCatalogEntry - CatalogEntryDataBean
      • setCatalogEntry

        public void setCatalogEntry(CatalogEntryAccessBean aabCatalogEntry)
        This method sets catalog entry.
        Parameters:
        aabCatalogEntry - CatalogEntryAccessBean
        Throws:
        java.lang.Exception
      • setOrderItemId

        public void setOrderItemId(java.lang.String orderItemId)
        This method sets an order item id.
        Specified by:
        setOrderItemId in interface com.ibm.commerce.order.beans.OrderItemInputDataBean
        Parameters:
        orderItemId - String
      • getChildAlternateSelectionItems

        public OrderItemDataBean[] getChildAlternateSelectionItems()
        This method returns alternate selection child order items.
        Returns:
        OrderItemDataBean[]
      • getChildPrimarySelectionItems

        public OrderItemDataBean[] getChildPrimarySelectionItems()
        This method returns primary selection child order items.
        Returns:
        OrderItemDataBean[]
      • getChildAlternateInitialItems

        public OrderItemDataBean[] getChildAlternateInitialItems()
        This method returns alternate initial child order items.
        Returns:
        OrderItemDataBean[]
      • getChildPrimaryInitialItems

        public OrderItemDataBean[] getChildPrimaryInitialItems()
        This method returns primary initial child order items.
        Returns:
        OrderItemDataBean[]
      • getChildAlternateSubmissionItems

        public OrderItemDataBean[] getChildAlternateSubmissionItems()
        This method returns alternate submission child order items.
        Returns:
        OrderItemDataBean[]
      • getChildPrimarySubmissionItems

        public OrderItemDataBean[] getChildPrimarySubmissionItems()
        This method returns primary submission child order items.
        Returns:
        OrderItemDataBean[]
      • getChildAlternateFinalItems

        public OrderItemDataBean[] getChildAlternateFinalItems()
        This method returns alternate final child order items.
        Returns:
        OrderItemDataBean[]
      • getChildPrimaryFinalItems

        public OrderItemDataBean[] getChildPrimaryFinalItems()
        This method returns primary final child order items.
        Returns:
        OrderItemDataBean[]
      • getChildAlternateSelectionItems

        public OrderItemDataBean[] getChildAlternateSelectionItems(java.lang.Integer aStoreId,
                                                                   java.lang.Long[] aContractIdList)
        This method returns alternate selection child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildPrimarySelectionItems

        public OrderItemDataBean[] getChildPrimarySelectionItems(java.lang.Integer aStoreId,
                                                                 java.lang.Long[] aContractIdList)
        This method returns primary selection child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildAlternateInitialItems

        public OrderItemDataBean[] getChildAlternateInitialItems(java.lang.Integer aStoreId,
                                                                 java.lang.Long[] aContractIdList)
        This method returns alternate initial child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildPrimaryInitialItems

        public OrderItemDataBean[] getChildPrimaryInitialItems(java.lang.Integer aStoreId,
                                                               java.lang.Long[] aContractIdList)
        This method returns primary initial child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildAlternateSubmissionItems

        public OrderItemDataBean[] getChildAlternateSubmissionItems(java.lang.Integer aStoreId,
                                                                    java.lang.Long[] aContractIdList)
        This method returns alternate submission child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildPrimarySubmissionItems

        public OrderItemDataBean[] getChildPrimarySubmissionItems(java.lang.Integer aStoreId,
                                                                  java.lang.Long[] aContractIdList)
        This method returns primary submission child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildAlternateFinalItems

        public OrderItemDataBean[] getChildAlternateFinalItems(java.lang.Integer aStoreId,
                                                               java.lang.Long[] aContractIdList)
        This method returns alternate final child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getChildPrimaryFinalItems

        public OrderItemDataBean[] getChildPrimaryFinalItems(java.lang.Integer aStoreId,
                                                             java.lang.Long[] aContractIdList)
        This method returns primary final child order items by the specified proxy store and contract id(s). If aContractIdList is null, it will default to the default contract for the proxy store
        Parameters:
        aStoreId - Integer
        aContractIdList - Long array
        Returns:
        OrderItemDataBean[]
      • getOrderFulfillmentItemStatusDataBean

        public OrderFulfillmentItemStatusDataBean getOrderFulfillmentItemStatusDataBean()
        This method returns OrderStatusItemDataBean for this order item.
        Returns:
        OrderFulfillmentItemStatusDataBean
      • hasPAttributes

        public boolean hasPAttributes()
                               throws java.lang.Exception
        This method returns if the order item have any personalization attributes associated with it.
        Returns:
        true if the order item has personalization attributes; false otherwise
        Throws:
        java.lang.Exception
      • getPAttributes

        public com.ibm.commerce.rfq.helpers.PersonalizationAttribute[] getPAttributes(java.lang.Integer theLanguageId)
                                                                               throws java.lang.Exception
        This method returns the Personalization Attributes for the order item.
        Parameters:
        theLanguageId - The language Id to fetch any language specific data in.
        Returns:
        The array of personalization attributes.
        Throws:
        java.lang.Exception
      • getOrderItemAdjustmentDataBeans

        public OrderItemAdjustmentDataBean[] getOrderItemAdjustmentDataBeans()
        This method returns the OrderItemAdjustmentDataBean of this OrderItem.
        Returns:
        the OrderItemAdjustmentDataBeans, or null if none is found or an error has occurred during its retrieval.
      • getOrderItemAdjustmentDataBeans

        public OrderItemAdjustmentDataBean[] getOrderItemAdjustmentDataBeans(java.lang.Integer anCalculationUsageId,
                                                                             java.lang.Integer anDisplayLevel)
        This method returns the OrderItemAdjustmentDataBean of this OrderItem, with the specified CalculationUsage and display level.
        Parameters:
        anCalculationUsageId - the CalculationUsage ID. Null means any CalculationUsage.
        anDisplayLevel - the display level. Null means any display level.
        Returns:
        the OrderItemAdjustmentDataBeans, or null if none is found or an error has occurred during its retrieval.
      • getOrderItemLevelDiscountOrderItemAdjustmentDataBeans

        public OrderItemAdjustmentDataBean[] getOrderItemLevelDiscountOrderItemAdjustmentDataBeans()
        This method returns the OrderItemAdjustmentDataBean of this OrderItem, with CalculationUsage -1 (that is discount) and display level 0 (that is OrderItem).
        Returns:
        the OrderItemAdjustmentDataBeans, or null if none is found or an error has occurred during its retrieval.
      • getOrderItemLevelSurchargeOrderItemAdjustmentDataBeans

        public OrderItemAdjustmentDataBean[] getOrderItemLevelSurchargeOrderItemAdjustmentDataBeans()
        This method returns the OrderItemAdjustments of this OrderItem, with CalculationUsage -6 (that is surcharge) and display level 0 (that is OrderItem).
        Returns:
        the OrderItemAdjustmentDataBeans, or null if none is found or an error has occurred during its retrieval.
      • getOrderItemLevelShippingOrderItemAdjustmentDataBeans

        public OrderItemAdjustmentDataBean[] getOrderItemLevelShippingOrderItemAdjustmentDataBeans()
        This method returns the OrderItemAdjustmentDataBean of this OrderItem, with CalculationUsage -7 (that is shipping adjustment) and display level 0 (that is OrderItem).
        Returns:
        the OrderItemAdjustmentDataBeans, or null if none is found or an error has occurred during its retrieval.
      • getAdjustmentTotal

        public java.math.BigDecimal getAdjustmentTotal(java.lang.Integer anCalculationUsageId,
                                                       java.lang.Integer anDisplayLevel)
        Deprecated. use getTotalAdjustmentByDisplayLevel(Integer anDisplayLevel) or This method returnsTotalAdjustmentByCalculationUsageId(Integer anCalculationUsageId) or This method returnsTotalAdjustmentByCalculationUsageIdAndDisplayLevel(Integer anCalculationUsageId, Integer anDisplayLevel) instead.
        This method returns the adjustment total of this OrderItem, with the specified CalculationUsage and display level.
        Parameters:
        anCalculationUsageId - the CalculationUsage ID. Null means any CalculationUsage.
        anDisplayLevel - the display level. Null means any display level.
        Returns:
        the adjustment total, or null if an error has occurred.
      • getTotalAdjustmentByDisplayLevel

        public java.math.BigDecimal getTotalAdjustmentByDisplayLevel(java.lang.Integer anDisplayLevel)
        This method returns the adjustment total of this OrderItem, with the specified display level.
        Overrides:
        getTotalAdjustmentByDisplayLevel in class OrderItemAccessBean
        Parameters:
        anDisplayLevel - the display level.
        Returns:
        the adjustment total, or null if an error has occurred.
      • getTotalAdjustmentByCalculationUsageId

        public java.math.BigDecimal getTotalAdjustmentByCalculationUsageId(java.lang.Integer anCalculationUsageId)
        This method returns the adjustment total of this OrderItem, with the specified CalculationUsage.
        Overrides:
        getTotalAdjustmentByCalculationUsageId in class OrderItemAccessBean
        Parameters:
        anCalculationUsageId - the CalculationUsage ID.
        Returns:
        the adjustment total, or null if an error has occurred.
      • getTotalAdjustmentByCalculationUsageIdAndDisplayLevel

        public java.math.BigDecimal getTotalAdjustmentByCalculationUsageIdAndDisplayLevel(java.lang.Integer anCalculationUsageId,
                                                                                          java.lang.Integer anDisplayLevel)
        This method returns the adjustment total of this OrderItem, with the specified CalculationUsage and display level.
        Overrides:
        getTotalAdjustmentByCalculationUsageIdAndDisplayLevel in class OrderItemAccessBean
        Parameters:
        anCalculationUsageId - the CalculationUsage ID.
        anDisplayLevel - the display level.
        Returns:
        the adjustment total, or null if an error has occurred.
      • getFormattedTotalDiscountAdjustment

        public FormattedMonetaryAmountDataBean getFormattedTotalDiscountAdjustment()
                                                                            throws ECSystemException
        This method returns the total discount adjustment in FormattedMonetaryAmountDataBean.
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getFormattedTotalSurchargeAdjustment

        public FormattedMonetaryAmountDataBean getFormattedTotalSurchargeAdjustment()
                                                                             throws ECSystemException
        This method returns the total surcharge adjustment in FormattedMonetaryAmountDataBean.
        Returns:
        FormattedMonetaryAmountDataBean
        Throws:
        CreateException
        FinderException
        RemoteException
        ECSystemException
      • getFormattedQuantity

        public java.lang.String getFormattedQuantity()
        This method returns the requested quantity formatted as a string with decimal separator only shown if there is a fractional portion.
        Returns:
        String representing the quantity
      • isFree

        public boolean isFree()
        This method returns if the orderItem is a freebie .
        Returns:
        true: if the orderItem is free, false: otherwise
      • getAllowableShippingModeDataBeans

        public ShippingModeDataBean[] getAllowableShippingModeDataBeans()
        Gets the allowable shipping modes associated with this order item.
        Returns:
        ShippingModeDataBean[]
      • getAllowableShippingAddressDataBeans

        public AddressDataBean[] getAllowableShippingAddressDataBeans()
        Gets the allowable shipping addresses associated with this order item.
        Returns:
        AddressDataBean[]
      • getFormattedEstimatedShippingTime

        public java.lang.String getFormattedEstimatedShippingTime()
        This method returns the estimated shipping time formatted based on locale.
        Returns:
        String
      • isDiscontinued

        public boolean isDiscontinued()
        This method returns if the orderItem is discontinued.
        Returns:
        true if the orderItem is discontinued, false otherwise
      • getItemDataBean

        public ItemDataBean getItemDataBean()
        This method returns the catalog item corresponding to this order item.
        Returns:
        ItemDataBean corresponding to this order item
      • getAddressDataBean

        public AddressDataBean getAddressDataBean()
        This method returns the shipping address for this order item.
        Returns:
        AddressDataBean containing this order item's shipping address info
      • getShippingModeDataBean

        public ShippingModeDataBean getShippingModeDataBean()
        This method returns the shipping mode databean for this order item.
        Returns:
        ShippingModeDataBean
      • getShippingModeDescriptionDataBean

        public ShippingModeDescriptionDataBean getShippingModeDescriptionDataBean()
        This method returns the shipping mode description databean for this order item.
        Returns:
        ShippingDescriptionModeDataBean
      • getQuantityInIntValue

        public int getQuantityInIntValue()
        This method returns the quantity in integer value.
        Returns:
        the quantity in integer value
      • getAppliedProductPromotions

        public OrderItemDataBean.AppliedPromotion[] getAppliedProductPromotions()
        This method returns applied promotions.
        Returns:
        appliedPromos applied promotions
      • populateAppliedProductPromotion

        public void populateAppliedProductPromotion()
        This method populates Applied ProductPromotion.
      • getShipInstructsDataBean

        public ShipInstructionsDataBean getShipInstructsDataBean()
        This method returns any shipping instruction data that is associated with this orderitem
        Returns:
        ShipInstructionsDataBean
      • getShipCarrAccntDataBean

        public ShipCarrAccntDataBean getShipCarrAccntDataBean()
        This method returns any shipping carrier account(shipping charge type/account number) data. that is associated with this orderitem
        Returns:
        ShipCarrAccntDataBean
      • getShortDescription

        public java.lang.String getShortDescription()
        This method returns the short description of the item added to the cart.
        Returns:
        String The order items short description
      • getFormattedRequestedShipDate

        public java.lang.String getFormattedRequestedShipDate()
        This method returns the requested shipping time formatted based on locale.
        Returns:
        String
      • getRequestedShipDateYear

        public java.lang.String getRequestedShipDateYear()
        This method returns the Year part of the RequestedShipDate.
        Returns:
        String
      • getRequestedShipDateMonth

        public java.lang.String getRequestedShipDateMonth()
        This method returns the Month part of the RequestedShipDate.
        Returns:
        String
      • getRequestedShipDateDay

        public java.lang.String getRequestedShipDateDay()
        This method returns the Day part of the RequestedShipDate.
        Returns:
        String
      • isEditable

        public boolean isEditable()
        This method returns true if this orderitem can be edited. Note: Only applicable for complex orders.
        Returns:
        boolean
      • isBackOrdered

        public boolean isBackOrdered()
        This method returns if orderitem is back-ordered.
        Returns:
        true if item is backordered, false otherwise
      • getCurrentAddressDataBean

        public AddressDataBean getCurrentAddressDataBean()
        This method returns an AddressDataBean that contains the current shipping address for the nickname that the orderItem was submitted under. This method will find the permanent address with the same nickname for the same user.
        Returns:
        an AddressDataBean which contains the current shipping address for the order item
      • isExpedited

        public boolean isExpedited()
        This method returns if the item is expedited or not, which means that the item is to receive priority in fulfillment.
        Returns:
        true if the item is to be expedited when fulfilled
      • getFormattedEstimatedAvailableTime

        public java.lang.String getFormattedEstimatedAvailableTime()
        This method returns the estimated available time formatted based on locale. CheckInventoryAvailabilityCmd must have been called prior to calling this method. This can be done by invoking the command directly or by specifying the ATP check parameter on OrderItemAddCmd
        Returns:
        String
        See Also:
        CheckInventoryAvailabilityCmd, OrderItemAddCmd, isInventoryAvailable()
      • isInventoryAvailable

        public boolean isInventoryAvailable()
        This method returns if an item is available in inventory or not. CheckInventoryAvailabilityCmd will be called if not previously called by this method or getFormattedEstimatedAvailableTime. // assume available now // if not available now, get date when it will be available // shows the determined available data
        Returns:
        true if inventory is currently available for this item
        See Also:
        CheckInventoryAvailabilityCmd, getFormattedEstimatedAvailableTime()
      • isPersonalAddressAllowForShipping

        public boolean isPersonalAddressAllowForShipping()
        This method returns if the personal address book for a shopper is allowed to be used for a shipping address.
        Returns:
        true is allowed. false is not allowed.
      • getRootOICompRelDataBean

        public OrderItemCompRelDataBean getRootOICompRelDataBean()
        This method returns an OrderItemCompRelDataBean. This method will find the permanent address with the same nickname for the same user.
        Returns:
        OrderItemCompRelDataBean
      • isReturnable

        public boolean isReturnable()
        This method returns true if this orderitem can be returned.
        Returns:
        boolean
      • getSerialNumbers

        public com.ibm.commerce.fulfillment.beans.OrderSerialNumbersDataBean[] getSerialNumbers()
        This method returns the OrderSerialNumbersDataBean for the orderitem and the included kit components
        Returns:
        OrderSerialNumbersDataBean[]
      • getSerialNumbersForOrderItem

        public com.ibm.commerce.fulfillment.beans.OrderSerialNumbersDataBean[] getSerialNumbersForOrderItem()
        This method returns the OrderSerialNumbersDataBean for the orderitem, SNs for kit components are filtered out
        Returns:
        OrderSerialNumbersDataBean[]
      • getSerialNumbersForComponents

        public com.ibm.commerce.fulfillment.beans.OrderSerialNumbersDataBean[] getSerialNumbersForComponents()
        This method returns the OrderSerialNumbersDataBean for the components, SNs for orderitems are filtered out. Used for kit
        Returns:
        OrderSerialNumbersDataBean[]
      • getShipmentInformationDataBeans

        public com.ibm.commerce.order.beans.ShipmentInformationDataBean[] getShipmentInformationDataBeans()
        This method returns the shipment information data bean for the orderitem.
        Returns:
        array of ShipmentInformationDataBean
      • getReturnInformationDataBean

        public com.ibm.commerce.order.beans.ReturnInformationDataBean[] getReturnInformationDataBean()
        This method gets the return information data bean for the orderitem.
        Returns:
        array of ReturnInformationDataBean.
      • main

        public static void main(java.lang.String[] args)