Skip to content

Commit e4e4fc1

Browse files
committed
Generation code.
1 parent ceb1ac6 commit e4e4fc1

File tree

21 files changed

+2465
-239
lines changed

21 files changed

+2465
-239
lines changed

Cargo.lock

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ hex = "0.4"
2020
base64 = "0.22.1"
2121
lazy_static = "1.5.0"
2222

23+
[dependencies.chrono]
24+
version = "0.4.41"
25+
features = ["std", "serde"]
26+
optional = true
27+
2328
[dependencies.snafu]
2429
version = "0.8.6"
2530
features = ["std"]
@@ -72,5 +77,6 @@ keetanetwork-utils = { git = "ssh://git@github.com/KeetaNetwork/node-rs.git", br
7277
] }
7378

7479
[features]
75-
default = ["serde"]
80+
default = ["serde", "chrono"]
7681
serde = ["dep:serde", "dep:serde_json", "keetanetwork-asn1/serde"]
82+
chrono = ["dep:chrono"]

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ do-lint-ci:
5959
# Test crate packages features
6060
test-feat:
6161
cargo test --no-default-features --features serde
62+
cargo test --no-default-features --features chrono
6263

6364
# Run tests with host system's default target
6465
test:

asn1/iso20022.asn

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
Iso20022 DEFINITIONS AUTOMATIC TAGS ::= BEGIN
2+
3+
Country ::= UTF8String --1.3.6.1.4.1.62675.1.2.0
4+
CountrySubDivision ::= UTF8String --1.3.6.1.4.1.62675.1.2.1
5+
PostalCode ::= UTF8String --1.3.6.1.4.1.62675.1.2.3
6+
TownName ::= UTF8String --1.3.6.1.4.1.62675.1.2.4
7+
BuildingNumber ::= UTF8String --1.3.6.1.4.1.62675.1.2.5
8+
StreetName ::= UTF8String --1.3.6.1.4.1.62675.1.2.6
9+
AddressLines ::= SEQUENCE OF UTF8String --1.3.6.1.4.1.62675.1.2.7
10+
SubDepartment ::= UTF8String --1.3.6.1.4.1.62675.1.2.8
11+
Department ::= UTF8String --1.3.6.1.4.1.62675.1.2.9
12+
EmailAddressPurpose ::= UTF8String --1.3.6.1.4.1.62675.1.3.0
13+
FullName ::= UTF8String --1.3.6.1.4.1.62675.1.0
14+
BirthDate ::= GeneralizedTime --1.3.6.1.4.1.62675.1.1
15+
EmailAddress ::= UTF8String --1.3.6.1.4.1.62675.1.3
16+
PhoneNumber ::= UTF8String --1.3.6.1.4.1.62675.1.4
17+
JobTitle ::= UTF8String --1.3.6.1.4.1.62675.1.6
18+
JobResponsibility ::= UTF8String --1.3.6.1.4.1.62675.1.6.1
19+
Id ::= UTF8String --1.3.6.1.4.1.62675.1.7
20+
Issuer ::= UTF8String --1.3.6.1.4.1.62675.1.7.1
21+
22+
AddressType ::= CHOICE { -- 1.3.6.1.4.1.62675.1.2.10
23+
code [0] IMPLICIT UTF8String,
24+
proprietary [1] IMPLICIT UTF8String
25+
}
26+
27+
OrganizationIdentificationSchemeNameChoice ::= CHOICE { -- 1.3.6.1.4.1.62675.1.8.0.2
28+
code [0] IMPLICIT UTF8String,
29+
proprietary [1] IMPLICIT UTF8String
30+
}
31+
32+
PersonIdentificationSchemeNameChoice ::= CHOICE { -- 1.3.6.1.4.1.62675.1.8.1.1
33+
code [0] IMPLICIT UTF8String,
34+
proprietary [1] IMPLICIT UTF8String
35+
}
36+
37+
Address ::= SEQUENCE { --1.3.6.1.4.1.62675.1.2
38+
addressLines AddressLines OPTIONAL,
39+
addressType AddressType OPTIONAL,
40+
buildingNumber BuildingNumber OPTIONAL,
41+
country Country OPTIONAL,
42+
countrySubDivision CountrySubDivision OPTIONAL,
43+
department Department OPTIONAL,
44+
postalCode PostalCode OPTIONAL,
45+
streetName StreetName OPTIONAL,
46+
subDepartment SubDepartment OPTIONAL,
47+
townName TownName OPTIONAL
48+
}
49+
50+
DateAndPlaceOfBirth ::= SEQUENCE { --1.3.6.1.4.1.62675.1.5
51+
birthDate BirthDate,
52+
cityOfBirth TownName,
53+
countryOfBirth Country,
54+
provinceOfBirth CountrySubDivision OPTIONAL
55+
}
56+
57+
ContactDetails ::= SEQUENCE { --1.3.6.1.4.1.62675.1.9
58+
department Department OPTIONAL,
59+
emailAddress EmailAddress OPTIONAL,
60+
emailPurpose EmailAddressPurpose OPTIONAL,
61+
faxNumber PhoneNumber OPTIONAL,
62+
fullName FullName OPTIONAL,
63+
jobResponsibility JobResponsibility OPTIONAL,
64+
jobTitle JobTitle OPTIONAL,
65+
mobileNumber PhoneNumber OPTIONAL,
66+
namePrefix NamePrefixCode OPTIONAL,
67+
other SEQUENCE OF OtherContact OPTIONAL,
68+
phoneNumber PhoneNumber OPTIONAL,
69+
preferredMethod PreferredContactMethodCode OPTIONAL
70+
}
71+
72+
OrganizationIdentification ::= SEQUENCE { --1.3.6.1.4.1.62675.1.8.0
73+
bic UTF8String OPTIONAL,
74+
lei UTF8String OPTIONAL,
75+
other SEQUENCE OF GenericOrganizationIdentification OPTIONAL
76+
}
77+
78+
GenericOrganizationIdentification ::= SEQUENCE { --1.3.6.1.4.1.62675.1.8.0.1
79+
id Id,
80+
issuer Issuer OPTIONAL,
81+
schemeName OrganizationIdentificationSchemeNameChoice OPTIONAL
82+
}
83+
84+
PersonIdentification ::= SEQUENCE { --1.3.6.1.4.1.62675.1.8.1
85+
dateAndPlaceOfBirth DateAndPlaceOfBirth OPTIONAL,
86+
other SEQUENCE OF GenericPersonIdentification OPTIONAL
87+
}
88+
89+
GenericPersonIdentification ::= SEQUENCE { --1.3.6.1.4.1.62675.1.8.1.0
90+
id Id,
91+
issuer Issuer OPTIONAL,
92+
schemeName PersonIdentificationSchemeNameChoice OPTIONAL
93+
}
94+
95+
OtherContact ::= SEQUENCE { --1.3.6.1.4.1.62675.1.9.1
96+
channelType UTF8String,
97+
id Id OPTIONAL
98+
}
99+
100+
EntityType ::= CHOICE { --1.3.6.1.4.1.62675.1.8
101+
organization [0] IMPLICIT OrganizationIdentification,
102+
person [1] IMPLICIT PersonIdentification
103+
}
104+
105+
NamePrefixCode ::= ENUMERATED { --1.3.6.1.4.1.62675.1.0.0
106+
DOCT, MIST, MISS, MIKS, MME
107+
}
108+
109+
PreferredContactMethodCode ::= ENUMERATED { --1.3.6.1.4.1.62675.1.9.0
110+
LETT, MAIL, PHON, FAXX, CELL
111+
}
112+
113+
END

0 commit comments

Comments
 (0)