Package com.adyen.model.disputes
Class DownloadDefenseDocumentResponse
- java.lang.Object
-
- com.adyen.model.disputes.DownloadDefenseDocumentResponse
-
public class DownloadDefenseDocumentResponse extends Object
DownloadDefenseDocumentResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTENTstatic StringJSON_PROPERTY_CONTENT_TYPEstatic StringJSON_PROPERTY_DISPUTE_SERVICE_RESULT
-
Constructor Summary
Constructors Constructor Description DownloadDefenseDocumentResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadDefenseDocumentResponsecontent(byte[] content)DownloadDefenseDocumentResponsecontentType(String contentType)DownloadDefenseDocumentResponsedisputeServiceResult(DisputeServiceResult disputeServiceResult)booleanequals(Object o)Return true if this DownloadDefenseDocumentResponse object is equal to o.static DownloadDefenseDocumentResponsefromJson(String jsonString)Create an instance of DownloadDefenseDocumentResponse given an JSON stringbyte[]getContent()The content of the defense document in Base64 binary format.StringgetContentType()The content type of the dispute defense document.DisputeServiceResultgetDisputeServiceResult()Get disputeServiceResultinthashCode()voidsetContent(byte[] content)voidsetContentType(String contentType)voidsetDisputeServiceResult(DisputeServiceResult disputeServiceResult)StringtoJson()Convert an instance of DownloadDefenseDocumentResponse 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_DISPUTE_SERVICE_RESULT
public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
content
public DownloadDefenseDocumentResponse content(byte[] content)
-
getContent
public byte[] getContent()
The content of the defense document in Base64 binary format. Must be encoded in the format that is specified in the `contentType` field.- Returns:
- content
-
setContent
public void setContent(byte[] content)
-
contentType
public DownloadDefenseDocumentResponse contentType(String contentType)
-
getContentType
public String getContentType()
The content type of the dispute defense document. Possible values: * **image/jpg** * **image/jpeg** * **image/tiff** * **application/pdf**- Returns:
- contentType
-
setContentType
public void setContentType(String contentType)
-
disputeServiceResult
public DownloadDefenseDocumentResponse disputeServiceResult(DisputeServiceResult disputeServiceResult)
-
getDisputeServiceResult
public DisputeServiceResult getDisputeServiceResult()
Get disputeServiceResult- Returns:
- disputeServiceResult
-
setDisputeServiceResult
public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult)
-
equals
public boolean equals(Object o)
Return true if this DownloadDefenseDocumentResponse object is equal to o.
-
fromJson
public static DownloadDefenseDocumentResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DownloadDefenseDocumentResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DownloadDefenseDocumentResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DownloadDefenseDocumentResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DownloadDefenseDocumentResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-