Package com.adyen.model.management
Class TestCompanyWebhookRequest
- java.lang.Object
-
- com.adyen.model.management.TestCompanyWebhookRequest
-
public class TestCompanyWebhookRequest extends Object
TestCompanyWebhookRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_IDSstatic StringJSON_PROPERTY_NOTIFICATIONstatic StringJSON_PROPERTY_TYPES
-
Constructor Summary
Constructors Constructor Description TestCompanyWebhookRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TestCompanyWebhookRequestaddMerchantIdsItem(String merchantIdsItem)TestCompanyWebhookRequestaddTypesItem(String typesItem)booleanequals(Object o)Return true if this TestCompanyWebhookRequest object is equal to o.static TestCompanyWebhookRequestfromJson(String jsonString)Create an instance of TestCompanyWebhookRequest given an JSON stringList<String>getMerchantIds()List of `merchantId` values for which test webhooks will be sent.CustomNotificationgetNotification()notificationList<String>getTypes()List of event codes for which to send test notifications.inthashCode()TestCompanyWebhookRequestmerchantIds(List<String> merchantIds)List of `merchantId` values for which test webhooks will be sent.TestCompanyWebhookRequestnotification(CustomNotification notification)notificationvoidsetMerchantIds(List<String> merchantIds)List of `merchantId` values for which test webhooks will be sent.voidsetNotification(CustomNotification notification)notificationvoidsetTypes(List<String> types)List of event codes for which to send test notifications.StringtoJson()Convert an instance of TestCompanyWebhookRequest to an JSON stringStringtoString()TestCompanyWebhookRequesttypes(List<String> types)List of event codes for which to send test notifications.
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_IDS
public static final String JSON_PROPERTY_MERCHANT_IDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NOTIFICATION
public static final String JSON_PROPERTY_NOTIFICATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPES
public static final String JSON_PROPERTY_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantIds
public TestCompanyWebhookRequest merchantIds(List<String> merchantIds)
List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications.- Parameters:
merchantIds-- Returns:
- the current
TestCompanyWebhookRequestinstance, allowing for method chaining
-
addMerchantIdsItem
public TestCompanyWebhookRequest addMerchantIdsItem(String merchantIdsItem)
-
getMerchantIds
public List<String> getMerchantIds()
List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications.- Returns:
- merchantIds
-
setMerchantIds
public void setMerchantIds(List<String> merchantIds)
List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications.- Parameters:
merchantIds-
-
notification
public TestCompanyWebhookRequest notification(CustomNotification notification)
notification- Parameters:
notification-- Returns:
- the current
TestCompanyWebhookRequestinstance, allowing for method chaining
-
getNotification
public CustomNotification getNotification()
notification- Returns:
- notification
-
setNotification
public void setNotification(CustomNotification notification)
notification- Parameters:
notification-
-
types
public TestCompanyWebhookRequest types(List<String> types)
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**- Parameters:
types-- Returns:
- the current
TestCompanyWebhookRequestinstance, allowing for method chaining
-
addTypesItem
public TestCompanyWebhookRequest 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
-
setTypes
public void setTypes(List<String> types)
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**- Parameters:
types-
-
equals
public boolean equals(Object o)
Return true if this TestCompanyWebhookRequest object is equal to o.
-
fromJson
public static TestCompanyWebhookRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TestCompanyWebhookRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TestCompanyWebhookRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TestCompanyWebhookRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TestCompanyWebhookRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-