Class Balance
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Balance
-
public class Balance extends Object
Balance
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalance.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AVAILABLEstatic StringSERIALIZED_NAME_BALANCEstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_RESERVED
-
Constructor Summary
Constructors Constructor Description Balance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Balanceavailable(Long available)Balancebalance(Long balance)Balancecurrency(String currency)booleanequals(Object o)static BalancefromJson(String jsonString)Create an instance of Balance given an JSON stringLonggetAvailable()The remaining amount available for spending.LonggetBalance()The total amount in the balance.StringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.LonggetReserved()The amount reserved for payments that have been authorised, but have not been captured yet.inthashCode()Balancereserved(Long reserved)voidsetAvailable(Long available)voidsetBalance(Long balance)voidsetCurrency(String currency)voidsetReserved(Long reserved)StringtoJson()Convert an instance of Balance 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_AVAILABLE
public static final String SERIALIZED_NAME_AVAILABLE
- See Also:
- Constant Field Values
-
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_RESERVED
public static final String SERIALIZED_NAME_RESERVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAvailable
public Long getAvailable()
The remaining amount available for spending.- Returns:
- available
-
setAvailable
public void setAvailable(Long available)
-
getBalance
public Long getBalance()
The total amount in the balance.- Returns:
- balance
-
setBalance
public void setBalance(Long balance)
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Returns:
- currency
-
setCurrency
public void setCurrency(String currency)
-
getReserved
public Long getReserved()
The amount reserved for payments that have been authorised, but have not been captured yet.- 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 Balance
-
fromJson
public static Balance fromJson(String jsonString) throws IOException
Create an instance of Balance given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Balance
- Throws:
IOException- if the JSON string is invalid with respect to Balance
-
toJson
public String toJson()
Convert an instance of Balance to an JSON string- Returns:
- JSON string
-
-