Class Attachment
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Attachment
-
public class Attachment extends Object
Attachment
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTENTstatic StringJSON_PROPERTY_CONTENT_TYPEstatic StringJSON_PROPERTY_FILENAMEstatic StringJSON_PROPERTY_PAGE_NAMEstatic StringJSON_PROPERTY_PAGE_TYPE
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Attachmentcontent(byte[] content)AttachmentcontentType(String contentType)Deprecated.booleanequals(Object o)Return true if this Attachment object is equal to o.Attachmentfilename(String filename)Deprecated.static AttachmentfromJson(String jsonString)Create an instance of Attachment given an JSON stringbyte[]getContent()The document in Base64-encoded string format.StringgetContentType()Deprecated.StringgetFilename()Deprecated.StringgetPageName()The name of the file including the file extension.StringgetPageType()Specifies which side of the ID card is uploaded.inthashCode()AttachmentpageName(String pageName)AttachmentpageType(String pageType)voidsetContent(byte[] content)The document in Base64-encoded string format.voidsetContentType(String contentType)Deprecated.voidsetFilename(String filename)Deprecated.voidsetPageName(String pageName)The name of the file including the file extension.voidsetPageType(String pageType)Specifies which side of the ID card is uploaded.StringtoJson()Convert an instance of Attachment 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_FILENAME
public static final String JSON_PROPERTY_FILENAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE_NAME
public static final String JSON_PROPERTY_PAGE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE_TYPE
public static final String JSON_PROPERTY_PAGE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
content
public Attachment content(byte[] content)
-
getContent
public byte[] getContent()
The document in Base64-encoded string format.- Returns:
- content
-
setContent
public void setContent(byte[] content)
The document in Base64-encoded string format.- Parameters:
content-
-
contentType
@Deprecated public Attachment contentType(String contentType)
Deprecated.
-
getContentType
@Deprecated public String getContentType()
Deprecated.The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.- Returns:
- contentType
-
setContentType
@Deprecated public void setContentType(String contentType)
Deprecated.The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.- Parameters:
contentType-
-
filename
@Deprecated public Attachment filename(String filename)
Deprecated.
-
getFilename
@Deprecated public String getFilename()
Deprecated.The name of the file including the file extension.- Returns:
- filename
-
setFilename
@Deprecated public void setFilename(String filename)
Deprecated.The name of the file including the file extension.- Parameters:
filename-
-
pageName
public Attachment pageName(String pageName)
-
getPageName
public String getPageName()
The name of the file including the file extension.- Returns:
- pageName
-
setPageName
public void setPageName(String pageName)
The name of the file including the file extension.- Parameters:
pageName-
-
pageType
public Attachment pageType(String pageType)
-
getPageType
public String getPageType()
Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.- Returns:
- pageType
-
setPageType
public void setPageType(String pageType)
Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.- Parameters:
pageType-
-
equals
public boolean equals(Object o)
Return true if this Attachment object is equal to o.
-
fromJson
public static Attachment fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Attachment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Attachment
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Attachment
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Attachment to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-