Class ContractUtils
java.lang.Object
ru.bitel.bgbilling.kernel.contract.api.server.bean.ContractUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcheckPassword(ParameterMap setup, String pswd1, String pswd2) static StringgetCustomerAddress(Connection connection, int moduleId, int contractId) static StringgetPaymentEmail(Connection connection, int moduleId, int contractId) static StringgetPaymentPhone(Connection connection, int moduleId, int contractId) static StringgetX(Connection connection, int moduleId, int contractId, String key) static StringsaveCustomerAddress(Connection connection, int moduleId, int contractId, String customerAddress) static StringsaveCustomerEmail(Connection connection, int moduleId, int contractId, String customerEmail) static StringsavePaymentEmail(Connection connection, int moduleId, int contractId, String paymentEmail) static StringsavePaymentPhone(Connection connection, int moduleId, int contractId, String paymentPhone) сохраняет "payment.phone" для модуля/договора и возвращает его же обратноstatic StringsaveX(Connection connection, int moduleId, int contractId, String key, String value) Сохраняет значение в ContractModuleConfigDao.
-
Constructor Details
-
ContractUtils
public ContractUtils()
-
-
Method Details
-
getCustomerAddress
public static String getCustomerAddress(Connection connection, int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
checkPassword
-
saveCustomerAddress
public static String saveCustomerAddress(Connection connection, int moduleId, int contractId, String customerAddress) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
saveCustomerEmail
public static String saveCustomerEmail(Connection connection, int moduleId, int contractId, String customerEmail) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
savePaymentEmail
public static String savePaymentEmail(Connection connection, int moduleId, int contractId, String paymentEmail) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
savePaymentPhone
public static String savePaymentPhone(Connection connection, int moduleId, int contractId, String paymentPhone) throws ru.bitel.bgbilling.common.BGException сохраняет "payment.phone" для модуля/договора и возвращает его же обратно- Throws:
ru.bitel.bgbilling.common.BGException
-
saveX
public static String saveX(Connection connection, int moduleId, int contractId, String key, String value) throws ru.bitel.bgbilling.common.BGException Сохраняет значение в ContractModuleConfigDao. Если null то удаляет. Возвращает само значение в неизменном виде- Throws:
ru.bitel.bgbilling.common.BGException
-
getPaymentEmail
public static String getPaymentEmail(Connection connection, int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getPaymentPhone
public static String getPaymentPhone(Connection connection, int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getX
public static String getX(Connection connection, int moduleId, int contractId, String key) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-