Interface TmaSubscribedProductService

All Known Implementing Classes:
DefaultTmaSubscribedProductService

public interface TmaSubscribedProductService
Service for operations related to the TmaSubscribedProductModel.
Since:
6.6
  • Method Details

    • createSubscribedProduct

      TmaSubscribedProductModel createSubscribedProduct(TmaSubscribedProductModel subscribedProductModel)
      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 the TmaSubscribedProductModel for given billingSystemId and billingSubscriptionId.
      Parameters:
      billingSystemId - the id of the billing system
      billingSubscriptionId - the id of the billing subscription
      Returns:
      TmaSubscribedProductModel object identified by given billingSystemId and billingSubscriptionId
    • findSubscribedProductById

      TmaSubscribedProductModel findSubscribedProductById(String subscribedProductId)
      Retrieves the TmaSubscribedProductModel for the given subscribedProductId.
      Parameters:
      subscribedProductId - the id of the subscribed product
      Returns:
      TmaSubscribedProductModel object identified by given subscribedProductId
    • deleteSubscribedProduct

      void deleteSubscribedProduct(String billingSystemId, String billingSubscriptionId)
      Deletes the subscribed product for given billingSystemId and billingSubscriptionId.
      Parameters:
      billingSystemId - the id of the billing system
      billingSubscriptionId - the id of the billing subscription
    • findSubscriptionsForPaymentMethod

      List<TmaSubscribedProductModel> findSubscriptionsForPaymentMethod(String paymentMethodId)
      Retrieve List of TmaSubscribedProductModel identified by given paymentMethodId
      Parameters:
      paymentMethodId - The payment method ID for subscribed product
      Returns:
      List of TmaSubscribedProductModel which has paymentMethodId
    • createNewSubscribedProduct

      TmaSubscribedProductModel createNewSubscribedProduct(Date startDate, String billingSystemId, String subscriptionStatus)
      Parameters:
      startDate - subscription start date
      billingSystemId - billing system identifier
      subscriptionStatus - subscription status
      Returns:
      the new created subscribed product
    • getSubscriptionServiceEndDate

      Date getSubscriptionServiceEndDate(String frequencyCode, Integer duration, Date startDate)
      Get the Subscription Product End date .
      Parameters:
      frequencyCode - Code for TermOfServiceFrequency
      duration - Duration of Contract of the Service
      startDate - Start date of Contract of the Service
      Returns:
      the End Date of the Service