Class BalanceAccount
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.BalanceAccount
-
public class BalanceAccount extends Object
BalanceAccount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceAccount.StatusEnumThe status of the balance account, set to **Active** by default.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_IDstatic StringJSON_PROPERTY_BALANCESstatic StringJSON_PROPERTY_DEFAULT_CURRENCY_CODEstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENTSstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_SWEEP_CONFIGURATIONSstatic StringJSON_PROPERTY_TIME_ZONE
-
Constructor Summary
Constructors Constructor Description BalanceAccount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceAccountaccountHolderId(String accountHolderId)BalanceAccountaddBalancesItem(Balance balancesItem)BalanceAccountaddPaymentInstrumentsItem(PaymentInstrumentReference paymentInstrumentsItem)BalanceAccountbalances(List<Balance> balances)BalanceAccountdefaultCurrencyCode(String defaultCurrencyCode)BalanceAccountdescription(String description)booleanequals(Object o)Return true if this BalanceAccount object is equal to o.static BalanceAccountfromJson(String jsonString)Create an instance of BalanceAccount 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.List<Balance>getBalances()List of balances with the amount and currency.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.StringgetId()The unique identifier of the balance account.Map<String,String>getMetadata()A set of key and value pairs for general use by the merchant.List<PaymentInstrumentReference>getPaymentInstruments()List of [payment instruments](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments) associated with the balance account.StringgetReference()Your reference for the balance account, maximum 150 characters.BalanceAccount.StatusEnumgetStatus()The status of the balance account, set to **Active** by default.Map<String,SweepConfiguration>getSweepConfigurations()Contains key-value pairs that specify configurations for balance sweeps per currency code.StringgetTimeZone()The time zone of the balance account.inthashCode()BalanceAccountid(String id)BalanceAccountmetadata(Map<String,String> metadata)BalanceAccountpaymentInstruments(List<PaymentInstrumentReference> paymentInstruments)BalanceAccountputMetadataItem(String key, String metadataItem)BalanceAccountputSweepConfigurationsItem(String key, SweepConfiguration sweepConfigurationsItem)BalanceAccountreference(String reference)voidsetAccountHolderId(String accountHolderId)voidsetBalances(List<Balance> balances)voidsetDefaultCurrencyCode(String defaultCurrencyCode)voidsetDescription(String description)voidsetId(String id)voidsetMetadata(Map<String,String> metadata)voidsetPaymentInstruments(List<PaymentInstrumentReference> paymentInstruments)voidsetReference(String reference)voidsetStatus(BalanceAccount.StatusEnum status)voidsetSweepConfigurations(Map<String,SweepConfiguration> sweepConfigurations)voidsetTimeZone(String timeZone)BalanceAccountstatus(BalanceAccount.StatusEnum status)BalanceAccountsweepConfigurations(Map<String,SweepConfiguration> sweepConfigurations)BalanceAccounttimeZone(String timeZone)StringtoJson()Convert an instance of BalanceAccount to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_ID
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCES
public static final String JSON_PROPERTY_BALANCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEFAULT_CURRENCY_CODE
public static final String JSON_PROPERTY_DEFAULT_CURRENCY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METADATA
public static final String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENTS
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SWEEP_CONFIGURATIONS
public static final String JSON_PROPERTY_SWEEP_CONFIGURATIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME_ZONE
public static final String JSON_PROPERTY_TIME_ZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderId
public BalanceAccount 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)
-
balances
public BalanceAccount balances(List<Balance> balances)
-
addBalancesItem
public BalanceAccount addBalancesItem(Balance balancesItem)
-
getBalances
public List<Balance> getBalances()
List of balances with the amount and currency.- Returns:
- balances
-
defaultCurrencyCode
public BalanceAccount 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 BalanceAccount 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)
-
id
public BalanceAccount id(String id)
-
getId
public String getId()
The unique identifier of the balance account.- Returns:
- id
-
setId
public void setId(String id)
-
metadata
public BalanceAccount metadata(Map<String,String> metadata)
-
putMetadataItem
public BalanceAccount putMetadataItem(String key, String metadataItem)
-
getMetadata
public Map<String,String> getMetadata()
A set of key and value pairs for general use by the merchant. 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
-
paymentInstruments
public BalanceAccount paymentInstruments(List<PaymentInstrumentReference> paymentInstruments)
-
addPaymentInstrumentsItem
public BalanceAccount addPaymentInstrumentsItem(PaymentInstrumentReference paymentInstrumentsItem)
-
getPaymentInstruments
public List<PaymentInstrumentReference> getPaymentInstruments()
List of [payment instruments](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments) associated with the balance account.- Returns:
- paymentInstruments
-
setPaymentInstruments
public void setPaymentInstruments(List<PaymentInstrumentReference> paymentInstruments)
-
reference
public BalanceAccount reference(String reference)
-
getReference
public String getReference()
Your reference for the balance account, maximum 150 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
status
public BalanceAccount status(BalanceAccount.StatusEnum status)
-
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)
-
sweepConfigurations
public BalanceAccount sweepConfigurations(Map<String,SweepConfiguration> sweepConfigurations)
-
putSweepConfigurationsItem
public BalanceAccount putSweepConfigurationsItem(String key, SweepConfiguration sweepConfigurationsItem)
-
getSweepConfigurations
public Map<String,SweepConfiguration> getSweepConfigurations()
Contains key-value pairs that specify configurations for balance sweeps per currency code. A sweep pulls in or pushes out funds based on a defined schedule, amount, and a source (for pulling funds) or a destination (for pushing funds). The key must be a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The value must be an object containing the sweep configuration.- Returns:
- sweepConfigurations
-
setSweepConfigurations
public void setSweepConfigurations(Map<String,SweepConfiguration> sweepConfigurations)
-
timeZone
public BalanceAccount 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)
-
equals
public boolean equals(Object o)
Return true if this BalanceAccount object is equal to o.
-
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
-
-