-
Notifications
You must be signed in to change notification settings - Fork 0
/
breakdown.go
31 lines (23 loc) · 881 Bytes
/
breakdown.go
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
package onfido
const (
BreakdownClear BreakdownResult = "clear"
BreakdownConsider BreakdownResult = "consider"
BreakdownUnidentified BreakdownResult = "unidentified"
SubBreakdownClear BreakdownSubResult = "clear"
SubBreakdownConsider BreakdownSubResult = "consider"
SubBreakdownUnidentified BreakdownSubResult = "unidentified"
)
// BreakdownResult represents a report's breakdown result
type BreakdownResult string
// BreakdownSubResult represents a report's sub-breakdown result
type BreakdownSubResult string
type Breakdowns map[string]Breakdown
type Breakdown struct {
Result *BreakdownResult `json:"result"`
SubBreakdowns SubBreakdowns `json:"breakdown"`
}
type SubBreakdowns map[string]SubBreakdown
type SubBreakdown struct {
Result *BreakdownSubResult `json:"result"`
Properties Properties `json:"properties"`
}