Package com.adyen.model.balanceplatform
Class BalanceAccountInfo
- java.lang.Object
-
- com.adyen.model.balanceplatform.BalanceAccountInfo
-
public class BalanceAccountInfo extends Object
BalanceAccountInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceAccountInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_HOLDER_IDstatic StringSERIALIZED_NAME_DEFAULT_CURRENCY_CODEstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_TIME_ZONE
-
Constructor Summary
Constructors Constructor Description BalanceAccountInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceAccountInfoaccountHolderId(String accountHolderId)BalanceAccountInfodefaultCurrencyCode(String defaultCurrencyCode)BalanceAccountInfodescription(String description)booleanequals(Object o)static BalanceAccountInfofromJson(String jsonString)Create an instance of BalanceAccountInfo given an JSON stringStringgetAccountHolderId()The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.StringgetDefaultCurrencyCode()The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.StringgetDescription()A human-readable description of the balance account, maximum 300 characters.StringgetReference()Your reference for the balance account, maximum 150 characters.StringgetTimeZone()The time zone of the balance account.inthashCode()BalanceAccountInforeference(String reference)voidsetAccountHolderId(String accountHolderId)voidsetDefaultCurrencyCode(String defaultCurrencyCode)voidsetDescription(String description)voidsetReference(String reference)voidsetTimeZone(String timeZone)BalanceAccountInfotimeZone(String timeZone)StringtoJson()Convert an instance of BalanceAccountInfo 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_ACCOUNT_HOLDER_ID
public static final String SERIALIZED_NAME_ACCOUNT_HOLDER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_CURRENCY_CODE
public static final String SERIALIZED_NAME_DEFAULT_CURRENCY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIME_ZONE
public static final String SERIALIZED_NAME_TIME_ZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderId
public BalanceAccountInfo accountHolderId(String accountHolderId)
-
getAccountHolderId
public String getAccountHolderId()
The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.- Returns:
- accountHolderId
-
setAccountHolderId
public void setAccountHolderId(String accountHolderId)
-
defaultCurrencyCode
public BalanceAccountInfo defaultCurrencyCode(String defaultCurrencyCode)
-
getDefaultCurrencyCode
public String getDefaultCurrencyCode()
The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**.- Returns:
- defaultCurrencyCode
-
setDefaultCurrencyCode
public void setDefaultCurrencyCode(String defaultCurrencyCode)
-
description
public BalanceAccountInfo description(String description)
-
getDescription
public String getDescription()
A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
reference
public BalanceAccountInfo reference(String reference)
-
getReference
public String getReference()
Your reference for the balance account, maximum 150 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
timeZone
public BalanceAccountInfo timeZone(String timeZone)
-
getTimeZone
public String getTimeZone()
The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).- Returns:
- timeZone
-
setTimeZone
public void setTimeZone(String timeZone)
-
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 BalanceAccountInfo
-
fromJson
public static BalanceAccountInfo fromJson(String jsonString) throws IOException
Create an instance of BalanceAccountInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceAccountInfo
- Throws:
IOException- if the JSON string is invalid with respect to BalanceAccountInfo
-
toJson
public String toJson()
Convert an instance of BalanceAccountInfo to an JSON string- Returns:
- JSON string
-
-