-
Notifications
You must be signed in to change notification settings - Fork 448
/
terminal_location.go
47 lines (42 loc) · 1.5 KB
/
terminal_location.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// Retrieves a Location object.
type TerminalLocationParams struct {
Params `form:"*"`
// The full address of the location.
Address *AccountAddressParams `form:"address"`
// A name for the location.
DisplayName *string `form:"display_name"`
}
// Returns a list of Location objects.
type TerminalLocationListParams struct {
ListParams `form:"*"`
}
// A Location represents a grouping of readers.
//
// Related guide: [Fleet Management](https://stripe.com/docs/terminal/fleet/locations).
type TerminalLocation struct {
APIResource
Address *AccountAddressParams `json:"address"`
Deleted bool `json:"deleted"`
// The display name of the location.
DisplayName string `json:"display_name"`
// Unique identifier for the object.
ID string `json:"id"`
// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
Livemode bool `json:"livemode"`
// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Metadata map[string]string `json:"metadata"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
}
// TerminalLocationList is a list of Locations as retrieved from a list endpoint.
type TerminalLocationList struct {
APIResource
ListMeta
Data []*TerminalLocation `json:"data"`
}