Interface SmartHouseService


public interface SmartHouseService
  • Method Details

    • smarthouseAccountTypes

      List<SmartHouseAccountType> smarthouseAccountTypes() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • smarthouseAccountTypeGet

      SmartHouseAccountType smarthouseAccountTypeGet(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • smarthouseAccountTypeUpdate

      int smarthouseAccountTypeUpdate(SmartHouseAccountType accountType) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • smarthouseOptionGet

      SmartHouseOption smarthouseOptionGet(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • smarthouseOptionUpdate

      int smarthouseOptionUpdate(SmartHouseOption option) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • smarthouseServices

      List<IdTitle> smarthouseServices() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • npayModules

      List<IdTitle> npayModules() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • npayServices

      List<IdTitle> npayServices(int moduleId) throws ru.bitel.bgbilling.common.BGException
      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

      SmartHouseAccount smarthouseAccountGet(int id) throws ru.bitel.bgbilling.common.BGException
      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 договоров для пересчета; пустой список — все договоры с подключенным модулем smarthouse
      accountTypeIds - список id типов аккаунтов для пересчета; пустой список — аккаунты всех типов
      Throws:
      ru.bitel.bgbilling.common.BGException - если период относится к будущим месяцам