Interface TmaSubscriptionTermService
- All Known Implementing Classes:
DefaultTmaSubscriptionTermService
public interface TmaSubscriptionTermService
Service for operations related to the
SubscriptionTermModel.- Since:
- 6.7
-
Method Summary
Modifier and TypeMethodDescriptionReturns all subscription terms.getApplicableSubscriptionTerms(TmaProductOfferingModel spo, TmaBundledProductOfferingModel bpo, TmaProcessType processType) Returns all subscription terms found in the price plans configured on given spo and bpo.Determines default subscription term.ReturnsSubscriptionTermModelcorresponding to the given id.getSubscriptionTermsFor(DiscountRowModel discountRow) Returns the subscription terms configured on the given discount row if there are any, otherwise it returns all existing subscription termsgetSubscriptionTermsFor(PriceRowModel priceRow) Returns the subscription terms configured on the given price row if there are any, otherwise it returns all existing subscription terms
-
Method Details
-
getAllSubscriptionTerms
List<SubscriptionTermModel> getAllSubscriptionTerms()Returns all subscription terms.- Returns:
ListofSubscriptionTermModel
-
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 offeringbpo- bundled product offeringprocessType- the process type for which price plans will be considered- Returns:
SetofSubscriptionTermModel
-
getSubscriptionTerm
ReturnsSubscriptionTermModelcorresponding to the given id.- Parameters:
id- subscription term unique id- Returns:
SubscriptionTermModelfound or null in case of no object model is found
-
getDefaultSubscriptionTerm
SubscriptionTermModel getDefaultSubscriptionTerm()Determines default subscription term.- Returns:
- the default subscription term configured
-
getSubscriptionTermsFor
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
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
-