Package com.adyen.model.checkout
Class Amounts
- java.lang.Object
-
- com.adyen.model.checkout.Amounts
-
public class Amounts extends Object
Amounts
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_VALUES
-
Constructor Summary
Constructors Constructor Description Amounts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AmountsaddValuesItem(Long valuesItem)Amountscurrency(String currency)booleanequals(Object o)Return true if this Amounts object is equal to o.static AmountsfromJson(String jsonString)Create an instance of Amounts given an JSON stringStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).List<Long>getValues()The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).inthashCode()voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).voidsetValues(List<Long> values)The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).StringtoJson()Convert an instance of Amounts to an JSON stringStringtoString()Amountsvalues(List<Long> values)
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUES
public static final String JSON_PROPERTY_VALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).- Parameters:
currency-
-
getValues
public List<Long> getValues()
The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).- Returns:
- values
-
setValues
public void setValues(List<Long> values)
The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).- Parameters:
values-
-
equals
public boolean equals(Object o)
Return true if this Amounts object is equal to o.
-
fromJson
public static Amounts fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Amounts given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Amounts
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Amounts
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Amounts to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-