Interface NPayService


public interface NPayService
  • Method Details

    • precalculateAccount

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

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

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

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

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

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

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

      void serviceObjectMove(int id, int contractId, int contractIdTo) throws ru.bitel.bgbilling.common.BGException
      Перенос абонплаты на другой договор.
      Parameters:
      id - ID абонплаты.
      contractId - ID договора, с которого переносится абонплата.
      contractIdTo - ID договора, на который переносится абонплата.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • serviceObjectWrap

      void serviceObjectWrap(int id, int contractId, int contractIdTo, Date dateFrom) throws ru.bitel.bgbilling.common.BGException
      Перенос абонплаты на другой договор с даты (разрыв).
      Parameters:
      id - ID абонплаты.
      contractId - ID договора, с которого переносится абонплата.
      contractIdTo - ID договора, на который переносится абонплата.
      dateFrom - дата, с которой переносится абонплата.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • serviceObjectGroupOperation

      void serviceObjectGroupOperation(String type, List<Integer> contractIds, List<Integer> serviceIds, BigDecimal amount, Date dateFrom, Date dateTo) throws ru.bitel.bgbilling.common.BGException
      Групповая операция над абонплатами: добавление (add) или прерывание (wrap).
      Parameters:
      type - тип операции: "add" - добавление, "wrap" - прерывание.
      contractIds - ID договоров, к которым применяется операция.
      serviceIds - ID услуг (абонплат), к которым применяется операция.
      amount - количество (только для type = "add").
      dateFrom - дата начала (только для type = "add" обязательна).
      dateTo - дата окончания (опционально).
      Throws:
      ru.bitel.bgbilling.common.BGException
    • serviceStatusMatrixGet

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

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

      List<Integer> serviceSetGet(int parseInt) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • serviceSetList

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

      List<IdTitle> moduleAccountList() throws ru.bitel.bgbilling.common.BGException
      Список наборов для дебитовых договоров (модульные набор аккаунтов).
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
    • moduleAmountList

      List<IdTitle> moduleAmountList() throws ru.bitel.bgbilling.common.BGException
      Список наборов для тарифов (модульные наборы услуг).
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
    • configValueList

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

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

      void accountClear(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • 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
      Throws:
      ru.bitel.bgbilling.common.BGException