Package com.adyen.model.balancewebhooks
Class BalanceNotificationData
- java.lang.Object
-
- com.adyen.model.balancewebhooks.BalanceNotificationData
-
public class BalanceNotificationData extends Object
BalanceNotificationData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_ACCOUNT_IDstatic StringJSON_PROPERTY_BALANCE_PLATFORMstatic StringJSON_PROPERTY_BALANCESstatic StringJSON_PROPERTY_CREATION_DATEstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_SETTING_IDS
-
Constructor Summary
Constructors Constructor Description BalanceNotificationData()BalanceNotificationData(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceNotificationDataaddSettingIdsItem(String settingIdsItem)BalanceNotificationDatabalanceAccountId(String balanceAccountId)The unique identifier of the balance account.BalanceNotificationDatabalancePlatform(String balancePlatform)The unique identifier of the balance platform.BalanceNotificationDatabalances(Balances balances)balancesBalanceNotificationDatacreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.BalanceNotificationDatacurrency(String currency)TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).booleanequals(Object o)Return true if this BalanceNotificationData object is equal to o.static BalanceNotificationDatafromJson(String jsonString)Create an instance of BalanceNotificationData given an JSON stringStringgetBalanceAccountId()The unique identifier of the balance account.StringgetBalancePlatform()The unique identifier of the balance platform.BalancesgetBalances()Get balancesOffsetDateTimegetCreationDate()The date and time when the event was triggered, in ISO 8601 extended format.StringgetCurrency()TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).StringgetId()The ID of the resource.List<String>getSettingIds()The unique identifier of the balance webhook setting.inthashCode()voidsetBalanceAccountId(String balanceAccountId)The unique identifier of the balance account.voidsetBalancePlatform(String balancePlatform)The unique identifier of the balance platform.voidsetBalances(Balances balances)balancesvoidsetCreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.voidsetCurrency(String currency)TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).voidsetSettingIds(List<String> settingIds)The unique identifier of the balance webhook setting.BalanceNotificationDatasettingIds(List<String> settingIds)The unique identifier of the balance webhook setting.StringtoJson()Convert an instance of BalanceNotificationData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_ACCOUNT_ID
public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCE_PLATFORM
public static final String JSON_PROPERTY_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCES
public static final String JSON_PROPERTY_BALANCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATION_DATE
public static final String JSON_PROPERTY_CREATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SETTING_IDS
public static final String JSON_PROPERTY_SETTING_IDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BalanceNotificationData
public BalanceNotificationData()
-
BalanceNotificationData
public BalanceNotificationData(String id)
-
-
Method Detail
-
balanceAccountId
public BalanceNotificationData balanceAccountId(String balanceAccountId)
The unique identifier of the balance account.- Parameters:
balanceAccountId- The unique identifier of the balance account.- Returns:
- the current
BalanceNotificationDatainstance, allowing for method chaining
-
getBalanceAccountId
public String getBalanceAccountId()
The unique identifier of the balance account.- Returns:
- balanceAccountId The unique identifier of the balance account.
-
setBalanceAccountId
public void setBalanceAccountId(String balanceAccountId)
The unique identifier of the balance account.- Parameters:
balanceAccountId- The unique identifier of the balance account.
-
balancePlatform
public BalanceNotificationData balancePlatform(String balancePlatform)
The unique identifier of the balance platform.- Parameters:
balancePlatform- The unique identifier of the balance platform.- Returns:
- the current
BalanceNotificationDatainstance, allowing for method chaining
-
getBalancePlatform
public String getBalancePlatform()
The unique identifier of the balance platform.- Returns:
- balancePlatform The unique identifier of the balance platform.
-
setBalancePlatform
public void setBalancePlatform(String balancePlatform)
The unique identifier of the balance platform.- Parameters:
balancePlatform- The unique identifier of the balance platform.
-
balances
public BalanceNotificationData balances(Balances balances)
balances- Parameters:
balances-- Returns:
- the current
BalanceNotificationDatainstance, allowing for method chaining
-
getBalances
public Balances getBalances()
Get balances- Returns:
- balances
-
setBalances
public void setBalances(Balances balances)
balances- Parameters:
balances-
-
creationDate
public BalanceNotificationData creationDate(OffsetDateTime creationDate)
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Parameters:
creationDate- The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Returns:
- the current
BalanceNotificationDatainstance, allowing for method chaining
-
getCreationDate
public OffsetDateTime getCreationDate()
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Returns:
- creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
-
setCreationDate
public void setCreationDate(OffsetDateTime creationDate)
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Parameters:
creationDate- The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
-
currency
public BalanceNotificationData currency(String currency)
TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency- TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- the current
BalanceNotificationDatainstance, allowing for method chaining
-
getCurrency
public String getCurrency()
TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- currency TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
-
setCurrency
public void setCurrency(String currency)
TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency- TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
-
getId
public String getId()
The ID of the resource.- Returns:
- id The ID of the resource.
-
settingIds
public BalanceNotificationData settingIds(List<String> settingIds)
The unique identifier of the balance webhook setting.- Parameters:
settingIds- The unique identifier of the balance webhook setting.- Returns:
- the current
BalanceNotificationDatainstance, allowing for method chaining
-
addSettingIdsItem
public BalanceNotificationData addSettingIdsItem(String settingIdsItem)
-
getSettingIds
public List<String> getSettingIds()
The unique identifier of the balance webhook setting.- Returns:
- settingIds The unique identifier of the balance webhook setting.
-
setSettingIds
public void setSettingIds(List<String> settingIds)
The unique identifier of the balance webhook setting.- Parameters:
settingIds- The unique identifier of the balance webhook setting.
-
equals
public boolean equals(Object o)
Return true if this BalanceNotificationData object is equal to o.
-
fromJson
public static BalanceNotificationData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceNotificationData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceNotificationData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceNotificationData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceNotificationData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-