Package com.adyen.model.reportwebhooks
Class ReportNotificationRequest
- java.lang.Object
-
- com.adyen.model.reportwebhooks.ReportNotificationRequest
-
public class ReportNotificationRequest extends Object
ReportNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReportNotificationRequest.CustomTypeAdapterFactorystatic classReportNotificationRequest.TypeEnumType of notification.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ENVIRONMENTstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ReportNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportNotificationRequestdata(ReportNotificationData data)ReportNotificationRequestenvironment(String environment)booleanequals(Object o)static ReportNotificationRequestfromJson(String jsonString)Create an instance of ReportNotificationRequest given an JSON stringReportNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.ReportNotificationRequest.TypeEnumgetType()Type of notification.inthashCode()voidsetData(ReportNotificationData data)voidsetEnvironment(String environment)voidsetType(ReportNotificationRequest.TypeEnum type)StringtoJson()Convert an instance of ReportNotificationRequest to an JSON stringStringtoString()ReportNotificationRequesttype(ReportNotificationRequest.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENVIRONMENT
public static final String SERIALIZED_NAME_ENVIRONMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public ReportNotificationRequest data(ReportNotificationData data)
-
getData
public ReportNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(ReportNotificationData data)
-
environment
public ReportNotificationRequest environment(String environment)
-
getEnvironment
public String getEnvironment()
The environment from which the webhook originated. Possible values: **test**, **live**.- Returns:
- environment
-
setEnvironment
public void setEnvironment(String environment)
-
type
public ReportNotificationRequest type(ReportNotificationRequest.TypeEnum type)
-
getType
public ReportNotificationRequest.TypeEnum getType()
Type of notification.- Returns:
- type
-
setType
public void setType(ReportNotificationRequest.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ReportNotificationRequest
-
fromJson
public static ReportNotificationRequest fromJson(String jsonString) throws IOException
Create an instance of ReportNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReportNotificationRequest
- Throws:
IOException- if the JSON string is invalid with respect to ReportNotificationRequest
-
toJson
public String toJson()
Convert an instance of ReportNotificationRequest to an JSON string- Returns:
- JSON string
-
-