Skip to content

Commit

Permalink
feat: add ChargePointKw field to charge
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingBoulderingRepeat committed Nov 17, 2023
1 parent 4db5eca commit 81fcac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down
1 change: 1 addition & 0 deletions charge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 81fcac3

Please sign in to comment.