Package com.adyen.model.management
Class TestWebhookRequest
- java.lang.Object
-
- com.adyen.model.management.TestWebhookRequest
-
public class TestWebhookRequest extends Object
TestWebhookRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestWebhookRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NOTIFICATIONstatic StringSERIALIZED_NAME_TYPES
-
Constructor Summary
Constructors Constructor Description TestWebhookRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TestWebhookRequestaddTypesItem(String typesItem)booleanequals(Object o)static TestWebhookRequestfromJson(String jsonString)Create an instance of TestWebhookRequest given an JSON stringCustomNotificationgetNotification()Get notificationList<String>getTypes()List of event codes for which to send test notifications.inthashCode()TestWebhookRequestnotification(CustomNotification notification)voidsetNotification(CustomNotification notification)voidsetTypes(List<String> types)StringtoJson()Convert an instance of TestWebhookRequest to an JSON stringStringtoString()TestWebhookRequesttypes(List<String> types)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NOTIFICATION
public static final String SERIALIZED_NAME_NOTIFICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPES
public static final String SERIALIZED_NAME_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
notification
public TestWebhookRequest notification(CustomNotification notification)
-
getNotification
public CustomNotification getNotification()
Get notification- Returns:
- notification
-
setNotification
public void setNotification(CustomNotification notification)
-
types
public TestWebhookRequest types(List<String> types)
-
addTypesItem
public TestWebhookRequest addTypesItem(String typesItem)
-
getTypes
public List<String> getTypes()
List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING**- Returns:
- types
-
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 TestWebhookRequest
-
fromJson
public static TestWebhookRequest fromJson(String jsonString) throws IOException
Create an instance of TestWebhookRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TestWebhookRequest
- Throws:
IOException- if the JSON string is invalid with respect to TestWebhookRequest
-
toJson
public String toJson()
Convert an instance of TestWebhookRequest to an JSON string- Returns:
- JSON string
-
-