Interface TmaSubscribedProductService
- All Known Implementing Classes:
DefaultTmaSubscribedProductService
public interface TmaSubscribedProductService
Service for operations related to the
TmaSubscribedProductModel.- Since:
- 6.6
-
Method Summary
Modifier and TypeMethodDescriptioncreateNewSubscribedProduct(Date startDate, String billingSystemId, String subscriptionStatus) Creates a newTmaSubscribedProductModel.createSubscribedProduct(TmaSubscribedProductModel subscribedProductModel) Enhances the provided by setting it a generated id and persists it.voiddeleteSubscribedProduct(String billingSystemId, String billingSubscriptionId) Deletes the subscribed product for given billingSystemId and billingSubscriptionId.findSubscribedProduct(String billingSystemId, String billingSubscriptionId) Retrieves theTmaSubscribedProductModelfor given billingSystemId and billingSubscriptionId.findSubscribedProductById(String subscribedProductId) Retrieves theTmaSubscribedProductModelfor the given subscribedProductId.findSubscriptionsForPaymentMethod(String paymentMethodId) RetrieveListofTmaSubscribedProductModelidentified by given paymentMethodIdgetSubscriptionServiceEndDate(String frequencyCode, Integer duration, Date startDate) Get the Subscription Product End date .
-
Method Details
-
createSubscribedProduct
Enhances the provided by setting it a generated id and persists it.- Parameters:
subscribedProductModel- source which needs to be persisted- Returns:
- persisted source, with generated id
-
findSubscribedProduct
TmaSubscribedProductModel findSubscribedProduct(String billingSystemId, String billingSubscriptionId) Retrieves theTmaSubscribedProductModelfor given billingSystemId and billingSubscriptionId.- Parameters:
billingSystemId- the id of the billing systembillingSubscriptionId- the id of the billing subscription- Returns:
TmaSubscribedProductModelobject identified by given billingSystemId and billingSubscriptionId
-
findSubscribedProductById
Retrieves theTmaSubscribedProductModelfor the given subscribedProductId.- Parameters:
subscribedProductId- the id of the subscribed product- Returns:
TmaSubscribedProductModelobject identified by given subscribedProductId
-
deleteSubscribedProduct
Deletes the subscribed product for given billingSystemId and billingSubscriptionId.- Parameters:
billingSystemId- the id of the billing systembillingSubscriptionId- the id of the billing subscription
-
findSubscriptionsForPaymentMethod
RetrieveListofTmaSubscribedProductModelidentified by given paymentMethodId- Parameters:
paymentMethodId- The payment method ID for subscribed product- Returns:
ListofTmaSubscribedProductModelwhich has paymentMethodId
-
createNewSubscribedProduct
TmaSubscribedProductModel createNewSubscribedProduct(Date startDate, String billingSystemId, String subscriptionStatus) Creates a newTmaSubscribedProductModel.- Parameters:
startDate- subscription start datebillingSystemId- billing system identifiersubscriptionStatus- subscription status- Returns:
- the new created subscribed product
-
getSubscriptionServiceEndDate
Get the Subscription Product End date .- Parameters:
frequencyCode- Code forTermOfServiceFrequencyduration- Duration of Contract of the ServicestartDate- Start date of Contract of the Service- Returns:
- the End Date of the Service
-