Skip to content

Commit

Permalink
Add Terminal bindings to clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lisivick committed Oct 19, 2018
1 parent 5d00b1a commit 6cc7196
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 6cc7196

Please sign in to comment.