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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
addSubscriptionJob
(Subscription subscription, int moduleId, Date jobDateTime, SubscriptionDao subscriptionDao) getSubscriptionCost
(List<bitel.billing.server.tariff.TariffModuleTree> tariffModuleTrees, Date initDate, int serviceId, int contractId) List<bitel.billing.server.tariff.TariffModuleTree>
getSubscriptionTariffModuleTree
(int contractId, Date initDate, int moduleId) void
subscriptionActivate
(Subscription subscription, Date initDate, int moduleId, int userId, boolean changeBalance, SubscriptionDao subscriptionDao) void
subscriptionActivate
(Subscription subscription, Date initDate, int moduleId, int userId, SubscriptionDao subscriptionDao) void
subscriptionActivateApply
(int contractId, int subscriptionId, int serviceId, Date initDate, BigDecimal cost, PeriodWithTime newRegistrationPeriod, int moduleId, int userId, SubscriptionDao subscriptionDao, BalanceUtils balanceUtils) Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
getLogger, logError
-
Constructor Details
-
SubscriptionUtils
-
-
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
-
getSubscriptionCost
public BigDecimal getSubscriptionCost(List<bitel.billing.server.tariff.TariffModuleTree> tariffModuleTrees, Date initDate, int serviceId, int contractId)
-