Interface CustomerService


public interface CustomerService
  • Method Details

    • customerEmployeeList

      List<CustomerEmployee> customerEmployeeList(int customerId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerEmployeeUpdate

      String customerEmployeeUpdate(int customerId, CustomerEmployee customerEmployee) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerEmployeeDelete

      String customerEmployeeDelete(int customerId, String customerEmployeeUUID) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerByAccount

      Customer customerByAccount(long account) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • searchCustomerList

      SearchResult<Customer> searchCustomerList(Customer.CustomerType customerType, List<ru.bitel.bgbilling.common.model.KeyValue> filters, Page page, String[] sort) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerAccounts

      List<CustomerAccount> customerAccounts(int customerId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerAccountAdd

      CustomerAccount customerAccountAdd(int customerId, long account) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerAccountSet

      void customerAccountSet(int customerId, int contractId, long account) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerAccountDelete

      void customerAccountDelete(int customerId, long account) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerParameterGet

      String customerParameterGet(int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerCodeList

      List<CustomerCode> customerCodeList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerDocumentTypeList

      List<CustomerDocumentType> customerDocumentTypeList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerParameterUpdate

      String customerParameterUpdate(int customerId, String fieldValue, String text) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerContactUpdate

      String customerContactUpdate(int customerId, CustomerContactType contactType, String text) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerBankUpdate

      String customerBankUpdate(int customerId, String text) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerNewSet

      int customerNewSet(int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerDelete

      void customerDelete(int customerId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerSearch

      String customerSearch(Customer.CustomerType customerType, String text) throws ru.bitel.bgbilling.common.BGException
      Поиск клиентов
      Parameters:
      customerType -
           true - ищем юр. лиц
           false - ищем физ. лиц
      text -
      строка поиска, в зависимости от содержимого строки и значения параметра uPerson ищет по ИНН, серии и номеру паспорта, огрн, названию, дате рождения и дате выдачи паспорта
      Returns:
      json array
      Throws:
      Exception
      ru.bitel.bgbilling.common.BGException
    • customerLinkSet

      void customerLinkSet(int contractId, int сustomerId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerContracts

      List<CustomerContract> customerContracts(int customerId, LocalDateTime onTime) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerUnlinkContract

      boolean customerUnlinkContract(int contractId, LocalDateTime unlinkTime) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerParameterHistory

      String customerParameterHistory(int customerId, String fieldKey, int lastRecordCount) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerEmails

      List<String> customerEmails(int customerId, int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerPropertyParams

      List<CustomerPropertyParam> customerPropertyParams(int customerId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • searchParameters

      String searchParameters(String data, String searchImplementation) throws ru.bitel.bgbilling.common.BGException
      Попытка получить данные об организации по ИНН из ФНС (Прозрачный бизнес) для проверки юр.лица и автоматического заполнения параметров
      Parameters:
      data - ИНН или ОГРН
      Returns:
      JSON. Полученные данные от ФНС только те, что могут быть использованы в параметрах договора
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getParametersSearchImplementation

      List<String> getParametersSearchImplementation() throws ru.bitel.bgbilling.common.BGException
      Returns:
      список провайдеров (реализаций поиска параметров в сторонних системах), включенных в справочнике "Клиенты: Провайдеры данных"
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateContractParameters

      void updateContractParameters(int contractId, String parameters) throws ru.bitel.bgbilling.common.BGException
      Если настроено в конфигурации сервера, то параметры юр.лица полученные из внешней системы сохраняются в параметры договора, согласна настройка из конфигурации.
      Parameters:
      contractId - ID договора
      parameters - все данные полученные из внешней системы
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerParameterProviderList

      List<ru.bitel.bgbilling.kernel.customer.common.provider.CustomerParameterProviderData> customerParameterProviderList() throws ru.bitel.bgbilling.common.BGException
      Список доступных провайдеров получения параметров клиента. Настройки провайдера (включение, заголовок, параметры) читаются из БД.
      Returns:
      список провайдеров
      Throws:
      ru.bitel.bgbilling.common.BGException
    • customerParameterProviderUpdate

      void customerParameterProviderUpdate(ru.bitel.bgbilling.kernel.customer.common.provider.CustomerParameterProviderData provider) throws ru.bitel.bgbilling.common.BGException
      Редактирование данных провайдера: заголовок, включение, параметры. Настройки сохраняются в БД.
      Parameters:
      provider - данные провайдера
      Throws:
      ru.bitel.bgbilling.common.BGException