HEX
Server: Apache
System: Linux andromeda.lojoweb.com 4.18.0-372.26.1.el8_6.x86_64 #1 SMP Tue Sep 13 06:07:14 EDT 2022 x86_64
User: nakedfoamlojoweb (1056)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/woocommerce-square/vendor/square/square/doc/models/device.md
# Device

## Structure

`Device`

## Fields

| Name | Type | Tags | Description | Getter | Setter |
|  --- | --- | --- | --- | --- | --- |
| `id` | `?string` | Optional | A synthetic identifier for the device. The identifier includes a standardized prefix and<br>is otherwise an opaque id generated from key device fields. | getId(): ?string | setId(?string id): void |
| `attributes` | [`DeviceAttributes`](../../doc/models/device-attributes.md) | Required | - | getAttributes(): DeviceAttributes | setAttributes(DeviceAttributes attributes): void |
| `components` | [`?(Component[])`](../../doc/models/component.md) | Optional | A list of components applicable to the device. | getComponents(): ?array | setComponents(?array components): void |
| `status` | [`?DeviceStatus`](../../doc/models/device-status.md) | Optional | - | getStatus(): ?DeviceStatus | setStatus(?DeviceStatus status): void |

## Example (as JSON)

```json
{
  "attributes": {
    "type": "TERMINAL",
    "manufacturer": "manufacturer2",
    "model": "model2",
    "name": "name4",
    "manufacturers_id": "manufacturers_id0",
    "updated_at": "updated_at0",
    "version": "version0"
  },
  "id": "id0",
  "components": [
    {
      "type": "BATTERY",
      "application_details": {
        "application_type": "TERMINAL_API",
        "version": "version4",
        "session_location": "session_location0",
        "device_code_id": "device_code_id2"
      },
      "card_reader_details": {
        "version": "version0"
      },
      "battery_details": {
        "visible_percent": 108,
        "external_power": "AVAILABLE_CHARGING"
      },
      "wifi_details": {
        "active": false,
        "ssid": "ssid8",
        "ip_address_v4": "ip_address_v42",
        "secure_connection": "secure_connection8",
        "signal_strength": {
          "value": 222
        }
      },
      "ethernet_details": {
        "active": false,
        "ip_address_v4": "ip_address_v42"
      }
    },
    {
      "type": "BATTERY",
      "application_details": {
        "application_type": "TERMINAL_API",
        "version": "version4",
        "session_location": "session_location0",
        "device_code_id": "device_code_id2"
      },
      "card_reader_details": {
        "version": "version0"
      },
      "battery_details": {
        "visible_percent": 108,
        "external_power": "AVAILABLE_CHARGING"
      },
      "wifi_details": {
        "active": false,
        "ssid": "ssid8",
        "ip_address_v4": "ip_address_v42",
        "secure_connection": "secure_connection8",
        "signal_strength": {
          "value": 222
        }
      },
      "ethernet_details": {
        "active": false,
        "ip_address_v4": "ip_address_v42"
      }
    },
    {
      "type": "BATTERY",
      "application_details": {
        "application_type": "TERMINAL_API",
        "version": "version4",
        "session_location": "session_location0",
        "device_code_id": "device_code_id2"
      },
      "card_reader_details": {
        "version": "version0"
      },
      "battery_details": {
        "visible_percent": 108,
        "external_power": "AVAILABLE_CHARGING"
      },
      "wifi_details": {
        "active": false,
        "ssid": "ssid8",
        "ip_address_v4": "ip_address_v42",
        "secure_connection": "secure_connection8",
        "signal_strength": {
          "value": 222
        }
      },
      "ethernet_details": {
        "active": false,
        "ip_address_v4": "ip_address_v42"
      }
    }
  ],
  "status": {
    "category": "AVAILABLE"
  }
}
```