-
Notifications
You must be signed in to change notification settings - Fork 1
/
chargepoint.go
72 lines (50 loc) · 1.86 KB
/
chargepoint.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
71
72
package monta
import "time"
// ChargePoint is a charging point.
type ChargePoint struct {
// ID of this charge point.
ID int64 `json:"id"`
// ID of the site
SiteID *int64 `json:"siteId"`
// ID of the team.
TeamID int64 `json:"teamId"`
// Serial number of this charge point.
SerialNumber *string `json:"serialNumber"`
// Name of the site.
Name *string `json:"name"`
// Indicates if this charge point is public or private.
Visibility Visibility `json:"visibility"`
// Max KW available at this charge point.
MaxKW *float64 `json:"maxKW"`
// Type of charge point (AC / DC).
Type *ChargePointType `json:"type"`
// A note you have entered for this charge point, e.g. via our Portal.
Note *string `json:"note"`
// State of the charge point.
State *ChargePointState `json:"state"`
// Last meter reading (KWH) for this charge point.
LastMeterReadingKwh *float64 `json:"lastMeterReadingKwh"`
// Indicates if a cable is plugged in (true)
CablePluggedIn bool `json:"cablePluggedIn"`
// External Id of this entity, managed by you.
PartnerExternalID *string `json:"partnerExternalId"`
// Location of the charge point.
Location Location `json:"location"`
// List of supported connector types at this charge point.
Connectors []Connector `json:"connectors"`
// DeepLinks to the charge point.
DeepLinks ChargePointDeepLinks `json:"deeplinks"`
// When the charge point was created.
CreatedAt time.Time `json:"createdAt"`
// When the charge point was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// Operator of this charge point
Operator *Operator `json:"operator"`
}
// ChargePointDeepLinks contains deep-links to a charge point.
type ChargePointDeepLinks struct {
// Follow this link to open the Monta App with this charge point.
App string `json:"app"`
// Follow this link to open the Monta Web App with this charge point.
Web string `json:"web"`
}