Interface CustomerService
public interface CustomerService
-
Method Summary
Modifier and TypeMethodDescriptioncustomerAccountAdd(int customerId, long account) voidcustomerAccountDelete(int customerId, long account) customerAccounts(int customerId) voidcustomerAccountSet(int customerId, int contractId, long account) customerBankUpdate(int customerId, String text) customerByAccount(long account) customerContactUpdate(int customerId, CustomerContactType contactType, String text) customerContracts(int customerId, LocalDateTime onTime) voidcustomerDelete(int customerId) customerEmails(int customerId, int contractId) customerEmployeeDelete(int customerId, String customerEmployeeUUID) customerEmployeeList(int customerId) customerEmployeeUpdate(int customerId, CustomerEmployee customerEmployee) voidcustomerLinkSet(int contractId, int сustomerId) intcustomerNewSet(int contractId) customerParameterGet(int contractId) customerParameterHistory(int customerId, String fieldKey, int lastRecordCount) List<ru.bitel.bgbilling.kernel.customer.common.provider.CustomerParameterProviderData> Список доступных провайдеров получения параметров клиента.voidcustomerParameterProviderUpdate(ru.bitel.bgbilling.kernel.customer.common.provider.CustomerParameterProviderData provider) Редактирование данных провайдера: заголовок, включение, параметры.customerParameterUpdate(int customerId, String fieldValue, String text) customerPropertyParams(int customerId) customerSearch(Customer.CustomerType customerType, String text) Поиск клиентовbooleancustomerUnlinkContract(int contractId, LocalDateTime unlinkTime) searchCustomerList(Customer.CustomerType customerType, List<ru.bitel.bgbilling.common.model.KeyValue> filters, Page page, String[] sort) searchParameters(String data, String searchImplementation) Попытка получить данные об организации по ИНН из ФНС (Прозрачный бизнес) для проверки юр.лица и автоматического заполнения параметровvoidupdateContractParameters(int contractId, String parameters) Если настроено в конфигурации сервера, то параметры юр.лица полученные из внешней системы сохраняются в параметры договора, согласна настройка из конфигурации.
-
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
- 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
- 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
- Throws:
ru.bitel.bgbilling.common.BGException
-
customerCodeList
- Throws:
ru.bitel.bgbilling.common.BGException
-
customerDocumentTypeList
- 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
- 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:
Exceptionru.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
- 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
-