Skip to content

Commit

Permalink
feat(CCO-1318): add operatorid field to list charges
Browse files Browse the repository at this point in the history
  • Loading branch information
vitords committed Oct 15, 2024
1 parent 1c8c294 commit 3cb6124
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client_charges.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type ListChargesRequest struct {
// Filter to retrieve charges with specified siteId.
SiteID *int64

// Filter to retrieve charges with specified operatorId.
OperatorID *int64

// Filter to retrieve charges by state.
State *ChargeState

Expand Down Expand Up @@ -78,6 +81,9 @@ func (c *clientImpl) ListCharges(ctx context.Context, request *ListChargesReques
if request.SiteID != nil {
query.Set("siteId", strconv.Itoa(int(*request.SiteID)))
}
if request.OperatorID != nil {
query.Set("operatorId", strconv.Itoa(int(*request.OperatorID)))
}
if request.State != nil {
query.Set("state", string(*request.State))
}
Expand Down

0 comments on commit 3cb6124

Please sign in to comment.