diff --git a/charge.go b/charge.go index bc01b3c..0082b46 100644 --- a/charge.go +++ b/charge.go @@ -85,6 +85,9 @@ type Charge struct { // A note taken for this charge. Note *string `json:"note"` + // The charge point KW recorded during the charge. + ChargePointKw *float64 `json:"chargePointKw"` + // Configured Kwh limit for this charge. KWhLimit *float64 `json:"kwhLimit"` diff --git a/charge_test.go b/charge_test.go index de39ab0..8aa7c7a 100644 --- a/charge_test.go +++ b/charge_test.go @@ -40,6 +40,7 @@ func TestCharge_MarshalJSON(t *testing.T) { "stopReason": "Some reason why the charge stopped.", "paymentMethod": "free", "note": "Lorem Ipsum", + "chargePointKw": 138.56, "kwhLimit": 21, "currency": { "identifier": "DKK",