-
Notifications
You must be signed in to change notification settings - Fork 448
/
terminal_reader.go
48 lines (43 loc) · 1.76 KB
/
terminal_reader.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
48
package stripe
// TerminalReaderParams is the set of parameters that can be used for creating or updating a terminal reader.
type TerminalReaderParams struct {
Params `form:"*"`
Label *string `form:"label"`
Location *string `form:"location"`
RegistrationCode *string `form:"registration_code"`
}
// TerminalReaderGetParams is the set of parameters that can be used to get a terminal reader.
type TerminalReaderGetParams struct {
Params `form:"*"`
}
// TerminalReaderListParams is the set of parameters that can be used when listing temrinal readers.
type TerminalReaderListParams struct {
ListParams `form:"*"`
DeviceType *string `form:"device_type"`
Location *string `form:"location"`
Status *string `form:"status"`
}
// TerminalReader is the resource representing a Stripe terminal reader.
type TerminalReader struct {
APIResource
Deleted bool `json:"deleted"`
DeviceSwVersion string `json:"device_sw_version"`
DeviceType string `json:"device_type"`
ID string `json:"id"`
IPAddress string `json:"ip_address"`
Label string `json:"label"`
Livemode bool `json:"livemode"`
Location string `json:"location"`
Metadata map[string]string `json:"metadata"`
Object string `json:"object"`
SerialNumber string `json:"serial_number"`
Status string `json:"status"`
}
// TerminalReaderList is a list of terminal readers as retrieved from a list endpoint.
type TerminalReaderList struct {
APIResource
ListMeta
Data []*TerminalReader `json:"data"`
Location *string `json:"location"`
Status *string `json:"status"`
}