fireblocks_sdk/models/
personal_identification.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PersonalIdentification {
16    #[serde(rename = "externalReferenceId")]
17    pub external_reference_id: String,
18    #[serde(rename = "entityType")]
19    pub entity_type: EntityType,
20    #[serde(rename = "participantRelationshipType")]
21    pub participant_relationship_type: models::ParticipantRelationshipType,
22    #[serde(rename = "fullName")]
23    pub full_name: models::PersonalIdentificationFullName,
24    #[serde(rename = "dateOfBirth")]
25    pub date_of_birth: String,
26    #[serde(rename = "postalAddress")]
27    pub postal_address: models::PostalAddress,
28}
29
30impl PersonalIdentification {
31    pub fn new(
32        external_reference_id: String,
33        entity_type: EntityType,
34        participant_relationship_type: models::ParticipantRelationshipType,
35        full_name: models::PersonalIdentificationFullName,
36        date_of_birth: String,
37        postal_address: models::PostalAddress,
38    ) -> PersonalIdentification {
39        PersonalIdentification {
40            external_reference_id,
41            entity_type,
42            participant_relationship_type,
43            full_name,
44            date_of_birth,
45            postal_address,
46        }
47    }
48}
49///
50#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
51pub enum EntityType {
52    #[serde(rename = "INDIVIDUAL")]
53    Individual,
54}
55
56impl Default for EntityType {
57    fn default() -> EntityType {
58        Self::Individual
59    }
60}