Package com.adyen.model.management
Class NotificationUrl
- java.lang.Object
-
- com.adyen.model.management.NotificationUrl
-
public class NotificationUrl extends Object
NotificationUrl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationUrl.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LOCAL_URLSstatic StringSERIALIZED_NAME_PUBLIC_URLS
-
Constructor Summary
Constructors Constructor Description NotificationUrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationUrladdLocalUrlsItem(Url localUrlsItem)NotificationUrladdPublicUrlsItem(Url publicUrlsItem)booleanequals(Object o)static NotificationUrlfromJson(String jsonString)Create an instance of NotificationUrl given an JSON stringList<Url>getLocalUrls()One or more local URLs to send notifications to when using Terminal API.List<Url>getPublicUrls()One or more public URLs to send notifications to when using Terminal API.inthashCode()NotificationUrllocalUrls(List<Url> localUrls)NotificationUrlpublicUrls(List<Url> publicUrls)voidsetLocalUrls(List<Url> localUrls)voidsetPublicUrls(List<Url> publicUrls)StringtoJson()Convert an instance of NotificationUrl to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LOCAL_URLS
public static final String SERIALIZED_NAME_LOCAL_URLS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC_URLS
public static final String SERIALIZED_NAME_PUBLIC_URLS
- See Also:
- Constant Field Values
-
-
Method Detail
-
localUrls
public NotificationUrl localUrls(List<Url> localUrls)
-
addLocalUrlsItem
public NotificationUrl addLocalUrlsItem(Url localUrlsItem)
-
getLocalUrls
public List<Url> getLocalUrls()
One or more local URLs to send notifications to when using Terminal API.- Returns:
- localUrls
-
publicUrls
public NotificationUrl publicUrls(List<Url> publicUrls)
-
addPublicUrlsItem
public NotificationUrl addPublicUrlsItem(Url publicUrlsItem)
-
getPublicUrls
public List<Url> getPublicUrls()
One or more public URLs to send notifications to when using Terminal API.- Returns:
- publicUrls
-
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 NotificationUrl
-
fromJson
public static NotificationUrl fromJson(String jsonString) throws IOException
Create an instance of NotificationUrl given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotificationUrl
- Throws:
IOException- if the JSON string is invalid with respect to NotificationUrl
-
toJson
public String toJson()
Convert an instance of NotificationUrl to an JSON string- Returns:
- JSON string
-
-