Interface NPayService


public interface NPayService
  • Method Details

    • precalculateAccount

      BigDecimal precalculateAccount(int contractId, int serviceSet, Date dateFrom, Date dateTo) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalAccessException
      Вычисление будущей наработки для определения рекомендуемого платежа.
      Parameters:
      contractId - ID договора.
      serviceSet - набор услуг модуля.
      dateFrom - дата начала активности договора (должна быть в одном месяце с dateTo).
      dateTo - дата окончания активности договора (должна быть в одном месяце с dateFrom).
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
      ru.bitel.bgbilling.common.BGIllegalAccessException
    • getAmountForUnlock

      BigDecimal getAmountForUnlock(int contractId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalAccessException
      Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.
      Parameters:
      contractId - ID договора.
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
      ru.bitel.bgbilling.common.BGIllegalAccessException
    • serviceObjectList

      List<ServiceObject> serviceObjectList(int contractId, int objectId, int entityModuleId, int entityId, boolean actualItemsOnly, Date actualItemsDate) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceObjectGet

      ServiceObject serviceObjectGet(int id) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceObjectUpdate

      void serviceObjectUpdate(int contractId, ServiceObject serviceObject) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceObjectChangeLog

      List<ServiceObject> serviceObjectChangeLog(int contractId, int serviceObjectId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceObjectDelete

      void serviceObjectDelete(int contractId, int serviceId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceStatusMatrixGet

      Boolean[][] serviceStatusMatrixGet(List<Integer> serviceIds, List<Integer> statusIds, boolean replaceDefaultToValue) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceStatusMatrixUpdate

      void serviceStatusMatrixUpdate(List<Integer> serviceIds, List<Integer> statusIds, Boolean[][] values) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceSetGet

      Collection<String> serviceSetGet(int parseInt) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • serviceSetList

      List<IdTitle> serviceSetList() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • configValueList

      List<ru.bitel.bgbilling.common.model.KeyValue> configValueList() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Параметры конфигурации
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • configValueUpdate

      void configValueUpdate(List<ru.bitel.bgbilling.common.model.KeyValue> keyValues) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Сохранение параметров конфигурации
      Parameters:
      keyValues -
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • accountClear

      void accountClear(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException
    • recalculatePay

      void recalculatePay(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet, boolean detail, String comment, String email) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGMessageException