Package ru.bitel.bgbilling.kernel.customer.common.service

# Interface CustomerService

public interface CustomerService

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CustomerAccount`
  `customerAccountAdd(int customerId, long account)`
  `void`
  `customerAccountDelete(int customerId, long account)`
  `List<CustomerAccount>`
  `customerAccounts(int customerId)`
  `void`
  `customerAccountSet(int customerId, int contractId, long account)`
  `String`
  `customerBankUpdate(int customerId, String text)`
  `Customer`
  `customerByAccount(long account)`
  `String`
  `customerContactUpdate(int customerId, CustomerContactType contactType, String text)`
  `List<CustomerContract>`
  `customerContracts(int customerId, LocalDateTime onTime)`
  `void`
  `customerDelete(int customerId)`
  `List<String>`
  `customerEmails(int customerId, int contractId)`
  `String`
  `customerEmployeeDelete(int customerId, String customerEmployeeUUID)`
  `List<CustomerEmployee>`
  `customerEmployeeList(int customerId)`
  `String`
  `customerEmployeeUpdate(int customerId, CustomerEmployee customerEmployee)`
  `void`
  `customerLinkSet(int contractId, int сustomerId)`
  `int`
  `customerNewSet(int contractId)`
  `String`
  `customerParameterGet(int contractId)`
  `String`
  `customerParameterHistory(int customerId, String fieldKey, int lastRecordCount)`
  `String`
  `customerParameterUpdate(int customerId, String fieldValue, String text)`
  `List<CustomerPropertyParam>`
  `customerPropertyParams(int customerId)`
  `String`
  `customerSearch(Customer.CustomerType customerType, String text)`
  Поиск клиентов
  `boolean`
  `customerUnlinkContract(int contractId, LocalDateTime unlinkTime)`
  `SearchResult<Customer>`
  `searchCustomerList(Customer.CustomerType customerType, List<ru.bitel.bgbilling.common.model.KeyValue> filters, Page page, String[] sort)`

- ## Method Details

  - ### customerEmployeeList

    List<CustomerEmployee> customerEmployeeList(int customerId) throws Exception
    Throws:
      `Exception`

  - ### customerEmployeeUpdate

    String customerEmployeeUpdate(int customerId, CustomerEmployee customerEmployee) throws Exception
    Throws:
      `Exception`

  - ### customerEmployeeDelete

    String customerEmployeeDelete(int customerId, String customerEmployeeUUID) throws Exception
    Throws:
      `Exception`

  - ### customerByAccount

    Customer customerByAccount(long account) throws Exception
    Throws:
      `Exception`

  - ### searchCustomerList

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

  - ### customerAccounts

    List<CustomerAccount> customerAccounts(int customerId) throws Exception
    Throws:
      `Exception`

  - ### customerAccountAdd

    CustomerAccount customerAccountAdd(int customerId, long account) throws Exception
    Throws:
      `Exception`

  - ### customerAccountSet

    void customerAccountSet(int customerId, int contractId, long account) throws Exception
    Throws:
      `Exception`

  - ### customerAccountDelete

    void customerAccountDelete(int customerId, long account) throws Exception
    Throws:
      `Exception`

  - ### customerParameterGet

    String customerParameterGet(int contractId) throws Exception
    Throws:
      `Exception`

  - ### customerParameterUpdate

    String customerParameterUpdate(int customerId, String fieldValue, String text) throws Exception
    Throws:
      `Exception`

  - ### customerContactUpdate

    String customerContactUpdate(int customerId, CustomerContactType contactType, String text) throws Exception
    Throws:
      `Exception`

  - ### customerBankUpdate

    String customerBankUpdate(int customerId, String text) throws Exception
    Throws:
      `Exception`

  - ### customerNewSet

    int customerNewSet(int contractId) throws Exception
    Throws:
      `Exception`

  - ### customerDelete

    void customerDelete(int customerId) throws Exception
    Throws:
      `Exception`

  - ### customerSearch

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

  - ### customerLinkSet

    void customerLinkSet(int contractId, int сustomerId) throws Exception
    Throws:
      `Exception`

  - ### customerContracts

    List<CustomerContract> customerContracts(int customerId, LocalDateTime onTime) throws Exception
    Throws:
      `Exception`

  - ### customerUnlinkContract

    boolean customerUnlinkContract(int contractId, LocalDateTime unlinkTime) throws Exception
    Throws:
      `Exception`

  - ### customerParameterHistory

    String customerParameterHistory(int customerId, String fieldKey, int lastRecordCount) throws Exception
    Throws:
      `Exception`

  - ### customerEmails

    List<String> customerEmails(int customerId, int contractId) throws Exception
    Throws:
      `Exception`

  - ### customerPropertyParams

    List<CustomerPropertyParam> customerPropertyParams(int customerId) throws Exception
    Throws:
      `Exception`