Skip to content

Commit

Permalink
Merge pull request #800 from stripe/remi-fix-usagerecordsummary
Browse files Browse the repository at this point in the history
Add usagerecordsummary to the list of clients
  • Loading branch information
remi-stripe authored Feb 27, 2019
2 parents 83cf936 + 6d3ca5e commit 67abec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import (
"github.com/stripe/stripe-go/topup"
"github.com/stripe/stripe-go/transfer"
"github.com/stripe/stripe-go/usagerecord"
"github.com/stripe/stripe-go/usagerecordsummary"
"github.com/stripe/stripe-go/webhookendpoint"
)

Expand Down Expand Up @@ -182,6 +183,8 @@ type API struct {
Transfers *transfer.Client
// UsageRecords is the client used to invoke usage record related APIs.
UsageRecords *usagerecord.Client
// UsageRecordsummaries is the client used to invoke usage record summary related APIs.
UsageRecordSummaries *usagerecordsummary.Client
// WebhookEndpoints is the client used to invoke usage record related APIs.
WebhookEndpoints *webhookendpoint.Client
}
Expand Down Expand Up @@ -254,6 +257,7 @@ func (a *API) Init(key string, backends *stripe.Backends) {
a.Topups = &topup.Client{B: backends.API, Key: key}
a.Transfers = &transfer.Client{B: backends.API, Key: key}
a.UsageRecords = &usagerecord.Client{B: backends.API, Key: key}
a.UsageRecordSummaries = &usagerecordsummary.Client{B: backends.API, Key: key}
a.WebhookEndpoints = &webhookendpoint.Client{B: backends.API, Key: key}
}

Expand Down

0 comments on commit 67abec6

Please sign in to comment.