Interface TmaSubscriptionTermService

    • Method Detail

      • getApplicableSubscriptionTerms

        java.util.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
      • getDefaultSubscriptionTerm

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

        java.util.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