import type * as Square from "../index"; /** * The wrapper object for the component entries of a given component type. */ export interface Component { /** * The type of this component. Each component type has expected properties expressed * in a structured format within its corresponding `*_details` field. * See [ComponentType](#type-componenttype) for possible values */ type: Square.ComponentComponentType; /** Structured data for an `Application`, set for Components of type `APPLICATION`. */ applicationDetails?: Square.DeviceComponentDetailsApplicationDetails; /** Structured data for a `CardReader`, set for Components of type `CARD_READER`. */ cardReaderDetails?: Square.DeviceComponentDetailsCardReaderDetails; /** Structured data for a `Battery`, set for Components of type `BATTERY`. */ batteryDetails?: Square.DeviceComponentDetailsBatteryDetails; /** Structured data for a `WiFi` interface, set for Components of type `WIFI`. */ wifiDetails?: Square.DeviceComponentDetailsWiFiDetails; /** Structured data for an `Ethernet` interface, set for Components of type `ETHERNET`. */ ethernetDetails?: Square.DeviceComponentDetailsEthernetDetails; }