Class Attachment
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Attachment
-
public class Attachment extends Object
Attachment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachment.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONTENTstatic StringSERIALIZED_NAME_CONTENT_TYPEstatic StringSERIALIZED_NAME_FILENAMEstatic StringSERIALIZED_NAME_PAGE_NAMEstatic StringSERIALIZED_NAME_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)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)voidsetContentType(String contentType)Deprecated.voidsetFilename(String filename)Deprecated.voidsetPageName(String pageName)voidsetPageType(String pageType)StringtoJson()Convert an instance of Attachment to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CONTENT
public static final String SERIALIZED_NAME_CONTENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTENT_TYPE
public static final String SERIALIZED_NAME_CONTENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILENAME
public static final String SERIALIZED_NAME_FILENAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAGE_NAME
public static final String SERIALIZED_NAME_PAGE_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAGE_TYPE
public static final String SERIALIZED_NAME_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)
-
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.
-
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.
-
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)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Attachment
-
fromJson
public static Attachment fromJson(String jsonString) throws IOException
Create an instance of Attachment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Attachment
- Throws:
IOException- if the JSON string is invalid with respect to Attachment
-
toJson
public String toJson()
Convert an instance of Attachment to an JSON string- Returns:
- JSON string
-
-