From 0f4dc729140e35d48d00e4f99d4e7ffd714b1fe9 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Thu, 3 Nov 2022 10:02:37 -0700 Subject: [PATCH] Add missing field for details responses --- godep/device.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/godep/device.go b/godep/device.go index 77523b4..b87bd00 100644 --- a/godep/device.go +++ b/godep/device.go @@ -22,9 +22,13 @@ type Device struct { DeviceAssignedBy string `json:"device_assigned_by,omitempty"` OS string `json:"os,omitempty"` DeviceFamily string `json:"device_family,omitempty"` - // fetch/sync-only fields + + // OpType and OpDate are only populated from the sync endpoint OpType string `json:"op_type,omitempty"` OpDate time.Time `json:"op_date,omitempty"` + + // ResponseStatus is only populated from the details endpoint + ResponseStatus string `json:"response_status,omitempty"` } // deviceRequest corresponds to the Apple DEP API "FetchDeviceRequest" and