public class TransactionHistoryRequest extends Object implements ITimeoutRequest, ICoreRequest
Constructor and Description |
---|
TransactionHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getBatchId()
Gets optional batch id.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
Date |
getEndDate()
Gets optional end date filter for batch history.
|
int |
getMaxResults()
Gets max results to be returned by this request.
|
String |
getOrderRef()
Gets an identifier from an external point of sale system.
|
String |
getQuery()
Gets optional search query.
|
Date |
getStartDate()
Gets optional start date filter for batch history.
|
int |
getStartIndex()
Gets starting index for results to be returned.
|
String |
getTerminalName()
Gets optional terminal name.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
String |
getTransactionRef()
Gets a user-assigned reference that can be used to recall or reverse transactions.
|
boolean |
isAsync()
Gets defers the response to the transaction and returns immediately.
|
boolean |
isForce()
Gets override any in-progress transactions.
|
boolean |
isQueue()
Gets adds the transaction to the queue and returns immediately.
|
boolean |
isTest()
Gets whether or not to route transaction to the test gateway.
|
boolean |
isWaitForRemovedCard()
Gets whether or not the request should block until all cards have been removed from
the card reader.
|
void |
setAsync(boolean value)
Sets defers the response to the transaction and returns immediately.
|
void |
setBatchId(String value)
Sets optional batch id.
|
void |
setDestinationAccount(String value)
Sets the settlement account for merchants with split settlements.
|
void |
setEndDate(Date value)
Sets optional end date filter for batch history.
|
void |
setForce(boolean value)
Sets override any in-progress transactions.
|
void |
setMaxResults(int value)
Sets max results to be returned by this request.
|
void |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
void |
setQuery(String value)
Sets optional search query.
|
void |
setQueue(boolean value)
Sets adds the transaction to the queue and returns immediately.
|
void |
setStartDate(Date value)
Sets optional start date filter for batch history.
|
void |
setStartIndex(int value)
Sets starting index for results to be returned.
|
void |
setTerminalName(String value)
Sets optional terminal name.
|
void |
setTest(boolean value)
Sets whether or not to route transaction to the test gateway.
|
void |
setTimeout(int value)
Sets the request timeout in seconds.
|
void |
setTransactionRef(String value)
Sets a user-assigned reference that can be used to recall or reverse transactions.
|
void |
setWaitForRemovedCard(boolean value)
Sets whether or not the request should block until all cards have been removed from
the card reader.
|
public void setTimeout(int value)
value
- the request timeout in seconds.public int getTimeout()
getTimeout
in interface ITimeoutRequest
public void setTest(boolean value)
value
- whether or not to route transaction to the test gateway.public boolean isTest()
isTest
in interface ITimeoutRequest
public void setTransactionRef(String value)
value
- a user-assigned reference that can be used to recall or reverse
transactions.public String getTransactionRef()
getTransactionRef
in interface ICoreRequest
public void setAsync(boolean value)
value
- defers the response to the transaction and returns immediately.
Callers should retrive the transaction result using the Transaction Status API.public boolean isAsync()
isAsync
in interface ICoreRequest
public void setQueue(boolean value)
value
- adds the transaction to the queue and returns immediately. Callers
should retrive the transaction result using the Transaction Status API.public boolean isQueue()
isQueue
in interface ICoreRequest
public void setWaitForRemovedCard(boolean value)
value
- whether or not the request should block until all cards have been
removed from the card reader.public boolean isWaitForRemovedCard()
isWaitForRemovedCard
in interface ICoreRequest
public void setForce(boolean value)
value
- override any in-progress transactions.public boolean isForce()
isForce
in interface ICoreRequest
public void setOrderRef(String value)
value
- an identifier from an external point of sale system.public String getOrderRef()
getOrderRef
in interface ICoreRequest
public void setDestinationAccount(String value)
value
- the settlement account for merchants with split settlements.public String getDestinationAccount()
getDestinationAccount
in interface ICoreRequest
public void setQuery(String value)
value
- optional search query. Will match amount, last 4 and customer name.
batchId and terminalName are not supported with this option.public String getQuery()
public void setBatchId(String value)
value
- optional batch id.public String getBatchId()
public void setTerminalName(String value)
value
- optional terminal name.public String getTerminalName()
public void setStartDate(Date value)
value
- optional start date filter for batch history.public Date getStartDate()
public void setEndDate(Date value)
value
- optional end date filter for batch history.public Date getEndDate()
public void setMaxResults(int value)
value
- max results to be returned by this request.public int getMaxResults()
public void setStartIndex(int value)
value
- starting index for results to be returned.public int getStartIndex()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.