Package com.adyen.model.management
Class TestOutput
- java.lang.Object
-
- com.adyen.model.management.TestOutput
-
public class TestOutput extends Object
TestOutput
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_IDstatic StringJSON_PROPERTY_OUTPUTstatic StringJSON_PROPERTY_REQUEST_SENTstatic StringJSON_PROPERTY_RESPONSE_CODEstatic StringJSON_PROPERTY_RESPONSE_TIMEstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description TestOutput()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this TestOutput object is equal to o.static TestOutputfromJson(String jsonString)Create an instance of TestOutput given an JSON stringStringgetMerchantId()Unique identifier of the merchant account that the notification is about.StringgetOutput()The response your server returned for the test webhook.StringgetRequestSent()The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server.StringgetResponseCode()The HTTP response code for your server's response to the test webhook.StringgetResponseTime()The time between sending the test webhook and receiving the response from your server.StringgetStatus()The status of the test request.inthashCode()TestOutputmerchantId(String merchantId)Unique identifier of the merchant account that the notification is about.TestOutputoutput(String output)The response your server returned for the test webhook.TestOutputrequestSent(String requestSent)The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server.TestOutputresponseCode(String responseCode)The HTTP response code for your server's response to the test webhook.TestOutputresponseTime(String responseTime)The time between sending the test webhook and receiving the response from your server.voidsetMerchantId(String merchantId)Unique identifier of the merchant account that the notification is about.voidsetOutput(String output)The response your server returned for the test webhook.voidsetRequestSent(String requestSent)The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server.voidsetResponseCode(String responseCode)The HTTP response code for your server's response to the test webhook.voidsetResponseTime(String responseTime)The time between sending the test webhook and receiving the response from your server.voidsetStatus(String status)The status of the test request.TestOutputstatus(String status)The status of the test request.StringtoJson()Convert an instance of TestOutput to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ID
public static final String JSON_PROPERTY_MERCHANT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OUTPUT
public static final String JSON_PROPERTY_OUTPUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUEST_SENT
public static final String JSON_PROPERTY_REQUEST_SENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESPONSE_CODE
public static final String JSON_PROPERTY_RESPONSE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESPONSE_TIME
public static final String JSON_PROPERTY_RESPONSE_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantId
public TestOutput merchantId(String merchantId)
Unique identifier of the merchant account that the notification is about.- Parameters:
merchantId-- Returns:
- the current
TestOutputinstance, allowing for method chaining
-
getMerchantId
public String getMerchantId()
Unique identifier of the merchant account that the notification is about.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
Unique identifier of the merchant account that the notification is about.- Parameters:
merchantId-
-
output
public TestOutput output(String output)
The response your server returned for the test webhook. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks#accept-notifications) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks.- Parameters:
output-- Returns:
- the current
TestOutputinstance, allowing for method chaining
-
getOutput
public String getOutput()
The response your server returned for the test webhook. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks#accept-notifications) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks.- Returns:
- output
-
setOutput
public void setOutput(String output)
The response your server returned for the test webhook. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks#accept-notifications) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks.- Parameters:
output-
-
requestSent
public TestOutput requestSent(String requestSent)
The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server.- Parameters:
requestSent-- Returns:
- the current
TestOutputinstance, allowing for method chaining
-
getRequestSent
public String getRequestSent()
The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server.- Returns:
- requestSent
-
setRequestSent
public void setRequestSent(String requestSent)
The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server.- Parameters:
requestSent-
-
responseCode
public TestOutput responseCode(String responseCode)
The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks.- Parameters:
responseCode-- Returns:
- the current
TestOutputinstance, allowing for method chaining
-
getResponseCode
public String getResponseCode()
The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks.- Returns:
- responseCode
-
setResponseCode
public void setResponseCode(String responseCode)
The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks.- Parameters:
responseCode-
-
responseTime
public TestOutput responseTime(String responseTime)
The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**.- Parameters:
responseTime-- Returns:
- the current
TestOutputinstance, allowing for method chaining
-
getResponseTime
public String getResponseTime()
The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**.- Returns:
- responseTime
-
setResponseTime
public void setResponseTime(String responseTime)
The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**.- Parameters:
responseTime-
-
status
public TestOutput status(String status)
The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks.- Parameters:
status-- Returns:
- the current
TestOutputinstance, allowing for method chaining
-
getStatus
public String getStatus()
The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks.- Returns:
- status
-
setStatus
public void setStatus(String status)
The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks.- Parameters:
status-
-
equals
public boolean equals(Object o)
Return true if this TestOutput object is equal to o.
-
fromJson
public static TestOutput fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TestOutput given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TestOutput
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TestOutput
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TestOutput to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-