com.ibm.commerce.price.utils

Class OfferIdMonetaryAmountPair

  • java.lang.Object
    • com.ibm.commerce.price.utils.OfferIdMonetaryAmountPair


  • public class OfferIdMonetaryAmountPair
    extends java.lang.Object
    A helper that strongly types a pairing of offer ID and MonetaryAmount objects.
    • Field Detail

      • COPYRIGHT

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

      • OfferIdMonetaryAmountPair

        public OfferIdMonetaryAmountPair(java.lang.Long offerId,
                                         MonetaryAmount monetaryAmount)
        Constructor. Creates a new instance with the offer ID and MonetaryAmount passed.
        Parameters:
        offerId - The offer ID to use.
        monetaryAmount - The MonetaryAmount to use.
    • Method Detail

      • getMonetaryAmount

        public MonetaryAmount getMonetaryAmount()
        Returns the MonetaryAmount
        Returns:
        The MonetaryAmount.
      • getOfferId

        public java.lang.Long getOfferId()
        Returns the offer ID.
        Returns:
        The offer ID.