Package com.adyen.model.balanceplatform
Class WebhookSetting
- java.lang.Object
-
- com.adyen.model.balanceplatform.WebhookSetting
-
- Direct Known Subclasses:
BalanceWebhookSetting
public class WebhookSetting extends Object
WebhookSetting
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TARGETstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description WebhookSetting()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookSettingcurrency(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 WebhookSetting object is equal to o.static WebhookSettingfromJson(String jsonString)Create an instance of WebhookSetting given an JSON stringStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of the webhook setting.StringgetStatus()Get statusTargetgetTarget()Get targetSettingTypegetType()Get typeinthashCode()WebhookSettingid(String id)The unique identifier of the webhook setting.WebhookSettingincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.voidsetId(String id)The unique identifier of the webhook setting.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetStatus(String status)statusvoidsetTarget(Target target)targetvoidsetType(SettingType type)typeWebhookSettingstatus(String status)statusWebhookSettingtarget(Target target)targetStringtoJson()Convert an instance of WebhookSetting to an JSON stringStringtoString()WebhookSettingtype(SettingType type)type
-
-
-
Field Detail
-
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_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
-
currency
public WebhookSetting 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
WebhookSettinginstance, 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.
-
id
public WebhookSetting id(String id)
The unique identifier of the webhook setting.- Parameters:
id- The unique identifier of the webhook setting.- Returns:
- the current
WebhookSettinginstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the webhook setting.- Returns:
- id The unique identifier of the webhook setting.
-
setId
public void setId(String id)
The unique identifier of the webhook setting.- Parameters:
id- The unique identifier of the webhook setting.
-
status
public WebhookSetting status(String status)
status- Parameters:
status-- Returns:
- the current
WebhookSettinginstance, allowing for method chaining
-
getStatus
public String getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(String status)
status- Parameters:
status-
-
target
public WebhookSetting target(Target target)
target- Parameters:
target-- Returns:
- the current
WebhookSettinginstance, allowing for method chaining
-
getTarget
public Target getTarget()
Get target- Returns:
- target
-
setTarget
public void setTarget(Target target)
target- Parameters:
target-
-
type
public WebhookSetting type(SettingType type)
type- Parameters:
type-- Returns:
- the current
WebhookSettinginstance, allowing for method chaining
-
getType
public SettingType getType()
Get type- Returns:
- type
-
setType
public void setType(SettingType type)
type- Parameters:
type-
-
includeNullValues
public WebhookSetting includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this WebhookSetting object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static WebhookSetting fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of WebhookSetting given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookSetting
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to WebhookSetting
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of WebhookSetting to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-