Package org.killbill.billing.catalog.api
Interface VersionedCatalog
-
public interface VersionedCatalog
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCatalogName()StaticCataloggetCurrentVersion()The latest catalog version is the one used by the system when creating or change thePlanassociated with a subscription.StaticCataloggetVersion(Date targetDate)List<StaticCatalog>getVersions()
-
-
-
Method Detail
-
getCatalogName
String getCatalogName()
- Returns:
- the catalog name
-
getVersions
List<StaticCatalog> getVersions()
- Returns:
- All the (ordered) catalog versions
-
getCurrentVersion
StaticCatalog getCurrentVersion()
The latest catalog version is the one used by the system when creating or change thePlanassociated with a subscription.- Returns:
- the current (latest) catalog version.
-
getVersion
StaticCatalog getVersion(Date targetDate)
- Parameters:
targetDate- the date used to find the catalog version- Returns:
- the catalog version matching this date Assuming two StaticCatalog, S1 with a version date of D1, and S2 with a version date of D2: - Specifying a date D such that D < D1 will by convention return the first version - Specifying a date D such that D1 <= D < D2 will return S1 - Specifying a date D such that D2 <= D will return S2
-
-