Package com.adyen.model.management
Class TerminalProductsResponse
- java.lang.Object
-
- com.adyen.model.management.TerminalProductsResponse
-
public class TerminalProductsResponse extends Object
TerminalProductsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTerminalProductsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATA
-
Constructor Summary
Constructors Constructor Description TerminalProductsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalProductsResponseaddDataItem(TerminalProduct dataItem)TerminalProductsResponsedata(List<TerminalProduct> data)booleanequals(Object o)static TerminalProductsResponsefromJson(String jsonString)Create an instance of TerminalProductsResponse given an JSON stringList<TerminalProduct>getData()Terminal products that can be ordered.inthashCode()voidsetData(List<TerminalProduct> data)StringtoJson()Convert an instance of TerminalProductsResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
data
public TerminalProductsResponse data(List<TerminalProduct> data)
-
addDataItem
public TerminalProductsResponse addDataItem(TerminalProduct dataItem)
-
getData
public List<TerminalProduct> getData()
Terminal products that can be ordered.- Returns:
- data
-
setData
public void setData(List<TerminalProduct> 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 TerminalProductsResponse
-
fromJson
public static TerminalProductsResponse fromJson(String jsonString) throws IOException
Create an instance of TerminalProductsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalProductsResponse
- Throws:
IOException- if the JSON string is invalid with respect to TerminalProductsResponse
-
toJson
public String toJson()
Convert an instance of TerminalProductsResponse to an JSON string- Returns:
- JSON string
-
-