Class SubscriptionUtils

java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.modules.subscription.server.bean.SubscriptionUtils

public class SubscriptionUtils extends ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
  • Constructor Details

    • SubscriptionUtils

      public SubscriptionUtils(Connection con)
  • Method Details

    • subscriptionActivate

      public void subscriptionActivate(Subscription subscription, Date initDate, int moduleId, int userId, SubscriptionDao subscriptionDao) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • subscriptionActivate

      public void subscriptionActivate(Subscription subscription, Date initDate, int moduleId, int userId, boolean changeBalance, SubscriptionDao subscriptionDao) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • addSubscriptionJob

      public long addSubscriptionJob(Subscription subscription, int moduleId, Date jobDateTime, SubscriptionDao subscriptionDao) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • subscriptionActivateApply

      public void subscriptionActivateApply(int contractId, int subscriptionId, int serviceId, Date initDate, BigDecimal cost, PeriodWithTime newRegistrationPeriod, int moduleId, int userId, SubscriptionDao subscriptionDao, BalanceUtils balanceUtils) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getSubscriptionTariffModuleTree

      public List<bitel.billing.server.tariff.TariffModuleTree> getSubscriptionTariffModuleTree(int contractId, Date initDate, int moduleId)
    • getSubscriptionCost

      public BigDecimal getSubscriptionCost(List<bitel.billing.server.tariff.TariffModuleTree> tariffModuleTrees, Date initDate, int serviceId, int contractId)