diff --git a/package-lock.json b/package-lock.json index d2ef3940..c4cf55b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.10", - "@seamapi/types": "1.772.0", + "@seamapi/types": "1.777.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -533,9 +533,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.772.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.772.0.tgz", - "integrity": "sha512-/MFq/zRLLo4/QDgOR1jIPWfqGeAAlH4plSRLJ0njdfV0AHFqODlCUp8uE2oOO6LYsNOXXPltG1hLR6TDIMBXPg==", + "version": "1.777.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.777.0.tgz", + "integrity": "sha512-zXmpm98Utk2Qq7r/XwehMpILeQ3uz7MpVe5HGOQILVxbOysmrjOBa9DyCXqzgQVZL+FgJgwp0BsIrCNqAk1ZAQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index ed2099ed..076b7772 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.10", - "@seamapi/types": "1.772.0", + "@seamapi/types": "1.777.0", "del": "^7.1.0", "prettier": "^3.0.0" } diff --git a/src/Objects/Device.php b/src/Objects/Device.php index 894bb9a9..944568b8 100644 --- a/src/Objects/Device.php +++ b/src/Objects/Device.php @@ -67,10 +67,10 @@ public static function from_json(mixed $json): Device|null device_provider: isset($json->device_provider) ? DeviceDeviceProvider::from_json($json->device_provider) : null, - nickname: $json->nickname ?? null, location: isset($json->location) ? DeviceLocation::from_json($json->location) : null, + nickname: $json->nickname ?? null, ); } @@ -110,7 +110,7 @@ public function __construct( public bool|null $can_unlock_with_code, public DeviceDeviceManufacturer|null $device_manufacturer, public DeviceDeviceProvider|null $device_provider, - public string|null $nickname, public DeviceLocation|null $location, + public string|null $nickname, ) {} } diff --git a/src/Objects/DeviceLocation.php b/src/Objects/DeviceLocation.php index 7029d2d2..6dcf100f 100644 --- a/src/Objects/DeviceLocation.php +++ b/src/Objects/DeviceLocation.php @@ -11,12 +11,14 @@ public static function from_json(mixed $json): DeviceLocation|null } return new self( location_name: $json->location_name ?? null, + time_zone: $json->time_zone ?? null, timezone: $json->timezone ?? null, ); } public function __construct( public string|null $location_name, + public string|null $time_zone, public string|null $timezone, ) {} } diff --git a/src/Objects/UnmanagedDeviceLocation.php b/src/Objects/UnmanagedDeviceLocation.php index a08f5844..5c857e31 100644 --- a/src/Objects/UnmanagedDeviceLocation.php +++ b/src/Objects/UnmanagedDeviceLocation.php @@ -11,12 +11,14 @@ public static function from_json(mixed $json): UnmanagedDeviceLocation|null } return new self( location_name: $json->location_name ?? null, + time_zone: $json->time_zone ?? null, timezone: $json->timezone ?? null, ); } public function __construct( public string|null $location_name, + public string|null $time_zone, public string|null $timezone, ) {} }