Package com.avoka.tm.query
Class PaymentLogQuery
java.lang.Object
com.avoka.tm.query.PaymentLogQuery
Provides a payment log object query class.
Examples
Please find the payment log examples about list, get first and count below.
Payment Log List Example
This Groovy example shows how to list payment logs matching certain criteria.
import com.avoka.tm.query.* import com.avoka.tm.vo.* List<PaymentLog> paymentLogs = new PaymentLogQuery() .setClientCode("maguire") .setFetchLimit(150) .addOrderByDesc("id") .listValues() // In JSON format String paymentLog = new PaymentLogQuery() .setClientCode("maguire") .setFetchLimit(150) .addOrderByDesc("id") .listJson() int paymentLogCount = new PaymentLogQuery() .setClientCode("maguire") .count()
- Since:
- 19.5.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOrderByAsc
(String orderProperty) Add the sort order by ascending to the query.addOrderByDesc
(String orderProperty) Add the sort order by descending to the query.int
count()
Execute a select count query and return the total number of records selected by the query.Execute the query and return the first payment log JSON value.Execute the query and return the first payment log value object for the query.listJson()
Execute the query and return a payment log JSON array list.Execute the transaction query and return a list of PaymentLog value objects.setBatchNo
(Integer drBatchNo) Set the digital response batch number query parameter.setClientCode
(String clientCode) Set the client code type query parameter.setDoAmount
(Integer doAmount) Set the digital order amount in cents query parameter.setDoTimestamp
(Date doTimestamp) Set the digital order timestamp query parameter.setDrAmount
(Integer drAmount) Set the digital response amount query parameter.setDrReceiptNo
(String drReceiptNo) Set the digital response receipt number query parameter.setDrTimestamp
(Date drTimestamp) Set the digital response timestamp query parameter.setFetchLimit
(int fetchLimit) Set the query fetch limit to limit the maximum number of records returned.Set the payment log id (PK) query parameter.setMaxDoAmount
(Integer maxDoAmount) Set the max digital order amount in cents query parameter.setMaxDoTimestamp
(Date maxDoTimestamp) Set the max digital order timestamp query parameter.setMaxDrTimestamp
(Date maxDrTimestamp) Set the max digital response timestamp query parameter.setMinDoAmount
(Integer minDoAmount) Set the min digital order amount in cents query parameter.setMinDoTimestamp
(Date minDoTimestamp) Set the min digital order timestamp query parameter.setMinDrTimestamp
(Date minDrTimestamp) Set the min digital response timestamp query parameter.setPaymentLogKey
(String paymentLogKey) Set the payment log key query parameter.setPaymentServiceCode
(String paymentServiceCode) Set the payment service code query parameter.setPaymentStatus
(String paymentStatus) Set the payment status query parameter.Set the txn id query parameter.setTxnReceiptNumber
(String txnReceiptNumber) Set the txn receipt number query parameter.setTxnTrackingCode
(String txnTrackingCode) Set the txn tracking code query parameter.
-
Constructor Details
-
PaymentLogQuery
-
-
Method Details
-
setId
Set the payment log id (PK) query parameter.- Parameters:
id
- the payment log id (PK) query parameter- Returns:
- the payment log query
-
setBatchNo
Set the digital response batch number query parameter.- Parameters:
drBatchNo
- the digital response batch number parameter (required)- Returns:
- the payment log query
-
setClientCode
Set the client code type query parameter.- Parameters:
clientCode
- the client code parameter (required)- Returns:
- the payment log query
-
setDoAmount
Set the digital order amount in cents query parameter.- Parameters:
doAmount
- the digital order amount in cents query parameter (required)- Returns:
- the payment log query
-
setMaxDoAmount
Set the max digital order amount in cents query parameter.- Parameters:
maxDoAmount
- the max digital order amount in cents query parameter (required)- Returns:
- the payment log query
-
setMinDoAmount
Set the min digital order amount in cents query parameter.- Parameters:
minDoAmount
- the min digital order amount in cents query parameter (required)- Returns:
- the payment log query
-
setDoTimestamp
Set the digital order timestamp query parameter.- Parameters:
doTimestamp
- the digital order timestamp query parameter (required)- Returns:
- the payment log query
-
setMaxDoTimestamp
Set the max digital order timestamp query parameter.- Parameters:
maxDoTimestamp
- the max digital order timestamp query parameter (required)- Returns:
- the payment log query
-
setMinDoTimestamp
Set the min digital order timestamp query parameter.- Parameters:
minDoTimestamp
- the min digital order timestamp query parameter (required)- Returns:
- the payment log query
-
setDrAmount
Set the digital response amount query parameter.- Parameters:
drAmount
- the digital response amount parameter (required)- Returns:
- the payment log query
-
setDrReceiptNo
Set the digital response receipt number query parameter.- Parameters:
drReceiptNo
- the digital response receipt number query parameter (required)- Returns:
- the payment log query
-
setDrTimestamp
Set the digital response timestamp query parameter.- Parameters:
drTimestamp
- the digital response timestamp query parameter (required)- Returns:
- the payment log query
-
setMaxDrTimestamp
Set the max digital response timestamp query parameter.- Parameters:
maxDrTimestamp
- the max digital response timestamp query parameter (required)- Returns:
- the payment log query
-
setMinDrTimestamp
Set the min digital response timestamp query parameter.- Parameters:
minDrTimestamp
- the min digital response timestamp query parameter (required)- Returns:
- the payment log query
-
setPaymentServiceCode
Set the payment service code query parameter.- Parameters:
paymentServiceCode
- the payment service code parameter (required)- Returns:
- the payment log query
-
setPaymentLogKey
Set the payment log key query parameter.- Parameters:
paymentLogKey
- the payment log key parameter (required)- Returns:
- the payment log query
-
setPaymentStatus
Set the payment status query parameter.- Parameters:
paymentStatus
- the payment status query parameter (required)- Returns:
- the payment log query
-
setTxnId
Set the txn id query parameter.- Parameters:
txnId
- the txn id query parameter (required)- Returns:
- the payment log query
-
setTxnReceiptNumber
Set the txn receipt number query parameter.- Parameters:
txnReceiptNumber
- the txn receipt number query parameter (required)- Returns:
- the payment log query
-
setTxnTrackingCode
Set the txn tracking code query parameter.- Parameters:
txnTrackingCode
- the txn tracking code query parameter (required)- Returns:
- the payment log query
-
setFetchLimit
Set the query fetch limit to limit the maximum number of records returned. The default query fetch limit is 100 records. The maximum fetch limit is 10,000 records.- Parameters:
fetchLimit
- the query fetch limit- Returns:
- the payment log query
-
addOrderByAsc
Add the sort order by ascending to the query.- Parameters:
orderProperty
- the property to sort by (required)- Returns:
- the payment log query
-
addOrderByDesc
Add the sort order by descending to the query.- Parameters:
orderProperty
- the property to sort by (required)- Returns:
- the payment log query
-
count
public int count()Execute a select count query and return the total number of records selected by the query. Does not support count queries with more than one property.- Returns:
- the total number of records selected by the query
-
listValues
Execute the transaction query and return a list of PaymentLog value objects. Can result in less records returned than defined by the fetch limit.- Returns:
- execute the payment log query and return a list of PaymentLog value objects
-
listJson
Execute the query and return a payment log JSON array list.- Returns:
- execute the query and return a payment log JSON array list
-
firstValue
Execute the query and return the first payment log value object for the query.- Returns:
- execute the query and return the first payment log value object for the query
-
firstJson
Execute the query and return the first payment log JSON value.- Returns:
- execute the query and return the first payment log JSON value
-