public class SubscriptionUtils
extends java.lang.Object
Constructor and Description |
---|
SubscriptionUtils(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
long |
addSubscriptionJob(Subscription subscription,
int moduleId,
java.util.Date jobDateTime,
SubscriptionDao subscriptionDao) |
java.math.BigDecimal |
getSubscriptionCost(java.util.List<bitel.billing.server.tariff.TariffModuleTree> tariffModuleTrees,
java.util.Date initDate,
int serviceId,
int contractId) |
java.util.List<bitel.billing.server.tariff.TariffModuleTree> |
getSubscriptionTariffModuleTree(int contractId,
java.util.Date initDate,
int moduleId) |
void |
subscriptionActivate(Subscription subscription,
java.util.Date initDate,
int moduleId,
int userId,
boolean changeBalance,
SubscriptionDao subscriptionDao) |
void |
subscriptionActivate(Subscription subscription,
java.util.Date initDate,
int moduleId,
int userId,
SubscriptionDao subscriptionDao) |
void |
subscriptionActivateApply(int contractId,
int subscriptionId,
int serviceId,
java.util.Date initDate,
java.math.BigDecimal cost,
PeriodWithTime newRegistrationPeriod,
int moduleId,
int userId,
SubscriptionDao subscriptionDao,
BalanceUtils balanceUtils) |
public void subscriptionActivate(Subscription subscription, java.util.Date initDate, int moduleId, int userId, SubscriptionDao subscriptionDao) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void subscriptionActivate(Subscription subscription, java.util.Date initDate, int moduleId, int userId, boolean changeBalance, SubscriptionDao subscriptionDao) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public long addSubscriptionJob(Subscription subscription, int moduleId, java.util.Date jobDateTime, SubscriptionDao subscriptionDao) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void subscriptionActivateApply(int contractId, int subscriptionId, int serviceId, java.util.Date initDate, java.math.BigDecimal cost, PeriodWithTime newRegistrationPeriod, int moduleId, int userId, SubscriptionDao subscriptionDao, BalanceUtils balanceUtils) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<bitel.billing.server.tariff.TariffModuleTree> getSubscriptionTariffModuleTree(int contractId, java.util.Date initDate, int moduleId)
public java.math.BigDecimal getSubscriptionCost(java.util.List<bitel.billing.server.tariff.TariffModuleTree> tariffModuleTrees, java.util.Date initDate, int serviceId, int contractId)