Package com.adyen.model.management
Class TerminalProductPrice
- java.lang.Object
-
- com.adyen.model.management.TerminalProductPrice
-
public class TerminalProductPrice extends Object
TerminalProductPrice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTerminalProductPrice.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description TerminalProductPrice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalProductPricecurrency(String currency)booleanequals(Object o)static TerminalProductPricefromJson(String jsonString)Create an instance of TerminalProductPrice given an JSON stringStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).ObjectgetValue()Get valueinthashCode()voidsetCurrency(String currency)voidsetValue(Object value)StringtoJson()Convert an instance of TerminalProductPrice to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundTerminalProductPricevalue(Object value)
-
-
-
Field Detail
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
currency
public TerminalProductPrice currency(String currency)
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- currency
-
setCurrency
public void setCurrency(String currency)
-
value
public TerminalProductPrice value(Object value)
-
getValue
public Object getValue()
Get value- Returns:
- value
-
setValue
public void setValue(Object value)
-
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 TerminalProductPrice
-
fromJson
public static TerminalProductPrice fromJson(String jsonString) throws IOException
Create an instance of TerminalProductPrice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalProductPrice
- Throws:
IOException- if the JSON string is invalid with respect to TerminalProductPrice
-
toJson
public String toJson()
Convert an instance of TerminalProductPrice to an JSON string- Returns:
- JSON string
-
-