Class EnhancedProratedOfferAdjustment

  • All Implemented Interfaces:
    com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment, Serializable

    public class EnhancedProratedOfferAdjustment
    extends Object
    implements com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment, Serializable
    Author:
    Sunny Yu
    See Also:
    Serialized Form
    • Constructor Detail

      • EnhancedProratedOfferAdjustment

        public EnhancedProratedOfferAdjustment()
    • Method Detail

      • getLineItem

        public com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRef getLineItem()
        The LineItemRef of the EnhancedLineItem that gets this adjustment.
        Specified by:
        getLineItem in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment
        Returns:
        The LineItemRef of the EnhancedLineItem that gets this adjustment.
      • getOffer

        public com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef getOffer()
        The OfferRef for the offer where this prorated adjustment is from.
        Specified by:
        getOffer in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment
        Returns:
        The OfferRef for the offer where this prorated adjustment is from.
      • getAmount

        public javax.money.MonetaryAmount getAmount()
        The amount of the prorated adjustment for the item.
        Specified by:
        getAmount in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment
        Returns:
        The amount of the prorated adjustment for the item.
      • setLineItem

        public void setLineItem​(com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRef lineItem)
        The LineItemRef of the EnhancedLineItem that gets this adjustment.
        Specified by:
        setLineItem in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment
        Parameters:
        itemLineNumber - The LineItemRef of the EnhancedLineItem that gets this adjustment.
      • setOffer

        public void setOffer​(com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offer)
        The OfferRef for the offer where this prorated adjustment is from.
        Specified by:
        setOffer in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment
        Parameters:
        offerRef - The OfferRef for the offer where this prorated adjustment is from.
      • setAmount

        public void setAmount​(javax.money.MonetaryAmount amount)
        The amount of the prorated adjustment for the item.
        Specified by:
        setAmount in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment
        Parameters:
        amount - The amount of the prorated adjustment for the item.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object