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)DefenseDocumentcontentType(String contentType)DefenseDocumentdefenseDocumentTypeCode(String defenseDocumentTypeCode)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.inthashCode()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.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)
-
getContent
public byte[] getContent()
The content of the defense document.- Returns:
- content
-
setContent
public void setContent(byte[] content)
The content of the defense document.- Parameters:
content-
-
contentType
public DefenseDocument contentType(String contentType)
-
getContentType
public String getContentType()
The content type of the defense document.- Returns:
- contentType
-
setContentType
public void setContentType(String contentType)
The content type of the defense document.- Parameters:
contentType-
-
defenseDocumentTypeCode
public DefenseDocument defenseDocumentTypeCode(String defenseDocumentTypeCode)
-
getDefenseDocumentTypeCode
public String getDefenseDocumentTypeCode()
The document type code of the defense document.- Returns:
- defenseDocumentTypeCode
-
setDefenseDocumentTypeCode
public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode)
The document type code of the defense document.- Parameters:
defenseDocumentTypeCode-
-
equals
public boolean equals(Object o)
Return true if this DefenseDocument object is equal to o.
-
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
-
-