summaryrefslogtreecommitdiff
path: root/src/types/EncryptedPassportElement.zig
blob: ca0e2ed28c5560d3ca6b592b022b511ac46f76d7 (plain) (blame)
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
// TODO: Turn this into a tagged union

const PassportFile = @import("PassportFile.zig");

pub const Type = enum {
    personal_details,
    passport,
    driver_license,
    identity_card,
    internal_passport,
    address,
    utility_bill,
    bank_statement,
    rental_agreement,
    passport_registration,
    temporary_registration,
    phone_number,
    email,
};

type: Type,
data: ?[]const u8,
phone_number: ?[]const u8,
email: ?[]const u8,
files: ?[]PassportFile,
front_side: ?PassportFile,
reverse_side: ?PassportFile,
selfie: ?PassportFile,
translation: ?[]PassportFile,
hash: []const u8,