Class RuntelManager
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.modules.runtel.server.bean.RuntelManager
public class RuntelManager
extends ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
appendContract
(int customerId, String contractTitle, String pbxDomain, LocalDate dateFrom, String status, String email, int hostId) int
appendContractAnnex
(int contractId, int tariffId, String name, Period period, String status, Map<String, Integer> services) int
appendContractAnnexRow
(int contractAnnexId, String tariffId, int count) int
appendCustomer
(int customerId, String customerTitle, String customerBrand, String city, String status) boolean
deleteContract
(int contractId) boolean
deleteContractAnnex
(int contractAnnexId) boolean
deleteContractAnnexRow
(int contractAnnexRowId) boolean
deleteCustomer
(int customerId) SearchResult<org.json.JSONObject>
getContractAnnexList
(int contractId, LocalDate dateFrom) SearchResult<org.json.JSONObject>
getContractAnnexRowList
(int contractAnnexId, LocalDate dateFrom) SearchResult<org.json.JSONObject>
getContractList
(int customerId, LocalDate dateFrom) SearchResult<org.json.JSONObject>
getCustomerList
(String name, String status) static org.json.JSONObject
getResponse
(ru.bitel.bgbilling.modules.runtel.server.servlet.ModuleExecutor.Action action) getToken()
boolean
syncData
(List<RunTelContract> contracts, Map<Integer, RunTelTariff> tariffs, String token) int
updateContract
(int contractId, LocalDate dateTo, String status) int
updateContractAnnex
(int contractId, LocalDate dateTo, String status) int
updateContractAnnexRow
(int contractAnnexRowId, int count) int
updateCustomer
(int customerId, String customerTitle) Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
getLogger, logError
-
Constructor Details
-
RuntelManager
public RuntelManager(int moduleId)
-
-
Method Details
-
getToken
-
getCustomerList
-
appendCustomer
-
updateCustomer
-
deleteCustomer
public boolean deleteCustomer(int customerId) -
getContractList
-
appendContract
-
updateContract
-
deleteContract
public boolean deleteContract(int contractId) -
getContractAnnexList
-
appendContractAnnex
-
updateContractAnnex
-
deleteContractAnnex
public boolean deleteContractAnnex(int contractAnnexId) -
getContractAnnexRowList
public SearchResult<org.json.JSONObject> getContractAnnexRowList(int contractAnnexId, LocalDate dateFrom) -
appendContractAnnexRow
-
updateContractAnnexRow
public int updateContractAnnexRow(int contractAnnexRowId, int count) -
deleteContractAnnexRow
public boolean deleteContractAnnexRow(int contractAnnexRowId) -
syncData
public boolean syncData(List<RunTelContract> contracts, Map<Integer, RunTelTariff> tariffs, String token) -
getResponse
public static org.json.JSONObject getResponse(ru.bitel.bgbilling.modules.runtel.server.servlet.ModuleExecutor.Action action)
-