Package com.adyen.model.transfers
Class TransactionSearchResponse
- java.lang.Object
-
- com.adyen.model.transfers.TransactionSearchResponse
-
public class TransactionSearchResponse extends Object
TransactionSearchResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionSearchResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_LINKS
-
Constructor Summary
Constructors Constructor Description TransactionSearchResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionSearchResponseaddDataItem(Transaction dataItem)TransactionSearchResponsedata(List<Transaction> data)booleanequals(Object o)static TransactionSearchResponsefromJson(String jsonString)Create an instance of TransactionSearchResponse given an JSON stringList<Transaction>getData()Contains the transactions that match the query parameters.LinksgetLinks()Get linksinthashCode()TransactionSearchResponselinks(Links links)voidsetData(List<Transaction> data)voidsetLinks(Links links)StringtoJson()Convert an instance of TransactionSearchResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public TransactionSearchResponse links(Links links)
-
getLinks
public Links getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(Links links)
-
data
public TransactionSearchResponse data(List<Transaction> data)
-
addDataItem
public TransactionSearchResponse addDataItem(Transaction dataItem)
-
getData
public List<Transaction> getData()
Contains the transactions that match the query parameters.- Returns:
- data
-
setData
public void setData(List<Transaction> data)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to TransactionSearchResponse
-
fromJson
public static TransactionSearchResponse fromJson(String jsonString) throws IOException
Create an instance of TransactionSearchResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionSearchResponse
- Throws:
IOException- if the JSON string is invalid with respect to TransactionSearchResponse
-
toJson
public String toJson()
Convert an instance of TransactionSearchResponse to an JSON string- Returns:
- JSON string
-
-