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 Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmountgetPrice()Price for thePriceInfo.getTarget()for a particularPriceList.The relative priority of the parent price list vs other price lists that may have price details with the same target.default IntegerThe relative priority of this price detail vs others that might apply to the same target.default RecurringPriceDetailRepresents the details related to a recurring (or subscription) price include the terms.default UsagePriceDetailRepresents the details related to a usage price including the units.
-
Method Details
-
getPrice
javax.money.MonetaryAmount getPrice()Price for thePriceInfo.getTarget()for a particularPriceList.- Returns:
- the Price for the
PriceInfo.getTarget()for a particularPriceList.
-
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
Represents the details related to a usage price including the units.- Returns:
- Represents the details related to a usage price including the units.
-
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.
-