diff options
| author | 2024-07-20 17:22:25 +0300 | |
|---|---|---|
| committer | 2024-07-20 17:22:25 +0300 | |
| commit | c70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch) | |
| tree | 56183274b05a294e357bad4d06b523472a1c4a4a /src/types/EncryptedPassportElement.zig | |
| download | ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip | |
Initial commit
Diffstat (limited to 'src/types/EncryptedPassportElement.zig')
| -rw-r--r-- | src/types/EncryptedPassportElement.zig | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/types/EncryptedPassportElement.zig b/src/types/EncryptedPassportElement.zig new file mode 100644 index 0000000..ca0e2ed --- /dev/null +++ b/src/types/EncryptedPassportElement.zig | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | // TODO: Turn this into a tagged union | ||
| 2 | |||
| 3 | const PassportFile = @import("PassportFile.zig"); | ||
| 4 | |||
| 5 | pub const Type = enum { | ||
| 6 | personal_details, | ||
| 7 | passport, | ||
| 8 | driver_license, | ||
| 9 | identity_card, | ||
| 10 | internal_passport, | ||
| 11 | address, | ||
| 12 | utility_bill, | ||
| 13 | bank_statement, | ||
| 14 | rental_agreement, | ||
| 15 | passport_registration, | ||
| 16 | temporary_registration, | ||
| 17 | phone_number, | ||
| 18 | email, | ||
| 19 | }; | ||
| 20 | |||
| 21 | type: Type, | ||
| 22 | data: ?[]const u8, | ||
| 23 | phone_number: ?[]const u8, | ||
| 24 | email: ?[]const u8, | ||
| 25 | files: ?[]PassportFile, | ||
| 26 | front_side: ?PassportFile, | ||
| 27 | reverse_side: ?PassportFile, | ||
| 28 | selfie: ?PassportFile, | ||
| 29 | translation: ?[]PassportFile, | ||
| 30 | hash: []const u8, | ||