Package org.killbill.billing.catalog.api
Interface Usage
-
- All Superinterfaces:
CatalogEntity
public interface Usage extends CatalogEntity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompliesWithLimits(String unit, BigDecimal value)BillingModegetBillingMode()BillingPeriodgetBillingPeriod()Block[]getBlocks()StaticCataloggetCatalog()InternationalPricegetFixedPrice()Limit[]getLimits()InternationalPricegetRecurringPrice()TierBlockPolicygetTierBlockPolicy()Tier[]getTiers()UsageTypegetUsageType()-
Methods inherited from interface org.killbill.billing.catalog.api.CatalogEntity
getName, getPrettyName
-
-
-
-
Method Detail
-
getCatalog
StaticCatalog getCatalog()
-
getBillingMode
BillingMode getBillingMode()
- Returns:
- the
BillingMode
-
getUsageType
UsageType getUsageType()
- Returns:
- the
UsageType
-
getTierBlockPolicy
TierBlockPolicy getTierBlockPolicy()
- Returns:
- the
TierBlockPolicy
-
getBillingPeriod
BillingPeriod getBillingPeriod()
- Returns:
-
compliesWithLimits
boolean compliesWithLimits(String unit, BigDecimal value)
- Returns:
- compliance boolean
-
getLimits
Limit[] getLimits()
- Returns:
- the
Limitassociated with that usage section
-
getTiers
Tier[] getTiers()
- Returns:
- the
Tierassociated with that usage section
-
getBlocks
Block[] getBlocks()
- Returns:
- the
Blockassociated with that usage section
-
getFixedPrice
InternationalPrice getFixedPrice()
- Returns:
- the fixed
InternationalPricefor thatUsagesection.
-
getRecurringPrice
InternationalPrice getRecurringPrice()
- Returns:
- the recurring
InternationalPricefor thatUsagesection.
-
-