Package com.adyen.model.disputewebhooks
Class DisputeNotificationRequest
- java.lang.Object
-
- com.adyen.model.disputewebhooks.DisputeNotificationRequest
-
public class DisputeNotificationRequest extends Object
DisputeNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDisputeNotificationRequest.TypeEnumType of webhook.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description DisputeNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DisputeNotificationRequestdata(DisputeEventNotification data)databooleanequals(Object o)Return true if this DisputeNotificationRequest object is equal to o.static DisputeNotificationRequestfromJson(String jsonString)Create an instance of DisputeNotificationRequest given an JSON stringDisputeEventNotificationgetData()dataDisputeNotificationRequest.TypeEnumgetType()Type of webhook.inthashCode()voidsetData(DisputeEventNotification data)datavoidsetType(DisputeNotificationRequest.TypeEnum type)Type of webhook.StringtoJson()Convert an instance of DisputeNotificationRequest to an JSON stringStringtoString()DisputeNotificationRequesttype(DisputeNotificationRequest.TypeEnum type)Type of webhook.
-
-
-
Field Detail
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public DisputeNotificationRequest data(DisputeEventNotification data)
data- Parameters:
data-- Returns:
- the current
DisputeNotificationRequestinstance, allowing for method chaining
-
getData
public DisputeEventNotification getData()
data- Returns:
- data
-
setData
public void setData(DisputeEventNotification data)
data- Parameters:
data-
-
type
public DisputeNotificationRequest type(DisputeNotificationRequest.TypeEnum type)
Type of webhook.- Parameters:
type-- Returns:
- the current
DisputeNotificationRequestinstance, allowing for method chaining
-
getType
public DisputeNotificationRequest.TypeEnum getType()
Type of webhook.- Returns:
- type
-
setType
public void setType(DisputeNotificationRequest.TypeEnum type)
Type of webhook.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this DisputeNotificationRequest object is equal to o.
-
fromJson
public static DisputeNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DisputeNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisputeNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DisputeNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DisputeNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-