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