Interface TmaSubscriptionTermService

All Known Implementing Classes:
DefaultTmaSubscriptionTermService

public interface TmaSubscriptionTermService
Service for operations related to the SubscriptionTermModel.
Since:
6.7
  • Method Details

    • getAllSubscriptionTerms

      List<SubscriptionTermModel> getAllSubscriptionTerms()
      Returns all subscription terms.
      Returns:
      List of SubscriptionTermModel
    • getApplicableSubscriptionTerms

      Set<SubscriptionTermModel> getApplicableSubscriptionTerms(TmaProductOfferingModel spo, TmaBundledProductOfferingModel bpo, TmaProcessType processType)
      Returns all subscription terms found in the price plans configured on given spo and bpo. Note: if a price plan has no subscription terms, then all subscription terms will be considered.
      Parameters:
      spo - simple product offering
      bpo - bundled product offering
      processType - the process type for which price plans will be considered
      Returns:
      Set of SubscriptionTermModel
    • getSubscriptionTerm

      SubscriptionTermModel getSubscriptionTerm(String id)
      Returns SubscriptionTermModel corresponding to the given id.
      Parameters:
      id - subscription term unique id
      Returns:
      SubscriptionTermModel found or null in case of no object model is found
    • getDefaultSubscriptionTerm

      SubscriptionTermModel getDefaultSubscriptionTerm()
      Determines default subscription term.
      Returns:
      the default subscription term configured
    • getSubscriptionTermsFor

      List<SubscriptionTermModel> getSubscriptionTermsFor(PriceRowModel priceRow)
      Returns the subscription terms configured on the given price row if there are any, otherwise it returns all existing subscription terms
      Parameters:
      priceRow - the price row
      Returns:
      the subscription terms configured on the given price row if there are any, otherwise it returns all existing subscription terms
    • getSubscriptionTermsFor

      List<SubscriptionTermModel> getSubscriptionTermsFor(DiscountRowModel discountRow)
      Returns the subscription terms configured on the given discount row if there are any, otherwise it returns all existing subscription terms
      Parameters:
      discountRow - the discount row
      Returns:
      the subscription terms configured on the given discount row if there are any, otherwise it returns all existing subscription terms