public class TransactionManager extends AbstractTransactionManager<Transaction>
fields, moduleSetup
Constructor and Description |
---|
TransactionManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
Payment |
addPayment(int contractId,
int paymentTypeId,
java.math.BigDecimal sum,
java.lang.String comment) |
org.json.JSONObject |
directPaymentComplete(java.lang.String serverURL,
java.lang.String accessToken,
java.lang.String merchantId,
Transaction transaction,
java.lang.String secret) |
Transaction |
directPaymentInit(java.lang.String serverURL,
java.lang.String accessToken,
java.lang.String merchantId,
java.lang.String description,
java.math.BigDecimal sum,
java.lang.String secret,
int contractId) |
static java.lang.String |
doSign(java.lang.String body,
java.lang.String iat,
java.lang.String secret) |
protected Transaction |
getFromRS(java.sql.ResultSet rs) |
static java.util.Map<java.lang.String,java.lang.String> |
getToken(java.lang.String serverURL,
java.lang.String tokenCode,
java.lang.String clientId,
java.lang.String redirectUri,
java.lang.String secret) |
Transaction |
getTransaction(int id)
Получение транзакции по ее коду
|
java.util.List<Transaction> |
getTransactionList(int contractId,
java.util.Date fromDate,
java.util.Date toDate)
Получение общего списка транзакций, в зависимости от подаваемых в фильтр условий
|
void |
searchTransactionList(SearchResult<Transaction> searchResult,
int paymasterId,
int contractId) |
void |
searchTransactionList(SearchResult<Transaction> searchResult,
int paymasterId,
int contractId,
java.lang.String status) |
protected void |
updateImpl(Transaction transaction)
Добавление/Обновление данных транзакции в базе.
|
doConnection, doConnection, getParameter, psStatus, queryStatus, searchTransaction, searchTransaction, setConnectionTimeout, setParameter
delete, get, getAndDelete, getAndUpdate
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update
public TransactionManager(java.sql.Connection con, int moduleId)
public void searchTransactionList(SearchResult<Transaction> searchResult, int paymasterId, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchTransactionList(SearchResult<Transaction> searchResult, int paymasterId, int contractId, java.lang.String status) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Transaction> getTransactionList(int contractId, java.util.Date fromDate, java.util.Date toDate) throws ru.bitel.bgbilling.common.BGException
fromDate
- от какой даты смотреть транзакцииtoDate
- по какую дату смотреть транзакцииru.bitel.bgbilling.common.BGException
public Transaction getTransaction(int id) throws ru.bitel.bgbilling.common.BGException
transactionId
- код транзакцииru.bitel.bgbilling.common.BGException
public static java.util.Map<java.lang.String,java.lang.String> getToken(java.lang.String serverURL, java.lang.String tokenCode, java.lang.String clientId, java.lang.String redirectUri, java.lang.String secret)
public Transaction directPaymentInit(java.lang.String serverURL, java.lang.String accessToken, java.lang.String merchantId, java.lang.String description, java.math.BigDecimal sum, java.lang.String secret, int contractId)
public org.json.JSONObject directPaymentComplete(java.lang.String serverURL, java.lang.String accessToken, java.lang.String merchantId, Transaction transaction, java.lang.String secret)
public static java.lang.String doSign(java.lang.String body, java.lang.String iat, java.lang.String secret)
public Payment addPayment(int contractId, int paymentTypeId, java.math.BigDecimal sum, java.lang.String comment)
protected void updateImpl(Transaction transaction) throws ru.bitel.bgbilling.common.BGException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Transaction>
transaction
- обновляемая транзакцияru.bitel.bgbilling.common.BGException
protected Transaction getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<Transaction>
java.sql.SQLException