-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuthEntities.go
70 lines (57 loc) · 1.78 KB
/
AuthEntities.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package b2binpay
type AuthRequest struct {
Data AuthRequestData `json:"data"`
}
type AuthRequestData struct {
Type string `json:"type"`
Attributes AuthRequestAttributes `json:"attributes"`
}
type AuthRequestAttributes struct {
Login string `json:"login"`
Password string `json:"password"`
}
type AuthResponse struct {
Data AuthResponseData `json:"data"`
Meta AuthResponseMeta `json:"meta"`
}
type AuthResponseData struct {
Type string `json:"type"`
ID string `json:"id"`
Attributes AuthResponseAttributes `json:"attributes"`
}
type AuthResponseAttributes struct {
Refresh string `json:"refresh"`
Access string `json:"access"`
AccessExpiredAt string `json:"access_expired_at"`
RefreshExpiredAt string `json:"refresh_expired_at"`
Is2FAConfirmed bool `json:"is_2fa_confirmed"`
}
type AuthResponseMeta struct {
Time string `json:"time"`
Sign string `json:"sign"`
}
type RefreshRequest struct {
Data RefreshRequestData `json:"data"`
}
type RefreshRequestData struct {
Type string `json:"type"`
Attributes RefreshRequestAttributes `json:"attributes"`
}
type RefreshRequestAttributes struct {
Refresh string `json:"refresh"`
}
type RefreshResponse struct {
Data RefreshResponseData `json:"data"`
}
type RefreshResponseData struct {
Type string `json:"type"`
ID string `json:"id"`
Attributes RefreshResponseAttributes `json:"attributes"`
}
type RefreshResponseAttributes struct {
Refresh string `json:"refresh"`
Access string `json:"access"`
AccessExpiredAt string `json:"access_expired_at"`
RefreshExpiredAt string `json:"refresh_expired_at"`
Is2FAConfirmed bool `json:"is_2fa_confirmed"`
}