Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata and livemode to Terminal Reader and Location #1005

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions terminal_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type TerminalLocation struct {
Deleted bool `json:"deleted"`
DisplayName string `json:"display_name"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
Metadata map[string]string `json:"metadata"`
Object string `json:"object"`
}

Expand Down
22 changes: 12 additions & 10 deletions terminal_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ type TerminalReaderListParams struct {

// 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"`
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.
Expand Down