-
Notifications
You must be signed in to change notification settings - Fork 448
/
terminal_reader.go
64 lines (56 loc) · 2.32 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// TerminalReaderDeviceType is the type of the terminal read.er device.
type TerminalReaderDeviceType string
// List of values that TerminalReaderDeviceType can take
const (
TerminalReaderDeviceTypeBBPOSChipper2X TerminalReaderDeviceType = "bbpos_chipper2x"
TerminalReaderDeviceTypeBBPOSWisePOSE TerminalReaderDeviceType = "bbpos_wisepos_e"
TerminalReaderDeviceTypeVerifoneP400 TerminalReaderDeviceType = "verifone_P400"
)
// 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 TerminalReaderDeviceType `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"`
}