From 6d3ca5eb1914f83d705d8c51572640b04c0c0422 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Tue, 26 Feb 2019 18:49:43 -0800 Subject: [PATCH] Add usagerecordsummary to the list of clients --- client/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/api.go b/client/api.go index 7bffca32d0..49e4d4205a 100644 --- a/client/api.go +++ b/client/api.go @@ -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" ) @@ -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 } @@ -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} }