Class Amount
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Amount
-
public class Amount extends Object
Amount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAmount.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 Amount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Amountcurrency(String currency)booleanequals(Object o)static AmountfromJson(String jsonString)Create an instance of Amount given an JSON stringStringgetCurrency()The type of currency.LonggetValue()Total value of amount.inthashCode()voidsetCurrency(String currency)voidsetValue(Long value)StringtoJson()Convert an instance of Amount to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundAmountvalue(Long 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
-
getCurrency
public String getCurrency()
The type of currency. Must be EUR (or EUR equivalent)- Returns:
- currency
-
setCurrency
public void setCurrency(String currency)
-
getValue
public Long getValue()
Total value of amount. Must be >= 0- Returns:
- value
-
setValue
public void setValue(Long 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 Amount
-
fromJson
public static Amount fromJson(String jsonString) throws IOException
Create an instance of Amount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Amount
- Throws:
IOException- if the JSON string is invalid with respect to Amount
-
toJson
public String toJson()
Convert an instance of Amount to an JSON string- Returns:
- JSON string
-
-