com.ibm.commerce.price.commands

Class ItemPriceInfo

  • java.lang.Object
    • com.ibm.commerce.price.commands.ItemPriceInfo


  • public class ItemPriceInfo
    extends java.lang.Object
    Internal Pricing info stored for items.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ItemPriceInfo

        public ItemPriceInfo(java.lang.Long anCatalogEntryId,
                             QuantityAmount aQuantity)
                      throws com.ibm.commerce.exception.ECException
        Item constructor comment.
        Parameters:
        anCatalogEntryId - catalog entry ID
        aQuantity - the quantity with the catalog entry
        Throws:
        com.ibm.commerce.exception.ECException
    • Method Detail

      • getBasePrice

        public MonetaryAmount getBasePrice()
        Get base price
        Returns:
        MonetaryAmount the monetary amount of the price
      • getCatalogEntryId

        public java.lang.Long getCatalogEntryId()
        Get catalog entry ID
        Returns:
        Long the catalog entry ID
      • getOffer

        public com.ibm.commerce.order.objects.OfferAccessBean getOffer()
        Get Offer access bean
        Returns:
        OfferAccessBean an offer access bean
      • getOfferId

        public java.lang.Long getOfferId()
        Get offer ID
        Returns:
        Long the offer ID
      • getOfferIds

        public java.lang.Long[] getOfferIds()
        Get offer IDs
        Returns:
        Long[] the catalog entry IDs
      • getQuantity

        public QuantityAmount getQuantity()
        Get quantity amount
        Returns:
        QuantityAmount the quantity amount of the catentry
      • getTcId

        public java.lang.Long getTcId()
        Get term condition ID
        Returns:
        Long a term condition ID
      • getTradingId

        public java.lang.Long getTradingId()
        Get Trading ID
        Returns:
        Long a trading ID
      • getTradingIds

        public java.lang.Long[] getTradingIds()
        Get Trading IDs
        Returns:
        Long[] an array of trading IDs
      • getTradingTcIds

        public java.lang.Long[] getTradingTcIds()
        Get Term condition IDs
        Returns:
        Long[] a set of term condition IDs
      • getUnitPrice

        public MonetaryAmount getUnitPrice()
        Get monetary amount of the price
        Returns:
        MonetaryAmount the monetary amount price
      • initOutput

        public void initOutput(int aSize)
        Initialize the variables
        Parameters:
        aSize - the size of the variable arrays
      • setBasePrice

        public void setBasePrice(MonetaryAmount aPrice)
        Set base price
        Parameters:
        aPrice - MonetaryAmount of the price
      • setOffer

        public void setOffer(com.ibm.commerce.order.objects.OfferAccessBean aOffer)
        Set offer access bean
        Parameters:
        aOffer - an OfferAccessBean
      • setOfferId

        public void setOfferId(java.lang.Long aOfferId)
        Set Offer ID
        Parameters:
        aOfferId - the offer ID
      • setOfferIds

        public void setOfferIds(java.lang.Long[] aOfferIds)
        Set all Offer IDs
        Parameters:
        aOfferIds - a set of offer IDs
      • setTcId

        public void setTcId(java.lang.Long aTcId)
        Set term condition ID
        Parameters:
        aTcId - the term condition ID
      • setTradingId

        public void setTradingId(java.lang.Long anTradingId)
        Set trading ID
        Parameters:
        anTradingId - the trading ID
      • setTradingIds

        public void setTradingIds(java.lang.Long anTradingId)
        Set one trading ID
        Parameters:
        aTradingIds - the Trading IDs
      • setTradingIds

        public void setTradingIds(java.lang.Long[] aTradingIds)
        Set trading IDs
        Parameters:
        aTradingIds - the Trading IDs
      • setUnitPrice

        public void setUnitPrice(MonetaryAmount aPrice)
        Set price
        Parameters:
        aPrice - the price for the product