Class CIPDocument

java.lang.Object
markets.alpaca.client.openapi.broker.model.CIPDocument
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class CIPDocument extends Object implements Serializable
Represents results of checking a document for CIPInfo
See Also:
  • Field Details

  • Constructor Details

    • CIPDocument

      public CIPDocument()
  • Method Details

    • ageValidation

      public CIPDocument ageValidation(@Nullable CIPResult ageValidation)
    • getAgeValidation

      @Nullable public CIPResult getAgeValidation()
      Get ageValidation
      Returns:
      ageValidation
    • setAgeValidation

      public void setAgeValidation(@Nullable CIPResult ageValidation)
    • comprisedDocument

      public CIPDocument comprisedDocument(@Nullable CIPResult comprisedDocument)
    • getComprisedDocument

      @Nullable public CIPResult getComprisedDocument()
      Get comprisedDocument
      Returns:
      comprisedDocument
    • setComprisedDocument

      public void setComprisedDocument(@Nullable CIPResult comprisedDocument)
    • createdAt

      public CIPDocument createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Datetime for when this check was done
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • dataComparison

      public CIPDocument dataComparison(@Nullable CIPResult dataComparison)
    • getDataComparison

      @Nullable public CIPResult getDataComparison()
      Get dataComparison
      Returns:
      dataComparison
    • setDataComparison

      public void setDataComparison(@Nullable CIPResult dataComparison)
    • dataComparisonBreakdown

      public CIPDocument dataComparisonBreakdown(@Nullable String dataComparisonBreakdown)
    • getDataComparisonBreakdown

      @Nullable public String getDataComparisonBreakdown()
      json object representing the results of the various sub-checks done when calculating the result on `data_comparison`. Example: {\"date_of_birth\": \"clear\", \"date_of_expiry\": \"clear\" \"document_numbers\": \"clear\", \"document_type\": \"clear\", \"first_name\": \"clear\", \"gender\": \"clear\", \"issuing_country\": \"clear\", \"last_name\": \"clear\"}
      Returns:
      dataComparisonBreakdown
    • setDataComparisonBreakdown

      public void setDataComparisonBreakdown(@Nullable String dataComparisonBreakdown)
    • dateOfBirth

      public CIPDocument dateOfBirth(@Nullable LocalDate dateOfBirth)
    • getDateOfBirth

      @Nullable public LocalDate getDateOfBirth()
      Datetime for when this check was done
      Returns:
      dateOfBirth
    • setDateOfBirth

      public void setDateOfBirth(@Nullable LocalDate dateOfBirth)
    • dateOfExpiry

      public CIPDocument dateOfExpiry(@Nullable LocalDate dateOfExpiry)
    • getDateOfExpiry

      @Nullable public LocalDate getDateOfExpiry()
      Datetime for when this check was done
      Returns:
      dateOfExpiry
    • setDateOfExpiry

      public void setDateOfExpiry(@Nullable LocalDate dateOfExpiry)
    • documentNumbers

      public CIPDocument documentNumbers(@Nullable List<String> documentNumbers)
    • addDocumentNumbersItem

      public CIPDocument addDocumentNumbersItem(String documentNumbersItem)
    • getDocumentNumbers

      @Nullable public List<String> getDocumentNumbers()
      Number of the document that was checked
      Returns:
      documentNumbers
    • setDocumentNumbers

      public void setDocumentNumbers(@Nullable List<String> documentNumbers)
    • documentType

      public CIPDocument documentType(@Nullable String documentType)
    • getDocumentType

      @Nullable public String getDocumentType()
      Type of the document that was checked
      Returns:
      documentType
    • setDocumentType

      public void setDocumentType(@Nullable String documentType)
    • firstName

      public CIPDocument firstName(@Nullable String firstName)
    • getFirstName

      @Nullable public String getFirstName()
      First name extracted from the document
      Returns:
      firstName
    • setFirstName

      public void setFirstName(@Nullable String firstName)
    • gender

      public CIPDocument gender(@Nullable String gender)
    • getGender

      @Nullable public String getGender()
      Gender info extracted from the document
      Returns:
      gender
    • setGender

      public void setGender(@Nullable String gender)
    • id

      public CIPDocument id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Your internal ID of check
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • imageIntegrity

      public CIPDocument imageIntegrity(@Nullable CIPResult imageIntegrity)
    • getImageIntegrity

      @Nullable public CIPResult getImageIntegrity()
      Get imageIntegrity
      Returns:
      imageIntegrity
    • setImageIntegrity

      public void setImageIntegrity(@Nullable CIPResult imageIntegrity)
    • imageIntegrityBreakdown

      public CIPDocument imageIntegrityBreakdown(@Nullable String imageIntegrityBreakdown)
    • getImageIntegrityBreakdown

      @Nullable public String getImageIntegrityBreakdown()
      json object representing the results of the various sub-checks done when calculating the result on `image_integrity`. Example: example: {\"colour_picture\": \"clear\", \"conclusive_document_quality\": \"clear\", \"image_quality\": \"clear\", \"supported_document\": \"clear\"}
      Returns:
      imageIntegrityBreakdown
    • setImageIntegrityBreakdown

      public void setImageIntegrityBreakdown(@Nullable String imageIntegrityBreakdown)
    • issuingCountry

      public CIPDocument issuingCountry(@Nullable String issuingCountry)
    • getIssuingCountry

      @Nullable public String getIssuingCountry()
      Country for which issued the document
      Returns:
      issuingCountry
    • setIssuingCountry

      public void setIssuingCountry(@Nullable String issuingCountry)
    • lastName

      public CIPDocument lastName(@Nullable String lastName)
    • getLastName

      @Nullable public String getLastName()
      Last name extracted from the document
      Returns:
      lastName
    • setLastName

      public void setLastName(@Nullable String lastName)
    • nationality

      public CIPDocument nationality(@Nullable String nationality)
    • getNationality

      @Nullable public String getNationality()
      Nationality extracted from the document
      Returns:
      nationality
    • setNationality

      public void setNationality(@Nullable String nationality)
    • policeRecord

      public CIPDocument policeRecord(@Nullable CIPStatus policeRecord)
    • getPoliceRecord

      @Nullable public CIPStatus getPoliceRecord()
      Get policeRecord
      Returns:
      policeRecord
    • setPoliceRecord

      public void setPoliceRecord(@Nullable CIPStatus policeRecord)
    • result

      public CIPDocument result(@Nullable CIPResult result)
    • getResult

      @Nullable public CIPResult getResult()
      Get result
      Returns:
      result
    • setResult

      public void setResult(@Nullable CIPResult result)
    • status

      public CIPDocument status(@Nullable CIPStatus status)
    • getStatus

      @Nullable public CIPStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable CIPStatus status)
    • visualAuthenticity

      public CIPDocument visualAuthenticity(@Nullable String visualAuthenticity)
    • getVisualAuthenticity

      @Nullable public String getVisualAuthenticity()
      json object representing the various sub-checks done when determining whether visual (non-textual) elements are correct given the document type. Example: { \"digital_tampering\": \"clear\", \"face_detection\": \"clear\", \"fonts\": \"clear\", \"original_document_present\": \"clear\", \"picture_face_integrity\": \"clear\", \"security_features\": \"clear\", \"template\": \"clear\"}
      Returns:
      visualAuthenticity
    • setVisualAuthenticity

      public void setVisualAuthenticity(@Nullable String visualAuthenticity)
    • putAdditionalProperty

      public CIPDocument putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the CIPDocument instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to CIPDocument
    • fromJson

      public static CIPDocument fromJson(String jsonString) throws IOException
      Create an instance of CIPDocument given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CIPDocument
      Throws:
      IOException - if the JSON string is invalid with respect to CIPDocument
    • toJson

      public String toJson()
      Convert an instance of CIPDocument to an JSON string
      Returns:
      JSON string