forked from clerk/clerk-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
email_address.go
29 lines (25 loc) · 1.12 KB
/
email_address.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
package clerk
import "encoding/json"
type EmailAddress struct {
APIResource
ID string `json:"id"`
Object string `json:"object"`
EmailAddress string `json:"email_address"`
Reserved bool `json:"reserved"`
Verification *Verification `json:"verification"`
LinkedTo []*LinkedIdentification `json:"linked_to"`
}
type Verification struct {
Status string `json:"status"`
Strategy string `json:"strategy"`
Attempts *int64 `json:"attempts"`
ExpireAt *int64 `json:"expire_at"`
VerifiedAtClient string `json:"verified_at_client,omitempty"`
Nonce *string `json:"nonce,omitempty"`
ExternalVerificationRedirectURL *string `json:"external_verification_redirect_url,omitempty"`
Error json.RawMessage `json:"error,omitempty"`
}
type LinkedIdentification struct {
ID string `json:"id"`
Type string `json:"type"`
}