File tree Expand file tree Collapse file tree 5 files changed +8
-2
lines changed
Expand file tree Collapse file tree 5 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ type ChargePoint struct {
4040 // Indicates if a cable is plugged in (true)
4141 CablePluggedIn bool `json:"cablePluggedIn"`
4242
43+ // Brand name for this charge point.
44+ BrandName * string `json:"brandName"`
45+
4346 // External Id of this entity, managed by you.
4447 PartnerExternalID * string `json:"partnerExternalId"`
4548
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ func TestChargePoint_MarshalJSON(t *testing.T) {
2323 "state": "available",
2424 "lastMeterReadingKwh": 913.2,
2525 "cablePluggedIn": true,
26+ "brandName": "Easee",
2627 "partnerExternalId": "abc",
2728 "location": {
2829 "coordinates": {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ func TestChargePointIntegration_MarshalJSON(t *testing.T) {
3030 "state": "available",
3131 "lastMeterReadingKwh": 913.2,
3232 "cablePluggedIn": true,
33+ "brandName": "Easee",
3334 "partnerExternalId": "abc",
3435 "location": {
3536 "coordinates": {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ go 1.23.8
55require (
66 github.com/adrg/xdg v0.5.3
77 github.com/spf13/cobra v1.10.1
8- github.com/spf13/pflag v1.0.9
8+ github.com/spf13/pflag v1.0.10
99 go.einride.tech/monta v0.0.0-00010101000000-000000000000
1010)
1111
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
1212github.com/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
1313github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s =
1414github.com/spf13/cobra v1.10.1 /go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0 =
15- github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY =
1615github.com/spf13/pflag v1.0.9 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
16+ github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk =
17+ github.com/spf13/pflag v1.0.10 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
1718github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
1819github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
1920golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo =
You can’t perform that action at this time.
0 commit comments