pub struct TerminalReader {
pub action: Option<TerminalReaderReaderResourceReaderAction>,
pub device_sw_version: Option<String>,
pub device_type: TerminalReaderDeviceType,
pub id: TerminalReaderId,
pub ip_address: Option<String>,
pub label: String,
pub livemode: bool,
pub location: Option<Expandable<TerminalLocation>>,
pub metadata: HashMap<String, String>,
pub serial_number: String,
pub status: Option<TerminalReaderStatus>,
}Expand description
A Reader represents a physical device for accepting payment details.
Related guide: Connecting to a reader
For more details see <https://stripe.com/docs/api/terminal/readers/object>.
Fields§
§action: Option<TerminalReaderReaderResourceReaderAction>The most recent action performed by the reader.
device_sw_version: Option<String>The current software version of the reader.
device_type: TerminalReaderDeviceTypeDevice type of the reader.
id: TerminalReaderIdUnique identifier for the object.
ip_address: Option<String>The local IP address of the reader.
label: StringCustom label given to the reader for easier identification.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
location: Option<Expandable<TerminalLocation>>The location identifier of the reader.
metadata: HashMap<String, String>Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
serial_number: StringSerial number of the reader.
status: Option<TerminalReaderStatus>The networking status of the reader. We do not recommend using this field in flows that may block taking payments.
Trait Implementations§
Source§impl Clone for TerminalReader
impl Clone for TerminalReader
Source§fn clone(&self) -> TerminalReader
fn clone(&self) -> TerminalReader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more