Class NpayUtils
java.lang.Object
ru.bitel.bgbilling.modules.npay.server.utils.NpayUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalgetAmountForUnlock(Connection con, int moduleId, int contractId) Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.static BigDecimalgetAmountForUnlock(Connection con, int moduleId, int contractId, DebetStatusManageConfig config, ContractManager contractManager, ContractLabelManager contractLabelManager) Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.static BigDecimalgetServiceCost(int moduleId, int contractId, int serviceId, Date dateFrom, Date dateTo, int status) static BigDecimalprecalculateAccount(int moduleId, int serviceSet, int contractId, Date dateFrom, Date dateTo, int status) Будущая наработка для определения рекомендуемой к оплате суммы.static ServiceCostCacheprecalculateServiceCost(int moduleId, int serviceSet, int contractId, Date dateFrom, Date dateTo, int status) Будущая наработка для определения рекомендуемой к оплате суммы.
-
Constructor Details
-
NpayUtils
public NpayUtils()
-
-
Method Details
-
getAmountForUnlock
public static BigDecimal getAmountForUnlock(Connection con, int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.- Parameters:
con-moduleId-contractId-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAmountForUnlock
public static BigDecimal getAmountForUnlock(Connection con, int moduleId, int contractId, DebetStatusManageConfig config, ContractManager contractManager, ContractLabelManager contractLabelManager) throws ru.bitel.bgbilling.common.BGException Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.- Parameters:
con-moduleId-config-contractManager-contractId-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
precalculateServiceCost
public static ServiceCostCache precalculateServiceCost(int moduleId, int serviceSet, int contractId, Date dateFrom, Date dateTo, int status) throws ru.bitel.bgbilling.common.BGException Будущая наработка для определения рекомендуемой к оплате суммы.- Parameters:
moduleId- ID модуля.serviceSet- набор услуг модуля.contractId- ID договора.dateFrom- дата начала активности договора (должна быть в одном месяце с dateTo).dateTo- дата окончания активности договора (должна быть в одном месяце с dateFrom).- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
precalculateAccount
public static BigDecimal precalculateAccount(int moduleId, int serviceSet, int contractId, Date dateFrom, Date dateTo, int status) throws ru.bitel.bgbilling.common.BGException Будущая наработка для определения рекомендуемой к оплате суммы.- Parameters:
moduleId- ID модуля.serviceSet- набор услуг модуля.contractId- ID договора.dateFrom- дата начала активности договора (должна быть в одном месяце с dateTo).dateTo- дата окончания активности договора (должна быть в одном месяце с dateFrom).- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getServiceCost
public static BigDecimal getServiceCost(int moduleId, int contractId, int serviceId, Date dateFrom, Date dateTo, int status) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-