Class BalanceAccount


  • public class BalanceAccount
    extends Object
    BalanceAccount
    • Constructor Detail

      • BalanceAccount

        public BalanceAccount()
    • Method Detail

      • 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)
        The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.
        Parameters:
        accountHolderId -
      • getBalances

        public List<Balance> getBalances()
        List of balances with the amount and currency.
        Returns:
        balances
      • setBalances

        public void setBalances​(List<Balance> balances)
        List of balances with the amount and currency.
        Parameters:
        balances -
      • 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**. > After a balance account is created, you cannot change its default currency.
        Returns:
        defaultCurrencyCode
      • setDefaultCurrencyCode

        public void setDefaultCurrencyCode​(String defaultCurrencyCode)
        The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
        Parameters:
        defaultCurrencyCode -
      • 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)
        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.
        Parameters:
        description -
      • getId

        public String getId()
        The unique identifier of the balance account.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique identifier of the balance account.
        Parameters:
        id -
      • getMetadata

        public Map<String,​String> getMetadata()
        A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
        Returns:
        metadata
      • setMetadata

        public void setMetadata​(Map<String,​String> metadata)
        A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
        Parameters:
        metadata -
      • getMigratedAccountCode

        public String getMigratedAccountCode()
        The unique identifier of the account of the migrated account holder in the classic integration.
        Returns:
        migratedAccountCode
      • setMigratedAccountCode

        public void setMigratedAccountCode​(String migratedAccountCode)
        The unique identifier of the account of the migrated account holder in the classic integration.
        Parameters:
        migratedAccountCode -
      • getPlatformPaymentConfiguration

        public PlatformPaymentConfiguration getPlatformPaymentConfiguration()
        Get platformPaymentConfiguration
        Returns:
        platformPaymentConfiguration
      • setPlatformPaymentConfiguration

        public void setPlatformPaymentConfiguration​(PlatformPaymentConfiguration platformPaymentConfiguration)
        platformPaymentConfiguration
        Parameters:
        platformPaymentConfiguration -
      • getReference

        public String getReference()
        Your reference for the balance account, maximum 150 characters.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        Your reference for the balance account, maximum 150 characters.
        Parameters:
        reference -
      • getStatus

        public BalanceAccount.StatusEnum getStatus()
        The status of the balance account, set to **active** by default.
        Returns:
        status
      • setStatus

        public void setStatus​(BalanceAccount.StatusEnum status)
        The status of the balance account, set to **active** by default.
        Parameters:
        status -
      • 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)
        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).
        Parameters:
        timeZone -
      • equals

        public boolean equals​(Object o)
        Return true if this BalanceAccount object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static BalanceAccount fromJson​(String jsonString)
                                       throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of BalanceAccount given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BalanceAccount
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to BalanceAccount
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of BalanceAccount to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException