Package org.killbill.billing.catalog.api
Interface Block
-
- All Known Subinterfaces:
TieredBlock
public interface Block
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimalgetMinTopUpCredit()InternationalPricegetPrice()BigDecimalgetSize()BlockTypegetType()UnitgetUnit()
-
-
-
Method Detail
-
getType
BlockType getType()
- Returns:
- the
BlockType
-
getUnit
Unit getUnit()
- Returns:
- the unit for that
Blocksection.
-
getSize
BigDecimal getSize()
- Returns:
- the size of the block
-
getPrice
InternationalPrice getPrice()
- Returns:
- the recurring
InternationalPricefor thatBlocksection.
-
getMinTopUpCredit
BigDecimal getMinTopUpCredit() throws CatalogApiException
- Returns:
- the minimum number of
Unitcredits after which TopUp kicks in. - Throws:
CatalogApiException- if the {#code Block} is not of typeBlockType.TOP_UP
-
-