Interface PromotionRounding

All Known Subinterfaces:
PromotableCandidateFulfillmentGroupOffer, PromotableCandidateItemOffer, PromotableFulfillmentGroupAdjustment
All Known Implementing Classes:
AbstractPromotionRounding, PromotableCandidateFulfillmentGroupOfferImpl, PromotableCandidateItemOfferImpl, PromotableFulfillmentGroupAdjustmentImpl, PromotableOrderItemPriceDetailAdjustmentImpl

public interface PromotionRounding
Interface to centralize the promotion rounding functionality found in several of the Promotable classes.
Author:
bpolster
  • Method Summary

    Modifier and Type
    Method
    Description
    It is sometimes problematic to offer percentage-off offers with regards to rounding.
    It is sometimes problematic to offer percentage-off offers with regards to rounding.
  • Method Details

    • getRoundingMode

      RoundingMode getRoundingMode()
      It is sometimes problematic to offer percentage-off offers with regards to rounding. For example, consider an item that costs 9.99 and has a 50% promotion. To be precise, the offer value is 4.995, but this may be a strange value to display to the user depending on the currency being used.
    • getRoundingScale

      Integer getRoundingScale()
      It is sometimes problematic to offer percentage-off offers with regards to rounding. For example, consider an item that costs 9.99 and has a 50% promotion. To be precise, the offer value is 4.995, but this may be a strange value to display to the user depending on the currency being used.