Interface TuaUsageVolumeProductService
- All Known Implementing Classes:
DefaultTuaUsageVolumeProductService
public interface TuaUsageVolumeProductService
Service responsible for handling
TuaUsageVolumeProductModel related operations.- Since:
- 2208
-
Method Summary
Modifier and TypeMethodDescriptiongetMostRecentDate(List<TuaUsageVolumeProductModel> usageVolumeProducts) Retrieves the most recent effective date from ConsumptionSummaries attached on UsageVolumeProductsgetNumberOfUsageVolumeProductFor(UcUsageVolumeProductContext ucUsageVolumeProductContext) Retrieves the total number of usage volume products found for a given context.getUsageVolumeProducts(UcUsageVolumeProductContext ucUsageVolumeProductContext, Integer offset, Integer limit) Retrieves a list ofTuaUsageVolumeProductModelfor a given context.
-
Method Details
-
getUsageVolumeProducts
List<TuaUsageVolumeProductModel> getUsageVolumeProducts(UcUsageVolumeProductContext ucUsageVolumeProductContext, Integer offset, Integer limit) Retrieves a list ofTuaUsageVolumeProductModelfor a given context.- Parameters:
ucUsageVolumeProductContext- the context.offset- the offset.limit- the maximum number of returned usage volume products.- Returns:
- the list of usage volume products found for the given context.
-
getNumberOfUsageVolumeProductFor
Retrieves the total number of usage volume products found for a given context.- Parameters:
ucUsageVolumeProductContext- the context.- Returns:
- the number of usage volume products found.
-
getMostRecentDate
Retrieves the most recent effective date from ConsumptionSummaries attached on UsageVolumeProducts- Parameters:
usageVolumeProducts- the list of usage volume products- Returns:
- the most recent effective date
-