Interface PriceDetailComparable

All Known Implementing Classes:
PriceDetail

public interface PriceDetailComparable
Defines the essential properties of a priceable target to make comparisons and shared logic easier between PriceDetail and PriceListPriceDetail
Since:
Pricing Client 2.0.3
Author:
Nathan Moore (nathandmoore)
  • Method Details

    • getPrice

      javax.money.MonetaryAmount getPrice()
      Price for the PriceInfo.getTarget() for a particular PriceList.
      Returns:
      the Price for the PriceInfo.getTarget() for a particular PriceList.
    • getRecurringPriceDetail

      default RecurringPriceDetail getRecurringPriceDetail()
      Represents the details related to a recurring (or subscription) price include the terms.
      Returns:
      Represents the details related to a recurring (or subscription) price include the terms.
    • getUsagePriceDetail

      default UsagePriceDetail getUsagePriceDetail()
      Represents the details related to a usage price including the units.
      Returns:
      Represents the details related to a usage price including the units.
    • getPriority

      default Integer getPriority()
      The relative priority of this price detail vs others that might apply to the same target.
      Returns:
      The relative priority of this price detail vs others that might apply to the same target.
    • getPriceListPriority

      Integer getPriceListPriority()
      The relative priority of the parent price list vs other price lists that may have price details with the same target.
      Returns:
      The relative priority of the parent price list vs other price lists that may have price details with the same target.