com.ibm.commerce.price.beans

Class PriceDataBean

    • Constructor Detail

      • PriceDataBean

        public PriceDataBean(MonetaryAmount aMonetaryAmount,
                             com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
                             java.lang.Integer aLanguageId)
        Price data bean constructor.
        Parameters:
        aMonetaryAmount - monetary amount of the price.
        aStoreAccessBean - store under which the formatting is to occur.
        aLanguageId - language Id under which the formatting is to occur.
      • PriceDataBean

        public PriceDataBean(MonetaryAmount aMonetaryAmount,
                             com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
                             java.lang.Integer aLanguageId,
                             java.lang.Long aCatEntryId,
                             com.ibm.commerce.command.CommandContext aCommandContext)
        Price data bean constructor.
        Parameters:
        aMonetaryAmount - monetary amount of the price.
        aStoreAccessBean - store under which the formatting is to occur.
        aLanguageId - language Id under which the formatting is to occur.
        aCatEntryId - the catalog entry id for the price.
        aCommandContext - the command context.
    • Method Detail

      • getCatEntryId

        public java.lang.Long getCatEntryId()
        Gets the catalog entry id.
        Specified by:
        getCatEntryId in interface PriceSmartDataBean
        Returns:
        the Long containing the catalog entry id.
      • getPriceVAT

        public java.math.BigDecimal getPriceVAT()
                                         throws com.ibm.commerce.exception.ECSystemException
        Gets total of the price with VAT.
        Returns:
        total of the price with VAT
        Throws:
        com.ibm.commerce.exception.ECSystemException
      • getTaxes

        public CategorizedMonetaryAmountsDataBean getTaxes()
                                                    throws com.ibm.commerce.exception.ECSystemException
        Invokes GetDisplayTaxes command to calculate the taxes for those tax categories that are displayable at product display time.
        Specified by:
        getTaxes in interface PriceSmartDataBean
        Returns:
        the CategorizedMonetaryAmountsDataBean containing the taxing monetary amounts, names and descriptions and so forth.
        Throws:
        com.ibm.commerce.exception.ECSystemException
      • setCatEntryId

        public void setCatEntryId(java.lang.Long aCatEntryId)
        Sets the catalog entry id
        Specified by:
        setCatEntryId in interface PriceInputDataBean
        Parameters:
        aCatEntryId - the catalog entry Id.
      • setStoreId

        public void setStoreId(java.lang.Integer anStoreId)
        sets store id (optional).
        Parameters:
        anStoreId - the store which calculation is based on.