Interface TuaUsageVolumeProductService

All Known Implementing Classes:
DefaultTuaUsageVolumeProductService

public interface TuaUsageVolumeProductService
Service responsible for handling TuaUsageVolumeProductModel related operations.
Since:
2208
  • Method Details

    • getUsageVolumeProducts

      List<TuaUsageVolumeProductModel> getUsageVolumeProducts(UcUsageVolumeProductContext ucUsageVolumeProductContext, Integer offset, Integer limit)
      Retrieves a list of TuaUsageVolumeProductModel for 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

      Integer getNumberOfUsageVolumeProductFor(UcUsageVolumeProductContext ucUsageVolumeProductContext)
      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

      Date getMostRecentDate(List<TuaUsageVolumeProductModel> usageVolumeProducts)
      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