-
Notifications
You must be signed in to change notification settings - Fork 467
/
Copy pathterminal_connectiontoken.go
26 lines (23 loc) · 1.12 KB
/
terminal_connectiontoken.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
type TerminalConnectionTokenParams struct {
Params `form:"*"`
Location string `form:"location"`
}
// A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
//
// Related guide: [Fleet Management](https://stripe.com/docs/terminal/fleet/locations).
type TerminalConnectionToken struct {
APIResource
// The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/docs/terminal/fleet/locations#connection-tokens).
Location string `json:"location"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// Your application should pass this token to the Stripe Terminal SDK.
Secret string `json:"secret"`
}