forked from stripe/stripe-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
terminal_reader.go
44 lines (39 loc) · 1.57 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
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"`
OperatorAccount *string `form:"operator_account"`
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:"*"`
OperatorAccount *string `form:"operator_account"`
}
// TerminalReaderListParams is the set of parameters that can be used when listing temrinal readers.
type TerminalReaderListParams struct {
ListParams `form:"*"`
Location *string `form:"location"`
OperatorAccount *string `form:"operator_account"`
Status *string `form:"status"`
}
// TerminalReader is the resource representing a Stripe terminal reader.
type TerminalReader struct {
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"`
Location string `json:"location"`
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 {
ListMeta
Data []*TerminalReader `json:"data"`
}