Package com.adyen.model.balanceplatform
Class BalanceWebhookSettingInfoUpdate
- java.lang.Object
-
- com.adyen.model.balanceplatform.BalanceWebhookSettingInfoUpdate
-
public class BalanceWebhookSettingInfoUpdate extends Object
BalanceWebhookSettingInfoUpdate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceWebhookSettingInfoUpdate.StatusEnumThe status of the webhook setting.static classBalanceWebhookSettingInfoUpdate.TypeEnumThe type of the webhook you are configuring.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONDITIONSstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TARGETstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description BalanceWebhookSettingInfoUpdate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceWebhookSettingInfoUpdateaddConditionsItem(Condition conditionsItem)BalanceWebhookSettingInfoUpdateconditions(List<Condition> conditions)The array of conditions a balance change must meet for Adyen to send the webhook.BalanceWebhookSettingInfoUpdatecurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.booleanequals(Object o)Return true if this BalanceWebhookSettingInfoUpdate object is equal to o.static BalanceWebhookSettingInfoUpdatefromJson(String jsonString)Create an instance of BalanceWebhookSettingInfoUpdate given an JSON stringList<Condition>getConditions()The array of conditions a balance change must meet for Adyen to send the webhook.StringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.BalanceWebhookSettingInfoUpdate.StatusEnumgetStatus()The status of the webhook setting.TargetUpdategetTarget()Get targetBalanceWebhookSettingInfoUpdate.TypeEnumgetType()The type of the webhook you are configuring.inthashCode()voidsetConditions(List<Condition> conditions)The array of conditions a balance change must meet for Adyen to send the webhook.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.voidsetStatus(BalanceWebhookSettingInfoUpdate.StatusEnum status)The status of the webhook setting.voidsetTarget(TargetUpdate target)targetvoidsetType(BalanceWebhookSettingInfoUpdate.TypeEnum type)The type of the webhook you are configuring.BalanceWebhookSettingInfoUpdatestatus(BalanceWebhookSettingInfoUpdate.StatusEnum status)The status of the webhook setting.BalanceWebhookSettingInfoUpdatetarget(TargetUpdate target)targetStringtoJson()Convert an instance of BalanceWebhookSettingInfoUpdate to an JSON stringStringtoString()BalanceWebhookSettingInfoUpdatetype(BalanceWebhookSettingInfoUpdate.TypeEnum type)The type of the webhook you are configuring.
-
-
-
Field Detail
-
JSON_PROPERTY_CONDITIONS
public static final String JSON_PROPERTY_CONDITIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET
public static final String JSON_PROPERTY_TARGET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
conditions
public BalanceWebhookSettingInfoUpdate conditions(List<Condition> conditions)
The array of conditions a balance change must meet for Adyen to send the webhook.- Parameters:
conditions- The array of conditions a balance change must meet for Adyen to send the webhook.- Returns:
- the current
BalanceWebhookSettingInfoUpdateinstance, allowing for method chaining
-
addConditionsItem
public BalanceWebhookSettingInfoUpdate addConditionsItem(Condition conditionsItem)
-
getConditions
public List<Condition> getConditions()
The array of conditions a balance change must meet for Adyen to send the webhook.- Returns:
- conditions The array of conditions a balance change must meet for Adyen to send the webhook.
-
setConditions
public void setConditions(List<Condition> conditions)
The array of conditions a balance change must meet for Adyen to send the webhook.- Parameters:
conditions- The array of conditions a balance change must meet for Adyen to send the webhook.
-
currency
public BalanceWebhookSettingInfoUpdate currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Returns:
- the current
BalanceWebhookSettingInfoUpdateinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Returns:
- currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.
-
status
public BalanceWebhookSettingInfoUpdate status(BalanceWebhookSettingInfoUpdate.StatusEnum status)
The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.- Parameters:
status- The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.- Returns:
- the current
BalanceWebhookSettingInfoUpdateinstance, allowing for method chaining
-
getStatus
public BalanceWebhookSettingInfoUpdate.StatusEnum getStatus()
The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.- Returns:
- status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.
-
setStatus
public void setStatus(BalanceWebhookSettingInfoUpdate.StatusEnum status)
The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.- Parameters:
status- The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.
-
target
public BalanceWebhookSettingInfoUpdate target(TargetUpdate target)
target- Parameters:
target-- Returns:
- the current
BalanceWebhookSettingInfoUpdateinstance, allowing for method chaining
-
getTarget
public TargetUpdate getTarget()
Get target- Returns:
- target
-
setTarget
public void setTarget(TargetUpdate target)
target- Parameters:
target-
-
type
public BalanceWebhookSettingInfoUpdate type(BalanceWebhookSettingInfoUpdate.TypeEnum type)
The type of the webhook you are configuring. Set to **balance**.- Parameters:
type- The type of the webhook you are configuring. Set to **balance**.- Returns:
- the current
BalanceWebhookSettingInfoUpdateinstance, allowing for method chaining
-
getType
public BalanceWebhookSettingInfoUpdate.TypeEnum getType()
The type of the webhook you are configuring. Set to **balance**.- Returns:
- type The type of the webhook you are configuring. Set to **balance**.
-
setType
public void setType(BalanceWebhookSettingInfoUpdate.TypeEnum type)
The type of the webhook you are configuring. Set to **balance**.- Parameters:
type- The type of the webhook you are configuring. Set to **balance**.
-
equals
public boolean equals(Object o)
Return true if this BalanceWebhookSettingInfoUpdate object is equal to o.
-
fromJson
public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceWebhookSettingInfoUpdate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceWebhookSettingInfoUpdate
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceWebhookSettingInfoUpdate
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceWebhookSettingInfoUpdate to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-