Class PaymentNotificationRequest
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.PaymentNotificationRequest
-
public class PaymentNotificationRequest extends Object
PaymentNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentNotificationRequest.CustomTypeAdapterFactorystatic classPaymentNotificationRequest.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 PaymentNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentNotificationRequestdata(PaymentInstrumentNotificationData data)PaymentNotificationRequestenvironment(String environment)booleanequals(Object o)static PaymentNotificationRequestfromJson(String jsonString)Create an instance of PaymentNotificationRequest given an JSON stringPaymentInstrumentNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.PaymentNotificationRequest.TypeEnumgetType()Type of notification.inthashCode()voidsetData(PaymentInstrumentNotificationData data)voidsetEnvironment(String environment)voidsetType(PaymentNotificationRequest.TypeEnum type)StringtoJson()Convert an instance of PaymentNotificationRequest to an JSON stringStringtoString()PaymentNotificationRequesttype(PaymentNotificationRequest.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 PaymentNotificationRequest data(PaymentInstrumentNotificationData data)
-
getData
public PaymentInstrumentNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(PaymentInstrumentNotificationData data)
-
environment
public PaymentNotificationRequest 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 PaymentNotificationRequest type(PaymentNotificationRequest.TypeEnum type)
-
getType
public PaymentNotificationRequest.TypeEnum getType()
Type of notification.- Returns:
- type
-
setType
public void setType(PaymentNotificationRequest.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 PaymentNotificationRequest
-
fromJson
public static PaymentNotificationRequest fromJson(String jsonString) throws IOException
Create an instance of PaymentNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentNotificationRequest
- Throws:
IOException- if the JSON string is invalid with respect to PaymentNotificationRequest
-
toJson
public String toJson()
Convert an instance of PaymentNotificationRequest to an JSON string- Returns:
- JSON string
-
-