Interface SmartHouseService
public interface SmartHouseService
-
Method Summary
Modifier and TypeMethodDescriptionnpayServices(int moduleId) voidСтавит в очередь планировщика пересчет стоимости конфигураций за период.booleansmarthouseAccountDelete(int id) smarthouseAccountGet(int id) smarthouseAccountSearch(int contractId, int contractObjectId) smarthouseAccountTypeGet(int id) intsmarthouseAccountTypeUpdate(SmartHouseAccountType accountType) intsmarthouseAccountUpdate(SmartHouseAccount smartHouseAccount) smarthouseOptionGet(int id) int
-
Method Details
-
smarthouseAccountTypes
- Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseAccountTypeGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseAccountTypeUpdate
int smarthouseAccountTypeUpdate(SmartHouseAccountType accountType) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseOptionGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseOptionUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseServices
- Throws:
ru.bitel.bgbilling.common.BGException
-
npayModules
- Throws:
ru.bitel.bgbilling.common.BGException
-
npayServices
- Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseAccountSearch
SearchResult<SmartHouseAccount> smarthouseAccountSearch(int contractId, int contractObjectId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseAccountGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseAccountUpdate
int smarthouseAccountUpdate(SmartHouseAccount smartHouseAccount) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
smarthouseAccountDelete
boolean smarthouseAccountDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
recalculateCost
void recalculateCost(Period period, List<Integer> contractIds, List<Integer> accountTypeIds) throws ru.bitel.bgbilling.common.BGException Ставит в очередь планировщика пересчет стоимости конфигураций за период. Период нормализуется до полных календарных месяцев, для каждого месяца создается отдельная задача пересчета (SmartHouseCalculatorTask).- Parameters:
period- период пересчета; границы периода приводятся к началу и концу месяцаcontractIds- список id договоров для пересчета; пустой список — все договоры с подключенным модулем smarthouseaccountTypeIds- список id типов аккаунтов для пересчета; пустой список — аккаунты всех типов- Throws:
ru.bitel.bgbilling.common.BGException- если период относится к будущим месяцам
-