1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Fireblocks API
//
// 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)
//
// The version of the OpenAPI document: 1.8.0
// Contact: developers@fireblocks.com
// Generated by: https://openapi-generator.tech
use {
crate::models,
serde::{Deserialize, Serialize},
};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TravelRuleGeographicAddress {
/// Name of a street or thoroughfare. The value must be encrypted.
#[serde(rename = "streetName", skip_serializing_if = "Option::is_none")]
pub street_name: Option<String>,
/// Name of a built-up area, with defined boundaries, and a local
/// government. The value must be encrypted.
#[serde(rename = "townName", skip_serializing_if = "Option::is_none")]
pub town_name: Option<String>,
/// Nation with its own government (ISO-3166 Alpha-2 country code). The
/// value must be encrypted.
#[serde(rename = "country", skip_serializing_if = "Option::is_none")]
pub country: Option<String>,
/// Number that identifies the position of a building on a street. The value
/// must be encrypted.
#[serde(rename = "buildingNumber", skip_serializing_if = "Option::is_none")]
pub building_number: Option<String>,
/// Identifier consisting of a group of letters and/or numbers added to a
/// postal address to assist the sorting of mail. The value must be
/// encrypted.
#[serde(rename = "postCode", skip_serializing_if = "Option::is_none")]
pub post_code: Option<String>,
/// Specifies the type of address. Acceptable values are: - 'HOME':
/// Residential, the home address - 'BIZZ': Business, the business address -
/// 'GEOG': Geographic, an unspecified physical (geographical) address The
/// value must be encrypted.
#[serde(rename = "addressType", skip_serializing_if = "Option::is_none")]
pub address_type: Option<String>,
/// Identification of a division of a large organisation or building. The
/// value must be encrypted.
#[serde(rename = "department", skip_serializing_if = "Option::is_none")]
pub department: Option<String>,
/// Identification of a sub-division of a large organisation or building.
/// The value must be encrypted.
#[serde(rename = "subDepartment", skip_serializing_if = "Option::is_none")]
pub sub_department: Option<String>,
/// Name of the building or house. The value must be encrypted.
#[serde(rename = "buildingName", skip_serializing_if = "Option::is_none")]
pub building_name: Option<String>,
/// Floor or storey within a building. The value must be encrypted.
#[serde(rename = "floor", skip_serializing_if = "Option::is_none")]
pub floor: Option<String>,
/// Numbered box in a post office. The value must be encrypted.
#[serde(rename = "postBox", skip_serializing_if = "Option::is_none")]
pub post_box: Option<String>,
/// Building room number. The value must be encrypted.
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
pub room: Option<String>,
/// Specific location name within the town. The value must be encrypted.
#[serde(rename = "townLocationName", skip_serializing_if = "Option::is_none")]
pub town_location_name: Option<String>,
/// Identifies a subdivision within a country subdivision. The value must be
/// encrypted.
#[serde(rename = "districtName", skip_serializing_if = "Option::is_none")]
pub district_name: Option<String>,
/// Identifies a subdivision of a country, such as a state, region, or
/// province. The value must be encrypted.
#[serde(rename = "countrySubDivision", skip_serializing_if = "Option::is_none")]
pub country_sub_division: Option<String>,
/// Information that locates and identifies a specific address, presented in
/// free-format text. Each item must be encrypted.
#[serde(rename = "addressLine", skip_serializing_if = "Option::is_none")]
pub address_line: Option<Vec<String>>,
}
impl TravelRuleGeographicAddress {
pub fn new() -> TravelRuleGeographicAddress {
TravelRuleGeographicAddress {
street_name: None,
town_name: None,
country: None,
building_number: None,
post_code: None,
address_type: None,
department: None,
sub_department: None,
building_name: None,
floor: None,
post_box: None,
room: None,
town_location_name: None,
district_name: None,
country_sub_division: None,
address_line: None,
}
}
}