Skip to content

Commit 326ad4c

Browse files
committed
feat: add brand name
VEH-3044
1 parent 796e317 commit 326ad4c

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

chargepoint.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

chargepoint_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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": {

chargepointintegration_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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": {

cmd/monta/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.8
55
require (
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

cmd/monta/go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
1212
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
1313
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
1414
github.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=
1615
github.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=
1718
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
1819
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
1920
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=

0 commit comments

Comments
 (0)