diff --git a/client/api.go b/client/api.go index 51a1a744ad..49784b0fd7 100644 --- a/client/api.go +++ b/client/api.go @@ -50,6 +50,9 @@ import ( "github.com/stripe/stripe-go/sourcetransaction" "github.com/stripe/stripe-go/sub" "github.com/stripe/stripe-go/subitem" + terminalconnectiontoken "github.com/stripe/stripe-go/terminal/connectiontoken" + terminallocation "github.com/stripe/stripe-go/terminal/location" + terminalreader "github.com/stripe/stripe-go/terminal/reader" "github.com/stripe/stripe-go/token" "github.com/stripe/stripe-go/topup" "github.com/stripe/stripe-go/transfer" @@ -152,6 +155,12 @@ type API struct { Subscriptions *sub.Client // SubscriptionItems is the client used to invoke subscription's items related APIs. SubscriptionItems *subitem.Client + // TerminalConnectionToken is the client used to invoke /terminal/connectiontoken related APIs. + TerminalConnectionToken *terminalconnectiontoken.Client + // TerminalLocation is the client used to invoke /terminal/location related APIs. + TerminalLocation *terminallocation.Client + // TerminalReader is the client used to invoke /terminal/reader related APIs. + TerminalReader *terminalreader.Client // Tokens is the client used to invoke /tokens APIs. Tokens *token.Client // Topups is the client used to invoke /tokens APIs. @@ -219,6 +228,9 @@ func (a *API) Init(key string, backends *stripe.Backends) { a.SourceTransactions = &sourcetransaction.Client{B: backends.API, Key: key} a.Subscriptions = &sub.Client{B: backends.API, Key: key} a.SubscriptionItems = &subitem.Client{B: backends.API, Key: key} + a.TerminalConnectionToken = &terminalconnectiontoken.Client{B: backends.API, Key: key} + a.TerminalLocation = &terminallocation.Client{B: backends.API, Key: key} + a.TerminalReader = &terminalreader.Client{B: backends.API, Key: key} a.Tokens = &token.Client{B: backends.API, Key: key} a.Topups = &topup.Client{B: backends.API, Key: key} a.Transfers = &transfer.Client{B: backends.API, Key: key}