Class SplitAmount
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.SplitAmount
-
public class SplitAmount extends Object
SplitAmount
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description SplitAmount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitAmountcurrency(String currency)booleanequals(Object o)Return true if this SplitAmount object is equal to o.static SplitAmountfromJson(String jsonString)Create an instance of SplitAmount given an JSON stringStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).LonggetValue()The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes).inthashCode()voidsetCurrency(String currency)voidsetValue(Long value)StringtoJson()Convert an instance of SplitAmount to an JSON stringStringtoString()SplitAmountvalue(Long value)
-
-
-
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 SplitAmount currency(String currency)
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used.- Returns:
- currency
-
setCurrency
public void setCurrency(String currency)
-
value
public SplitAmount value(Long value)
-
getValue
public Long getValue()
The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- value
-
setValue
public void setValue(Long value)
-
equals
public boolean equals(Object o)
Return true if this SplitAmount object is equal to o.
-
fromJson
public static SplitAmount fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SplitAmount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SplitAmount
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SplitAmount
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SplitAmount to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-