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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpiryDate(LocalDate expiryDate) static IdentificationCreate an instance of Identification given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The expiry date in \"YYYY-MM-DD\" format.Required on write.The issue date in \"YYYY-MM-DD\" format.Required on write.getType()The identification type, for example `passport`, `national_id` or `LEI`.inthashCode()issuedCountry(String issuedCountry) issuedDate(LocalDate issuedDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetExpiryDate(LocalDate expiryDate) voidsetIssuedCountry(String issuedCountry) voidsetIssuedDate(LocalDate issuedDate) voidvoidtoJson()Convert an instance of Identification to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EXPIRY_DATE
- See Also:
-
SERIALIZED_NAME_ISSUED_COUNTRY
- See Also:
-
SERIALIZED_NAME_ISSUED_DATE
- See Also:
-
SERIALIZED_NAME_NUMBER
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Identification
public Identification()
-
-
Method Details
-
expiryDate
-
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
-
issuedCountry
-
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
-
issuedDate
-
getIssuedDate
The issue date in \"YYYY-MM-DD\" format. It can't be later than today (UTC).- Returns:
- issuedDate
-
setIssuedDate
-
number
-
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
-
type
-
getType
The identification type, for example `passport`, `national_id` or `LEI`. `LEI` is uppercase.- Returns:
- type
-
setType
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the Identification instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of Identification to an JSON string- Returns:
- JSON string
-