Package com.adyen.model.transfers
Class BalanceMutation
- java.lang.Object
-
- com.adyen.model.transfers.BalanceMutation
-
public class BalanceMutation extends Object
BalanceMutation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCEstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_RECEIVEDstatic StringJSON_PROPERTY_RESERVED
-
Constructor Summary
Constructors Constructor Description BalanceMutation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceMutationbalance(Long balance)BalanceMutationcurrency(String currency)booleanequals(Object o)Return true if this BalanceMutation object is equal to o.static BalanceMutationfromJson(String jsonString)Create an instance of BalanceMutation given an JSON stringLonggetBalance()The amount in the payment's currency that is debited or credited on the balance accounting register.StringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).LonggetReceived()The amount in the payment's currency that is debited or credited on the received accounting register.LonggetReserved()The amount in the payment's currency that is debited or credited on the reserved accounting register.inthashCode()BalanceMutationreceived(Long received)BalanceMutationreserved(Long reserved)voidsetBalance(Long balance)The amount in the payment's currency that is debited or credited on the balance accounting register.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).voidsetReceived(Long received)The amount in the payment's currency that is debited or credited on the received accounting register.voidsetReserved(Long reserved)The amount in the payment's currency that is debited or credited on the reserved accounting register.StringtoJson()Convert an instance of BalanceMutation to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE
public static final String JSON_PROPERTY_BALANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECEIVED
public static final String JSON_PROPERTY_RECEIVED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESERVED
public static final String JSON_PROPERTY_RESERVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
balance
public BalanceMutation balance(Long balance)
-
getBalance
public Long getBalance()
The amount in the payment's currency that is debited or credited on the balance accounting register.- Returns:
- balance
-
setBalance
public void setBalance(Long balance)
The amount in the payment's currency that is debited or credited on the balance accounting register.- Parameters:
balance-
-
currency
public BalanceMutation 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)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency-
-
received
public BalanceMutation received(Long received)
-
getReceived
public Long getReceived()
The amount in the payment's currency that is debited or credited on the received accounting register.- Returns:
- received
-
setReceived
public void setReceived(Long received)
The amount in the payment's currency that is debited or credited on the received accounting register.- Parameters:
received-
-
reserved
public BalanceMutation reserved(Long reserved)
-
getReserved
public Long getReserved()
The amount in the payment's currency that is debited or credited on the reserved accounting register.- Returns:
- reserved
-
setReserved
public void setReserved(Long reserved)
The amount in the payment's currency that is debited or credited on the reserved accounting register.- Parameters:
reserved-
-
equals
public boolean equals(Object o)
Return true if this BalanceMutation object is equal to o.
-
fromJson
public static BalanceMutation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceMutation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceMutation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceMutation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceMutation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-