Package com.adyen.model.management
Class TerminalProductPrice
- java.lang.Object
-
- com.adyen.model.management.TerminalProductPrice
-
public class TerminalProductPrice extends Object
TerminalProductPrice
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_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)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).booleanequals(Object o)Return true if this TerminalProductPrice object is equal to 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).DoublegetValue()The price of the item.inthashCode()voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).voidsetValue(Double value)The price of the item.StringtoJson()Convert an instance of TerminalProductPrice to an JSON stringStringtoString()TerminalProductPricevalue(Double value)The price of the item.
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
currency
public TerminalProductPrice currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency-- Returns:
- the current
TerminalProductPriceinstance, allowing for method chaining
-
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-
-
value
public TerminalProductPrice value(Double value)
The price of the item.- Parameters:
value-- Returns:
- the current
TerminalProductPriceinstance, allowing for method chaining
-
getValue
public Double getValue()
The price of the item.- Returns:
- value
-
setValue
public void setValue(Double value)
The price of the item.- Parameters:
value-
-
equals
public boolean equals(Object o)
Return true if this TerminalProductPrice object is equal to o.
-
fromJson
public static TerminalProductPrice fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalProductPrice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalProductPrice
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalProductPrice
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalProductPrice to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-