Package com.adyen.model.payout
Class SubmitResponse
- java.lang.Object
-
- com.adyen.model.payout.SubmitResponse
-
public class SubmitResponse extends Object
SubmitResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDITIONAL_DATAstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFUSAL_REASONstatic StringJSON_PROPERTY_RESULT_CODE
-
Constructor Summary
Constructors Constructor Description SubmitResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmitResponseadditionalData(Map<String,String> additionalData)This field contains additional data, which may be returned in a particular response.booleanequals(Object o)Return true if this SubmitResponse object is equal to o.static SubmitResponsefromJson(String jsonString)Create an instance of SubmitResponse given an JSON stringMap<String,String>getAdditionalData()This field contains additional data, which may be returned in a particular response.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPspReference()A new reference to uniquely identify this request.StringgetRefusalReason()In case of refusal, an informational message for the reason.StringgetResultCode()The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.inthashCode()SubmitResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.SubmitResponsepspReference(String pspReference)A new reference to uniquely identify this request.SubmitResponseputAdditionalDataItem(String key, String additionalDataItem)SubmitResponserefusalReason(String refusalReason)In case of refusal, an informational message for the reason.SubmitResponseresultCode(String resultCode)The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.voidsetAdditionalData(Map<String,String> additionalData)This field contains additional data, which may be returned in a particular response.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPspReference(String pspReference)A new reference to uniquely identify this request.voidsetRefusalReason(String refusalReason)In case of refusal, an informational message for the reason.voidsetResultCode(String resultCode)The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.StringtoJson()Convert an instance of SubmitResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDITIONAL_DATA
public static final String JSON_PROPERTY_ADDITIONAL_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFUSAL_REASON
public static final String JSON_PROPERTY_REFUSAL_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalData
public SubmitResponse additionalData(Map<String,String> additionalData)
This field contains additional data, which may be returned in a particular response.- Parameters:
additionalData- This field contains additional data, which may be returned in a particular response.- Returns:
- the current
SubmitResponseinstance, allowing for method chaining
-
putAdditionalDataItem
public SubmitResponse putAdditionalDataItem(String key, String additionalDataItem)
-
getAdditionalData
public Map<String,String> getAdditionalData()
This field contains additional data, which may be returned in a particular response.- Returns:
- additionalData This field contains additional data, which may be returned in a particular response.
-
setAdditionalData
public void setAdditionalData(Map<String,String> additionalData)
This field contains additional data, which may be returned in a particular response.- Parameters:
additionalData- This field contains additional data, which may be returned in a particular response.
-
pspReference
public SubmitResponse pspReference(String pspReference)
A new reference to uniquely identify this request.- Parameters:
pspReference- A new reference to uniquely identify this request.- Returns:
- the current
SubmitResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
A new reference to uniquely identify this request.- Returns:
- pspReference A new reference to uniquely identify this request.
-
setPspReference
public void setPspReference(String pspReference)
A new reference to uniquely identify this request.- Parameters:
pspReference- A new reference to uniquely identify this request.
-
refusalReason
public SubmitResponse refusalReason(String refusalReason)
In case of refusal, an informational message for the reason.- Parameters:
refusalReason- In case of refusal, an informational message for the reason.- Returns:
- the current
SubmitResponseinstance, allowing for method chaining
-
getRefusalReason
public String getRefusalReason()
In case of refusal, an informational message for the reason.- Returns:
- refusalReason In case of refusal, an informational message for the reason.
-
setRefusalReason
public void setRefusalReason(String refusalReason)
In case of refusal, an informational message for the reason.- Parameters:
refusalReason- In case of refusal, an informational message for the reason.
-
resultCode
public SubmitResponse resultCode(String resultCode)
The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.- Parameters:
resultCode- The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.- Returns:
- the current
SubmitResponseinstance, allowing for method chaining
-
getResultCode
public String getResultCode()
The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.- Returns:
- resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.
-
setResultCode
public void setResultCode(String resultCode)
The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.- Parameters:
resultCode- The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned.
-
includeNullValues
public SubmitResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this SubmitResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static SubmitResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SubmitResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubmitResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SubmitResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SubmitResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-