Class DocumentReference
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.DocumentReference
-
public class DocumentReference extends Object
DocumentReference
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_FILE_NAMEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_MODIFICATION_DATEstatic StringJSON_PROPERTY_PAGESstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description DocumentReference()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentReferenceactive(Boolean active)DocumentReferenceaddPagesItem(DocumentPage pagesItem)DocumentReferencedescription(String description)booleanequals(Object o)Return true if this DocumentReference object is equal to o.DocumentReferencefileName(String fileName)static DocumentReferencefromJson(String jsonString)Create an instance of DocumentReference given an JSON stringBooleangetActive()Identifies whether the document is active and used for checks.StringgetDescription()Your description for the document.StringgetFileName()Document name.StringgetId()The unique identifier of the resource.OffsetDateTimegetModificationDate()The modification date of the document.List<DocumentPage>getPages()List of document pagesStringgetType()Type of document, used when providing an ID number or uploading a document.inthashCode()DocumentReferenceid(String id)DocumentReferencemodificationDate(OffsetDateTime modificationDate)DocumentReferencepages(List<DocumentPage> pages)voidsetActive(Boolean active)Identifies whether the document is active and used for checks.voidsetDescription(String description)Your description for the document.voidsetFileName(String fileName)Document name.voidsetId(String id)The unique identifier of the resource.voidsetModificationDate(OffsetDateTime modificationDate)The modification date of the document.voidsetPages(List<DocumentPage> pages)List of document pagesvoidsetType(String type)Type of document, used when providing an ID number or uploading a document.StringtoJson()Convert an instance of DocumentReference to an JSON stringStringtoString()DocumentReferencetype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_NAME
public static final String JSON_PROPERTY_FILE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODIFICATION_DATE
public static final String JSON_PROPERTY_MODIFICATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
active
public DocumentReference active(Boolean active)
-
getActive
public Boolean getActive()
Identifies whether the document is active and used for checks.- Returns:
- active
-
setActive
public void setActive(Boolean active)
Identifies whether the document is active and used for checks.- Parameters:
active-
-
description
public DocumentReference description(String description)
-
getDescription
public String getDescription()
Your description for the document.- Returns:
- description
-
setDescription
public void setDescription(String description)
Your description for the document.- Parameters:
description-
-
fileName
public DocumentReference fileName(String fileName)
-
getFileName
public String getFileName()
Document name.- Returns:
- fileName
-
setFileName
public void setFileName(String fileName)
Document name.- Parameters:
fileName-
-
id
public DocumentReference id(String id)
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the resource.- Parameters:
id-
-
modificationDate
public DocumentReference modificationDate(OffsetDateTime modificationDate)
-
getModificationDate
public OffsetDateTime getModificationDate()
The modification date of the document.- Returns:
- modificationDate
-
setModificationDate
public void setModificationDate(OffsetDateTime modificationDate)
The modification date of the document.- Parameters:
modificationDate-
-
pages
public DocumentReference pages(List<DocumentPage> pages)
-
addPagesItem
public DocumentReference addPagesItem(DocumentPage pagesItem)
-
getPages
public List<DocumentPage> getPages()
List of document pages- Returns:
- pages
-
setPages
public void setPages(List<DocumentPage> pages)
List of document pages- Parameters:
pages-
-
type
public DocumentReference type(String type)
-
getType
public String getType()
Type of document, used when providing an ID number or uploading a document.- Returns:
- type
-
setType
public void setType(String type)
Type of document, used when providing an ID number or uploading a document.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this DocumentReference object is equal to o.
-
fromJson
public static DocumentReference fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DocumentReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentReference
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DocumentReference
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DocumentReference to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-