public class TransactionManager extends AbstractTransactionManager<Transaction>
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
fields |
logger, moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
void |
carryOutPayment(Transaction transaction)
Deprecated.
|
void |
deleteTransaction(int id)
Удаление платежа-транзакции из лога.
|
void |
doCheckRequest(java.lang.String objectId) |
java.lang.String |
doPaymentRequest(java.lang.String data,
java.lang.String idempotenceKey) |
void |
doTransaction(java.lang.String yandexId,
java.lang.String status,
java.math.BigDecimal sum,
org.json.JSONObject resultJsonObject) |
java.lang.String |
formatComment(java.lang.String pattern,
Transaction transaction)
Форматируем камент из шаблона.
|
java.util.List<java.lang.String> |
getCheckIds(int intervalMinute) |
int |
getFirstYear(int cid)
Возвращает год, с которого были платежи для этого договора.
|
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
org.json.JSONObject |
getPaymentRequestJSON(java.math.BigDecimal sum,
int contractId,
java.lang.String contractTitle) |
Transaction |
getTransactionByYandexId(java.lang.String yandexId) |
Transaction |
getTransactionForInvoice(long invoiceId)
Возвращает транзакцию по ид_транзакции платёжной системы.
|
void |
searchTransactionList(SearchResult<Transaction> searchResult,
int contractId,
java.lang.String contractTitle) |
protected void |
setConnectionTimeout(javax.net.ssl.HttpsURLConnection connection) |
protected void |
updateImpl(Transaction transaction) |
void |
updateTransaction(Transaction transaction) |
doConnection, doConnection, psStatus, queryStatus, searchTransaction, searchTransaction
delete, get, getAndDelete, getAndUpdate
public TransactionManager(java.sql.Connection con, int moduleId)
public void searchTransactionList(SearchResult<Transaction> searchResult, int contractId, java.lang.String contractTitle) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<java.lang.String> getCheckIds(int intervalMinute) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Transaction getTransactionForInvoice(long invoiceId) throws ru.bitel.bgbilling.common.BGException
invoiceId
- одноимённый параметр.ru.bitel.bgbilling.common.BGException
public Transaction getTransactionByYandexId(java.lang.String yandexId) throws ru.bitel.bgbilling.common.BGException
yandexId
- - код( например 22e12f66-000f-5000-8000-18db351245c7 )ru.bitel.bgbilling.common.BGException
public int getFirstYear(int cid) throws ru.bitel.bgbilling.common.BGException
cid
- контракт_идru.bitel.bgbilling.common.BGException
public void deleteTransaction(int id) throws ru.bitel.bgbilling.common.BGException
id
- ид платежа в таблице yamoney_transactions_$mid.ru.bitel.bgbilling.common.BGException
public void updateTransaction(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
@Deprecated public void carryOutPayment(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
transaction
- транзакция, проверенная на нужность добавленияru.bitel.bgbilling.common.BGException
public java.lang.String formatComment(java.lang.String pattern, Transaction transaction)
pattern
- шаблонtransaction
- платёж-транзакцияprotected Transaction getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<Transaction>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(Transaction transaction) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Transaction>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
protected void setConnectionTimeout(javax.net.ssl.HttpsURLConnection connection)
setConnectionTimeout
in class AbstractTransactionManager<Transaction>
public org.json.JSONObject getPaymentRequestJSON(java.math.BigDecimal sum, int contractId, java.lang.String contractTitle)
public java.lang.String doPaymentRequest(java.lang.String data, java.lang.String idempotenceKey)
public void doCheckRequest(java.lang.String objectId)
public void doTransaction(java.lang.String yandexId, java.lang.String status, java.math.BigDecimal sum, org.json.JSONObject resultJsonObject)