Class EnhancedProratedItemOfferAdjustment

    • Constructor Detail

      • EnhancedProratedItemOfferAdjustment

        public EnhancedProratedItemOfferAdjustment()
    • Method Detail

      • addSelfToParentDetail

        public void addSelfToParentDetail()
      • 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.ProratedItemOfferAdjustment
        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 that caused this adjustment to be applied.
        Specified by:
        getOffer in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment
        Returns:
        The OfferRef for the Offer that caused this adjustment to be applied.
      • getAmount

        public javax.money.MonetaryAmount getAmount()
        The amount of the adjustment applied to the item.
        Specified by:
        getAmount in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment
        Returns:
        The amount of the adjustment applied to the item.
      • getQuantity

        public int getQuantity()
        The quantity of merchandising items from the EnhancedLineItem to which this adjustment applies.
        Specified by:
        getQuantity in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment
        Returns:
        The quantity of merchandising items from the EnhancedLineItem to which this adjustment applies.
      • 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.ProratedItemOfferAdjustment
        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 that caused this adjustment to be applied.
        Specified by:
        setOffer in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment
        Parameters:
        offer - The OfferRef for the Offer that caused this adjustment to be applied.
      • setAmount

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

        public void setQuantity​(int quantity)
        The quantity of merchandising items from the EnhancedLineItem to which this adjustment applies.
        Specified by:
        setQuantity in interface com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment
        Parameters:
        quantity - The quantity of merchandising items from the EnhancedLineItem to which this adjustment applies.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object