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)The document in Base64-encoded string format.AttachmentcontentType(String contentType)Deprecated.since Legal Entity Management API v1booleanequals(Object o)Return true if this Attachment object is equal to o.Attachmentfilename(String filename)Deprecated.since Legal Entity Management API v1static AttachmentfromJson(String jsonString)Create an instance of Attachment given an JSON stringbyte[]getContent()The document in Base64-encoded string format.StringgetContentType()Deprecated.since Legal Entity Management API v1StringgetFilename()Deprecated.since Legal Entity Management API v1StringgetPageName()The name of the file including the file extension.StringgetPageType()Specifies which side of the ID card is uploadedinthashCode()AttachmentpageName(String pageName)The name of the file including the file extension.AttachmentpageType(String pageType)Specifies which side of the ID card is uploadedvoidsetContent(byte[] content)The document in Base64-encoded string format.voidsetContentType(String contentType)Deprecated.since Legal Entity Management API v1voidsetFilename(String filename)Deprecated.since Legal Entity Management API v1voidsetPageName(String pageName)The name of the file including the file extension.voidsetPageType(String pageType)Specifies which side of the ID card is uploadedStringtoJson()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)
The document in Base64-encoded string format.- Parameters:
content-- Returns:
- the current
Attachmentinstance, allowing for method chaining
-
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.since Legal Entity Management API v1The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.- Parameters:
contentType-- Returns:
- the current
Attachmentinstance, allowing for method chaining
-
getContentType
@Deprecated public String getContentType()
Deprecated.since Legal Entity Management API v1The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.- Returns:
- contentType
-
setContentType
@Deprecated public void setContentType(String contentType)
Deprecated.since Legal Entity Management API v1The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.- Parameters:
contentType-
-
filename
@Deprecated public Attachment filename(String filename)
Deprecated.since Legal Entity Management API v1The name of the file including the file extension.- Parameters:
filename-- Returns:
- the current
Attachmentinstance, allowing for method chaining
-
getFilename
@Deprecated public String getFilename()
Deprecated.since Legal Entity Management API v1The name of the file including the file extension.- Returns:
- filename
-
setFilename
@Deprecated public void setFilename(String filename)
Deprecated.since Legal Entity Management API v1The name of the file including the file extension.- Parameters:
filename-
-
pageName
public Attachment pageName(String pageName)
The name of the file including the file extension.- Parameters:
pageName-- Returns:
- the current
Attachmentinstance, allowing for method chaining
-
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)
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-- Returns:
- the current
Attachmentinstance, allowing for method chaining
-
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
-
-