Class Identification

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class Identification extends Object implements Serializable
An identity document or identifier of the account owner. Responses return only `type`.
See Also:
  • Field Details

  • Constructor Details

    • Identification

      public Identification()
  • Method Details

    • expiryDate

      public Identification expiryDate(@Nullable LocalDate expiryDate)
    • getExpiryDate

      @Nullable public LocalDate getExpiryDate()
      The expiry date in \"YYYY-MM-DD\" format. It must be later than today (UTC) and no earlier than `issued_date`.
      Returns:
      expiryDate
    • setExpiryDate

      public void setExpiryDate(@Nullable LocalDate expiryDate)
    • issuedCountry

      public Identification issuedCountry(@Nullable String issuedCountry)
    • getIssuedCountry

      @Nullable public String getIssuedCountry()
      Required on write. [ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html) code of the issuing country.
      Returns:
      issuedCountry
    • setIssuedCountry

      public void setIssuedCountry(@Nullable String issuedCountry)
    • issuedDate

      public Identification issuedDate(@Nullable LocalDate issuedDate)
    • getIssuedDate

      @Nullable public LocalDate getIssuedDate()
      The issue date in \"YYYY-MM-DD\" format. It can't be later than today (UTC).
      Returns:
      issuedDate
    • setIssuedDate

      public void setIssuedDate(@Nullable LocalDate issuedDate)
    • number

      public Identification number(@Nullable String number)
    • getNumber

      @Nullable public String getNumber()
      Required on write. The identification number. An `LEI` number is 20 characters long and must pass the ISO 17442 check digits, or the request fails with 422. Lowercase letters are accepted and stored in uppercase.
      Returns:
      number
    • setNumber

      public void setNumber(@Nullable String number)
    • type

      public Identification type(@Nonnull String type)
    • getType

      @Nonnull public String getType()
      The identification type, for example `passport`, `national_id` or `LEI`. `LEI` is uppercase.
      Returns:
      type
    • setType

      public void setType(@Nonnull String type)
    • putAdditionalProperty

      public Identification 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 Identification 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 Identification
    • fromJson

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

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