summaryrefslogtreecommitdiffstats
path: root/internal/models/npd.go
blob: a1da05ee67ff7aa73b90e8973a36fcab3299e348 (plain)
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
40
41
42
package models

type NPDParams struct {
	ID           string `json:"id,omitempty"`
	FirstName    string `json:"firstname,omitempty"`
	LastName     string `json:"lastname,omitempty"`
	MiddleName   string `json:"middlename,omitempty"`
	DOB          string `json:"dob,omitempty"`
	SSN          string `json:"ssn,omitempty"`
	Phone1       string `json:"phone1,omitempty"`
	Address      string `json:"address,omitempty"`
	City         string `json:"city,omitempty"`
	State        string `json:"st,omitempty"`
	Zip          string `json:"zip,omitempty"`
	CountyName   string `json:"county_name,omitempty"`
	NameSuffix   string `json:"name_suff,omitempty"`
	AKA1FullName string `json:"aka1fullname,omitempty"`
	AKA2FullName string `json:"aka2fullname,omitempty"`
	AKA3FullName string `json:"aka3fullname,omitempty"`
	Alt1DOB      string `json:"alt1dob,omitempty"`
	Alt2DOB      string `json:"alt2dob,omitempty"`
	Alt3DOB      string `json:"alt3dob,omitempty"`
	StartDate    string `json:"startdat,omitempty"`
	MaxHits      int    `json:"max_hits,omitempty"`
	SortBy       string `json:"sort_by,omitempty"`
}

type NPDResponse struct {
	MaxHits int `json:"max_hits"`
	Results struct {
		ElapsedTimeMicros int              `json:"elapsed_time_micros"`
		Errors            []string         `json:"errors"`
		Hits              []map[string]any `json:"hits"`
		NumHits           int              `json:"num_hits"`
	} `json:"results"`
	Credits struct {
		Remaining int  `json:"remaining"`
		Unlimited bool `json:"unlimited"`
	} `json:"credits"`
	Message string `json:"message,omitempty"`
	Error   string `json:"error,omitempty"`
}