Package com.adyen.model.disputes
Class DefenseDocument
- java.lang.Object
-
- com.adyen.model.disputes.DefenseDocument
-
public class DefenseDocument extends Object
DefenseDocument
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTENTstatic StringJSON_PROPERTY_CONTENT_TYPEstatic StringJSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE
-
Constructor Summary
Constructors Constructor Description DefenseDocument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefenseDocumentcontent(byte[] content)The content of the defense document.DefenseDocumentcontentType(String contentType)The content type of the defense document.DefenseDocumentdefenseDocumentTypeCode(String defenseDocumentTypeCode)The document type code of the defense document.booleanequals(Object o)Return true if this DefenseDocument object is equal to o.static DefenseDocumentfromJson(String jsonString)Create an instance of DefenseDocument given an JSON stringbyte[]getContent()The content of the defense document.StringgetContentType()The content type of the defense document.StringgetDefenseDocumentTypeCode()The document type code of the defense document.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.inthashCode()DefenseDocumentincludeNullValues(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.voidsetContent(byte[] content)The content of the defense document.voidsetContentType(String contentType)The content type of the defense document.voidsetDefenseDocumentTypeCode(String defenseDocumentTypeCode)The document type code of the defense document.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of DefenseDocument to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_CONTENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENT_TYPE
public static final String JSON_PROPERTY_CONTENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE
public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
content
public DefenseDocument content(byte[] content)
The content of the defense document.- Parameters:
content- The content of the defense document.- Returns:
- the current
DefenseDocumentinstance, allowing for method chaining
-
getContent
public byte[] getContent()
The content of the defense document.- Returns:
- content The content of the defense document.
-
setContent
public void setContent(byte[] content)
The content of the defense document.- Parameters:
content- The content of the defense document.
-
contentType
public DefenseDocument contentType(String contentType)
The content type of the defense document.- Parameters:
contentType- The content type of the defense document.- Returns:
- the current
DefenseDocumentinstance, allowing for method chaining
-
getContentType
public String getContentType()
The content type of the defense document.- Returns:
- contentType The content type of the defense document.
-
setContentType
public void setContentType(String contentType)
The content type of the defense document.- Parameters:
contentType- The content type of the defense document.
-
defenseDocumentTypeCode
public DefenseDocument defenseDocumentTypeCode(String defenseDocumentTypeCode)
The document type code of the defense document.- Parameters:
defenseDocumentTypeCode- The document type code of the defense document.- Returns:
- the current
DefenseDocumentinstance, allowing for method chaining
-
getDefenseDocumentTypeCode
public String getDefenseDocumentTypeCode()
The document type code of the defense document.- Returns:
- defenseDocumentTypeCode The document type code of the defense document.
-
setDefenseDocumentTypeCode
public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode)
The document type code of the defense document.- Parameters:
defenseDocumentTypeCode- The document type code of the defense document.
-
includeNullValues
public DefenseDocument 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 DefenseDocument 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 DefenseDocument fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DefenseDocument given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DefenseDocument
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DefenseDocument
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DefenseDocument to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-