-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
39 lines (31 loc) · 935 Bytes
/
model.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
32
33
34
35
36
37
38
39
package main
import (
"encoding/json"
)
type RequirementStatusType string
const (
Filled RequirementStatusType = "filled"
Unfilled RequirementStatusType = "unfilled"
)
type Requirement struct {
ID int `json:"id"`
UserUUID string `json:"user_uuid"`
Value *json.RawMessage `json:"value"`
RequirementType string `json:"requirement_type"`
}
type RequirementProviderType string
const (
Rain RequirementProviderType = "rain"
Onfido RequirementProviderType = "onfido"
Compliance RequirementProviderType = "compliance"
S3 RequirementProviderType = "s3"
)
type NationalitySchema struct {
ResidenceCountryCode string `json:"residence_country_code"`
NationalityCountries []string `json:"nationality_countries"`
}
type CSVSheet struct {
UUID string `csv:"uid"`
Country string `csv:"country"`
Residence string `csv:"nationality"`
}