Package com.adyen.model.transferwebhooks
Class BalanceMutation
- java.lang.Object
-
- com.adyen.model.transferwebhooks.BalanceMutation
-
public class BalanceMutation extends Object
BalanceMutation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceMutation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BALANCEstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_RECEIVEDstatic StringSERIALIZED_NAME_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)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)voidsetCurrency(String currency)voidsetReceived(Long received)voidsetReserved(Long reserved)StringtoJson()Convert an instance of BalanceMutation to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BALANCE
public static final String SERIALIZED_NAME_BALANCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECEIVED
public static final String SERIALIZED_NAME_RECEIVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESERVED
public static final String SERIALIZED_NAME_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)
-
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)
-
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)
-
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)
-
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 BalanceMutation
-
fromJson
public static BalanceMutation fromJson(String jsonString) throws IOException
Create an instance of BalanceMutation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceMutation
- Throws:
IOException- if the JSON string is invalid with respect to BalanceMutation
-
toJson
public String toJson()
Convert an instance of BalanceMutation to an JSON string- Returns:
- JSON string
-
-