From ce2fedfcd94f5f1459049ba49eff75e2d3b8620c Mon Sep 17 00:00:00 2001 From: Orkun Date: Tue, 23 Jul 2024 15:56:51 +0300 Subject: [PATCH] feat: remove raw response and introduce with http info --- run_checks.php | 18 +- scripts/generate.sh | 12 - src/Api/FingerprintApi.php | 60 +++- src/ApiException.php | 3 +- src/Configuration.php | 2 +- src/Model/ASN.php | 9 +- src/Model/BotdDetectionResult.php | 13 +- src/Model/BotdResult.php | 9 +- src/Model/BrowserDetails.php | 9 +- src/Model/ClonedAppResult.php | 9 +- src/Model/Confidence.php | 9 +- src/Model/DataCenter.php | 9 +- src/Model/DeprecatedIPLocation.php | 9 +- src/Model/DeprecatedIPLocationCity.php | 9 +- src/Model/EmulatorResult.php | 9 +- src/Model/ErrorEvent403Response.php | 9 +- src/Model/ErrorEvent403ResponseError.php | 15 +- src/Model/ErrorEvent404Response.php | 9 +- src/Model/ErrorEvent404ResponseError.php | 9 +- src/Model/ErrorVisits403.php | 9 +- src/Model/EventResponse.php | 9 +- src/Model/FactoryResetResult.php | 9 +- src/Model/FridaResult.php | 9 +- src/Model/HighActivityResult.php | 9 +- src/Model/IPLocation.php | 9 +- src/Model/IPLocationCity.php | 9 +- src/Model/IdentificationError.php | 11 +- src/Model/IncognitoResult.php | 9 +- src/Model/IpBlockListResult.php | 9 +- src/Model/IpBlockListResultDetails.php | 9 +- src/Model/IpInfoResult.php | 9 +- src/Model/IpInfoResultV4.php | 9 +- src/Model/IpInfoResultV6.php | 9 +- src/Model/JailbrokenResult.php | 9 +- src/Model/Location.php | 9 +- src/Model/LocationSpoofingResult.php | 9 +- src/Model/ManyRequestsResponse.php | 9 +- src/Model/PrivacySettingsResult.php | 9 +- src/Model/ProductError.php | 11 +- src/Model/ProductsResponse.php | 9 +- src/Model/ProductsResponseBotd.php | 9 +- src/Model/ProductsResponseIdentification.php | 9 +- .../ProductsResponseIdentificationData.php | 9 +- src/Model/ProxyResult.php | 9 +- src/Model/RawDeviceAttributesResult.php | 9 +- src/Model/Response.php | 9 +- src/Model/ResponseVisits.php | 9 +- src/Model/RootAppsResult.php | 9 +- src/Model/SeenAt.php | 9 +- src/Model/SignalResponseClonedApp.php | 9 +- src/Model/SignalResponseEmulator.php | 9 +- src/Model/SignalResponseFactoryReset.php | 9 +- src/Model/SignalResponseFrida.php | 9 +- src/Model/SignalResponseHighActivity.php | 9 +- src/Model/SignalResponseIncognito.php | 9 +- src/Model/SignalResponseIpBlocklist.php | 9 +- src/Model/SignalResponseIpInfo.php | 9 +- src/Model/SignalResponseJailbroken.php | 9 +- src/Model/SignalResponseLocationSpoofing.php | 9 +- src/Model/SignalResponsePrivacySettings.php | 9 +- src/Model/SignalResponseProxy.php | 9 +- .../SignalResponseRawDeviceAttributes.php | 9 +- src/Model/SignalResponseRootApps.php | 9 +- src/Model/SignalResponseSuspectScore.php | 9 +- src/Model/SignalResponseTampering.php | 9 +- src/Model/SignalResponseTor.php | 9 +- src/Model/SignalResponseVirtualMachine.php | 9 +- src/Model/SignalResponseVpn.php | 9 +- src/Model/Subdivision.php | 9 +- src/Model/SuspectScoreResult.php | 9 +- src/Model/TamperingResult.php | 9 +- src/Model/TorResult.php | 9 +- src/Model/VirtualMachineResult.php | 9 +- src/Model/Visit.php | 9 +- src/Model/VpnResult.php | 9 +- src/Model/VpnResultMethods.php | 9 +- src/Model/WebhookVisit.php | 9 +- src/ObjectSerializer.php | 20 ++ src/Traits/WithRawResponse.php | 18 -- template/ObjectSerializer.mustache | 20 ++ template/api.mustache | 30 +- template/model_generic.mustache | 1 - test/FingerprintApiTest.php | 76 +++-- .../get_event_200_with_broken_format.json | 283 ++++++++++++++++++ 84 files changed, 745 insertions(+), 460 deletions(-) delete mode 100644 src/Traits/WithRawResponse.php create mode 100644 test/mocks/get_event_200_with_broken_format.json diff --git a/run_checks.php b/run_checks.php index d4cb807e..dd56a4bc 100644 --- a/run_checks.php +++ b/run_checks.php @@ -44,26 +44,16 @@ error_reporting(error_reporting() & ~E_DEPRECATED); try { - $result = $client->getVisits($visitor_id); - $rawResponseDecoded = json_decode($result->getRawResponse(), true); - if ($rawResponseDecoded['visitorId'] !== $visitor_id) { - fwrite(STDERR, sprintf("Raw response for getVisits not working")); - exit(1); - } - fwrite(STDOUT, sprintf("Got visits: %s \n", $result->getRawResponse())); + list($result, $body) = $client->getVisitsWithHttpInfo($visitor_id); + fwrite(STDOUT, sprintf("Got visits: %s \n", $body)); } catch (Exception $e) { fwrite(STDERR, sprintf("Exception when calling FingerprintApi->getVisits: %s\n", $e->getMessage())); exit(1); } try { - $result = $client->getEvent($request_id); - $rawResponseDecoded = json_decode($result->getRawResponse(), true); - if ($rawResponseDecoded['products']['identification']['data']['requestId'] !== $request_id) { - fwrite(STDERR, sprintf("Raw response for getEvent not working")); - exit(1); - } - fwrite(STDOUT, sprintf("\n\nGot event: %s \n", $result->getRawResponse())); + list($result, $body) = $client->getEventWithHttpInfo($request_id); + fwrite(STDOUT, sprintf("\n\nGot event: %s \n", $body)); } catch (Exception $e) { fwrite(STDERR, sprintf("\n\nException when calling FingerprintApi->getVisits: %s\n", $e->getMessage())); exit(1); diff --git a/scripts/generate.sh b/scripts/generate.sh index a9faaf94..8510286f 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -68,15 +68,3 @@ mv -f src/composer.json composer.json find ./docs -type f ! -name "DecryptionKey.md" ! -name "Sealed.md" -exec rm {} + mv -f src/docs/* ./docs -declare -a modelsWithRawResponse=("./src/Model/EventResponse.php" "./src/Model/Response.php") - -for model in "${modelsWithRawResponse[@]}"; do - # enable WithRawResponse trait for the model - ( - if [ "$platform" = "Darwin" ]; then - sed -i '' 's/\/\/ use \\/use \\/' $model - else - sed -i 's/\/\/ use \\/use \\/' $model - fi - ) -done diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index 3a78eec7..55c6e5f4 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -85,6 +85,9 @@ public function getConfig() public function getEvent($request_id) { list($response) = $this->getEventWithHttpInfo($request_id); + if ($response === null) { + throw new \Exception("SerializationError, please get full response body with getEventWithHttpInfo"); + } return $response; } @@ -97,7 +100,7 @@ public function getEvent($request_id) * * @throws \Fingerprint\ServerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fingerprint\ServerAPI\Model\EventResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Fingerprint\ServerAPI\Model\EventResponse, HTTP Response body contents, HTTP status code, HTTP response headers (array of strings) */ public function getEventWithHttpInfo($request_id) { @@ -134,11 +137,16 @@ public function getEventWithHttpInfo($request_id) $responseBody = $response->getBody()->getContents(); - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - $serialized->setRawResponse($responseBody); + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; + } return [ $serialized, + $responseBody, $response->getStatusCode(), $response->getHeaders() ]; @@ -152,7 +160,6 @@ public function getEventWithHttpInfo($request_id) '\Fingerprint\ServerAPI\Model\EventResponse', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; case 403: @@ -162,7 +169,6 @@ public function getEventWithHttpInfo($request_id) '\Fingerprint\ServerAPI\Model\ErrorEvent403Response', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; case 404: @@ -172,7 +178,6 @@ public function getEventWithHttpInfo($request_id) '\Fingerprint\ServerAPI\Model\ErrorEvent404Response', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; } @@ -195,6 +200,10 @@ public function getEventAsync($request_id) return $this->getEventAsyncWithHttpInfo($request_id) ->then( function ($response) { + list($result) = $response; + if ($result === null) { + throw new \Exception("SerializationError, please get full response body with getEventWithHttpInfo"); + } return $response[0]; } ); @@ -221,11 +230,16 @@ public function getEventAsyncWithHttpInfo($request_id) function ($response) use ($returnType) { $responseBody = $response->getBody()->getContents(); - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - $serialized->setRawResponse($responseBody); + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; + } return [ $serialized, + $responseBody, $response->getStatusCode(), $response->getHeaders() ]; @@ -334,6 +348,9 @@ protected function getEventRequest($request_id) public function getVisits($visitor_id, $request_id = null, $linked_id = null, $limit = null, $pagination_key = null, $before = null) { list($response) = $this->getVisitsWithHttpInfo($visitor_id, $request_id, $linked_id, $limit, $pagination_key, $before); + if ($response === null) { + throw new \Exception("SerializationError, please get full response body with getVisitsWithHttpInfo"); + } return $response; } @@ -351,7 +368,7 @@ public function getVisits($visitor_id, $request_id = null, $linked_id = null, $l * * @throws \Fingerprint\ServerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fingerprint\ServerAPI\Model\Response, HTTP status code, HTTP response headers (array of strings) + * @return array of \Fingerprint\ServerAPI\Model\Response, HTTP Response body contents, HTTP status code, HTTP response headers (array of strings) */ public function getVisitsWithHttpInfo($visitor_id, $request_id = null, $linked_id = null, $limit = null, $pagination_key = null, $before = null) { @@ -388,11 +405,16 @@ public function getVisitsWithHttpInfo($visitor_id, $request_id = null, $linked_i $responseBody = $response->getBody()->getContents(); - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - $serialized->setRawResponse($responseBody); + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; + } return [ $serialized, + $responseBody, $response->getStatusCode(), $response->getHeaders() ]; @@ -406,7 +428,6 @@ public function getVisitsWithHttpInfo($visitor_id, $request_id = null, $linked_i '\Fingerprint\ServerAPI\Model\Response', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; case 403: @@ -416,7 +437,6 @@ public function getVisitsWithHttpInfo($visitor_id, $request_id = null, $linked_i '\Fingerprint\ServerAPI\Model\ErrorVisits403', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; case 429: @@ -426,7 +446,6 @@ public function getVisitsWithHttpInfo($visitor_id, $request_id = null, $linked_i '\Fingerprint\ServerAPI\Model\ManyRequestsResponse', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; } @@ -454,6 +473,10 @@ public function getVisitsAsync($visitor_id, $request_id = null, $linked_id = nul return $this->getVisitsAsyncWithHttpInfo($visitor_id, $request_id, $linked_id, $limit, $pagination_key, $before) ->then( function ($response) { + list($result) = $response; + if ($result === null) { + throw new \Exception("SerializationError, please get full response body with getVisitsWithHttpInfo"); + } return $response[0]; } ); @@ -485,11 +508,16 @@ public function getVisitsAsyncWithHttpInfo($visitor_id, $request_id = null, $lin function ($response) use ($returnType) { $responseBody = $response->getBody()->getContents(); - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - $serialized->setRawResponse($responseBody); + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; + } return [ $serialized, + $responseBody, $response->getStatusCode(), $response->getHeaders() ]; diff --git a/src/ApiException.php b/src/ApiException.php index e9eaae55..a2d352c3 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -27,7 +27,7 @@ namespace Fingerprint\ServerAPI; -use Exception; +use \Exception; /** * ApiException Class Doc Comment @@ -39,6 +39,7 @@ */ class ApiException extends Exception { + /** * The HTTP body of the server response either as Json or string. * diff --git a/src/Configuration.php b/src/Configuration.php index 931a0514..65a67717 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -461,4 +461,4 @@ public function getApiKeyWithPrefix($apiKeyIdentifier) return $keyWithPrefix; } -} +} \ No newline at end of file diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 8d30628d..c455a809 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ASN Class Doc Comment @@ -41,8 +41,7 @@ */ class ASN implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -163,7 +162,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index 6c7314ef..01f6e0d4 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * BotdDetectionResult Class Doc Comment @@ -42,8 +42,7 @@ */ class BotdDetectionResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -159,9 +158,9 @@ public function getModelName() return self::$swaggerModelName; } - public const RESULT_NOT_DETECTED = 'notDetected'; - public const RESULT_GOOD = 'good'; - public const RESULT_BAD = 'bad'; + const RESULT_NOT_DETECTED = 'notDetected'; +const RESULT_GOOD = 'good'; +const RESULT_BAD = 'bad'; /** * Gets allowable values of the enum diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index 9fd01b06..5d2c2b94 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * BotdResult Class Doc Comment @@ -42,8 +42,7 @@ */ class BotdResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -184,7 +183,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index bf948847..f92c3853 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * BrowserDetails Class Doc Comment @@ -41,8 +41,7 @@ */ class BrowserDetails implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -188,7 +187,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ClonedAppResult.php b/src/Model/ClonedAppResult.php index d48351ba..506d0e11 100644 --- a/src/Model/ClonedAppResult.php +++ b/src/Model/ClonedAppResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ClonedAppResult Class Doc Comment @@ -41,8 +41,7 @@ */ class ClonedAppResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index 63dc9f92..8d429199 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * Confidence Class Doc Comment @@ -41,8 +41,7 @@ */ class Confidence implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index 102a06aa..2a0fa7ac 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * DataCenter Class Doc Comment @@ -41,8 +41,7 @@ */ class DataCenter implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index ba179bb3..fffaad63 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * DeprecatedIPLocation Class Doc Comment @@ -42,8 +42,7 @@ */ class DeprecatedIPLocation implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -194,7 +193,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index 6034cc8e..d297b2e8 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * DeprecatedIPLocationCity Class Doc Comment @@ -41,8 +41,7 @@ */ class DeprecatedIPLocationCity implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/EmulatorResult.php b/src/Model/EmulatorResult.php index caa2a74f..b0a76d67 100644 --- a/src/Model/EmulatorResult.php +++ b/src/Model/EmulatorResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * EmulatorResult Class Doc Comment @@ -41,8 +41,7 @@ */ class EmulatorResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ErrorEvent403Response.php b/src/Model/ErrorEvent403Response.php index fdc18599..8f71b507 100644 --- a/src/Model/ErrorEvent403Response.php +++ b/src/Model/ErrorEvent403Response.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ErrorEvent403Response Class Doc Comment @@ -41,8 +41,7 @@ */ class ErrorEvent403Response implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ErrorEvent403ResponseError.php b/src/Model/ErrorEvent403ResponseError.php index 30edadab..deba9368 100644 --- a/src/Model/ErrorEvent403ResponseError.php +++ b/src/Model/ErrorEvent403ResponseError.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ErrorEvent403ResponseError Class Doc Comment @@ -41,8 +41,7 @@ */ class ErrorEvent403ResponseError implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,10 +157,10 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE_TOKEN_REQUIRED = 'TokenRequired'; - public const CODE_TOKEN_NOT_FOUND = 'TokenNotFound'; - public const CODE_SUBSCRIPTION_NOT_ACTIVE = 'SubscriptionNotActive'; - public const CODE_WRONG_REGION = 'WrongRegion'; + const CODE_TOKEN_REQUIRED = 'TokenRequired'; +const CODE_TOKEN_NOT_FOUND = 'TokenNotFound'; +const CODE_SUBSCRIPTION_NOT_ACTIVE = 'SubscriptionNotActive'; +const CODE_WRONG_REGION = 'WrongRegion'; /** * Gets allowable values of the enum diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index 27d4b2ad..c7803054 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ErrorEvent404Response Class Doc Comment @@ -41,8 +41,7 @@ */ class ErrorEvent404Response implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ErrorEvent404ResponseError.php b/src/Model/ErrorEvent404ResponseError.php index 6c3f6ad3..b6b14968 100644 --- a/src/Model/ErrorEvent404ResponseError.php +++ b/src/Model/ErrorEvent404ResponseError.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ErrorEvent404ResponseError Class Doc Comment @@ -41,8 +41,7 @@ */ class ErrorEvent404ResponseError implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE_REQUEST_NOT_FOUND = 'RequestNotFound'; + const CODE_REQUEST_NOT_FOUND = 'RequestNotFound'; /** * Gets allowable values of the enum diff --git a/src/Model/ErrorVisits403.php b/src/Model/ErrorVisits403.php index 3201e59b..46826318 100644 --- a/src/Model/ErrorVisits403.php +++ b/src/Model/ErrorVisits403.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ErrorVisits403 Class Doc Comment @@ -41,8 +41,7 @@ */ class ErrorVisits403 implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index 605fbb38..eabe5e08 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * EventResponse Class Doc Comment @@ -42,8 +42,7 @@ */ class EventResponse implements ModelInterface, ArrayAccess { - use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -159,7 +158,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/FactoryResetResult.php b/src/Model/FactoryResetResult.php index 8b4cc8ee..8faeac68 100644 --- a/src/Model/FactoryResetResult.php +++ b/src/Model/FactoryResetResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * FactoryResetResult Class Doc Comment @@ -41,8 +41,7 @@ */ class FactoryResetResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/FridaResult.php b/src/Model/FridaResult.php index 3240e141..48b7de01 100644 --- a/src/Model/FridaResult.php +++ b/src/Model/FridaResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * FridaResult Class Doc Comment @@ -41,8 +41,7 @@ */ class FridaResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index 5611b832..b7ebca8b 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * HighActivityResult Class Doc Comment @@ -41,8 +41,7 @@ */ class HighActivityResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index 99275028..3709db3f 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IPLocation Class Doc Comment @@ -41,8 +41,7 @@ */ class IPLocation implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -193,7 +192,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index a48d0a9e..eb1c5ae5 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IPLocationCity Class Doc Comment @@ -41,8 +41,7 @@ */ class IPLocationCity implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IdentificationError.php b/src/Model/IdentificationError.php index 68cc5634..539c584f 100644 --- a/src/Model/IdentificationError.php +++ b/src/Model/IdentificationError.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IdentificationError Class Doc Comment @@ -41,8 +41,7 @@ */ class IdentificationError implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,8 +157,8 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE__429_TOO_MANY_REQUESTS = '429 Too Many Requests'; - public const CODE_FAILED = 'Failed'; + const CODE__429_TOO_MANY_REQUESTS = '429 Too Many Requests'; +const CODE_FAILED = 'Failed'; /** * Gets allowable values of the enum diff --git a/src/Model/IncognitoResult.php b/src/Model/IncognitoResult.php index a69fc007..c5178f47 100644 --- a/src/Model/IncognitoResult.php +++ b/src/Model/IncognitoResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IncognitoResult Class Doc Comment @@ -41,8 +41,7 @@ */ class IncognitoResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IpBlockListResult.php b/src/Model/IpBlockListResult.php index 47a75103..82d9cf37 100644 --- a/src/Model/IpBlockListResult.php +++ b/src/Model/IpBlockListResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IpBlockListResult Class Doc Comment @@ -41,8 +41,7 @@ */ class IpBlockListResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IpBlockListResultDetails.php b/src/Model/IpBlockListResultDetails.php index 21a2a23b..3fe5d75d 100644 --- a/src/Model/IpBlockListResultDetails.php +++ b/src/Model/IpBlockListResultDetails.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IpBlockListResultDetails Class Doc Comment @@ -41,8 +41,7 @@ */ class IpBlockListResultDetails implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index b307c126..e64f7e36 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IpInfoResult Class Doc Comment @@ -42,8 +42,7 @@ */ class IpInfoResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -159,7 +158,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index dbe8abfc..4aee3502 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IpInfoResultV4 Class Doc Comment @@ -41,8 +41,7 @@ */ class IpInfoResultV4 implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -168,7 +167,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index 352d138e..cd6935d0 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * IpInfoResultV6 Class Doc Comment @@ -41,8 +41,7 @@ */ class IpInfoResultV6 implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -168,7 +167,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/JailbrokenResult.php b/src/Model/JailbrokenResult.php index 85d479f9..1a19096b 100644 --- a/src/Model/JailbrokenResult.php +++ b/src/Model/JailbrokenResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * JailbrokenResult Class Doc Comment @@ -41,8 +41,7 @@ */ class JailbrokenResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/Location.php b/src/Model/Location.php index 9b4d9634..b61a952d 100644 --- a/src/Model/Location.php +++ b/src/Model/Location.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * Location Class Doc Comment @@ -41,8 +41,7 @@ */ class Location implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/LocationSpoofingResult.php b/src/Model/LocationSpoofingResult.php index 75edafe6..2f164617 100644 --- a/src/Model/LocationSpoofingResult.php +++ b/src/Model/LocationSpoofingResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * LocationSpoofingResult Class Doc Comment @@ -41,8 +41,7 @@ */ class LocationSpoofingResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ManyRequestsResponse.php b/src/Model/ManyRequestsResponse.php index ec0e5fea..292605f8 100644 --- a/src/Model/ManyRequestsResponse.php +++ b/src/Model/ManyRequestsResponse.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ManyRequestsResponse Class Doc Comment @@ -41,8 +41,7 @@ */ class ManyRequestsResponse implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/PrivacySettingsResult.php b/src/Model/PrivacySettingsResult.php index 53452ddb..01a7809f 100644 --- a/src/Model/PrivacySettingsResult.php +++ b/src/Model/PrivacySettingsResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * PrivacySettingsResult Class Doc Comment @@ -41,8 +41,7 @@ */ class PrivacySettingsResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ProductError.php b/src/Model/ProductError.php index 70338d07..00e8625d 100644 --- a/src/Model/ProductError.php +++ b/src/Model/ProductError.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ProductError Class Doc Comment @@ -41,8 +41,7 @@ */ class ProductError implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,8 +157,8 @@ public function getModelName() return self::$swaggerModelName; } - public const CODE_TOO_MANY_REQUESTS = 'TooManyRequests'; - public const CODE_FAILED = 'Failed'; + const CODE_TOO_MANY_REQUESTS = 'TooManyRequests'; +const CODE_FAILED = 'Failed'; /** * Gets allowable values of the enum diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index aa305860..fbdf4497 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ProductsResponse Class Doc Comment @@ -42,8 +42,7 @@ */ class ProductsResponse implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -254,7 +253,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index 598dee0a..352245dc 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ProductsResponseBotd Class Doc Comment @@ -41,8 +41,7 @@ */ class ProductsResponseBotd implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index 5649e582..a6034934 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ProductsResponseIdentification Class Doc Comment @@ -41,8 +41,7 @@ */ class ProductsResponseIdentification implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index ac179b16..0e77cc98 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ProductsResponseIdentificationData Class Doc Comment @@ -41,8 +41,7 @@ */ class ProductsResponseIdentificationData implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -223,7 +222,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ProxyResult.php b/src/Model/ProxyResult.php index 469c3feb..51f5b296 100644 --- a/src/Model/ProxyResult.php +++ b/src/Model/ProxyResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ProxyResult Class Doc Comment @@ -41,8 +41,7 @@ */ class ProxyResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/RawDeviceAttributesResult.php b/src/Model/RawDeviceAttributesResult.php index 77fadc9e..cd96408f 100644 --- a/src/Model/RawDeviceAttributesResult.php +++ b/src/Model/RawDeviceAttributesResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * RawDeviceAttributesResult Class Doc Comment @@ -42,8 +42,7 @@ */ class RawDeviceAttributesResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -154,7 +153,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/Response.php b/src/Model/Response.php index 2964e65c..540abf2a 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * Response Class Doc Comment @@ -42,8 +42,7 @@ */ class Response implements ModelInterface, ArrayAccess { - use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -169,7 +168,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index d8ef5848..9f72d757 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * ResponseVisits Class Doc Comment @@ -41,8 +41,7 @@ */ class ResponseVisits implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -218,7 +217,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/RootAppsResult.php b/src/Model/RootAppsResult.php index bf19d330..c1e6eae6 100644 --- a/src/Model/RootAppsResult.php +++ b/src/Model/RootAppsResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * RootAppsResult Class Doc Comment @@ -41,8 +41,7 @@ */ class RootAppsResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SeenAt.php b/src/Model/SeenAt.php index 10462ad5..17c647fc 100644 --- a/src/Model/SeenAt.php +++ b/src/Model/SeenAt.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SeenAt Class Doc Comment @@ -41,8 +41,7 @@ */ class SeenAt implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index baa8b82e..6f1e3658 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseClonedApp Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseClonedApp implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 62f1cc91..24e25401 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseEmulator Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseEmulator implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index 59a6f441..b0dca3c5 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseFactoryReset Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseFactoryReset implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index 6082aa92..2f4ada91 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseFrida Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseFrida implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index b79816cd..95653e16 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseHighActivity Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseHighActivity implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index 29ac7857..4d260b01 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseIncognito Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseIncognito implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index 5104a577..ef458033 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseIpBlocklist Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseIpBlocklist implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 89364a7d..ce532800 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseIpInfo Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseIpInfo implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index 278e9864..ea00612a 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseJailbroken Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseJailbroken implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index 1ae4a03c..49e498c4 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseLocationSpoofing Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseLocationSpoofing implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index 0b33b98f..fb7c9beb 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponsePrivacySettings Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponsePrivacySettings implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index 1a457ce6..bcb74a95 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseProxy Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseProxy implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index 536f9020..44be597f 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseRawDeviceAttributes Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseRawDeviceAttributes implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index 58be9481..7c602ae9 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseRootApps Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseRootApps implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index cca7cee2..ff99ef3a 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseSuspectScore Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseSuspectScore implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index 55939ef2..55f261f6 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseTampering Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseTampering implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index e148dcd6..4a580853 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseTor Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseTor implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 6d82980a..8a0f878e 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseVirtualMachine Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseVirtualMachine implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index 58d6f6f9..2a64e9c6 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SignalResponseVpn Class Doc Comment @@ -41,8 +41,7 @@ */ class SignalResponseVpn implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index ffd88904..160c9ce1 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * Subdivision Class Doc Comment @@ -41,8 +41,7 @@ */ class Subdivision implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/SuspectScoreResult.php b/src/Model/SuspectScoreResult.php index cae07afc..f4847f1a 100644 --- a/src/Model/SuspectScoreResult.php +++ b/src/Model/SuspectScoreResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * SuspectScoreResult Class Doc Comment @@ -41,8 +41,7 @@ */ class SuspectScoreResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/TamperingResult.php b/src/Model/TamperingResult.php index fb03c33b..34800593 100644 --- a/src/Model/TamperingResult.php +++ b/src/Model/TamperingResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * TamperingResult Class Doc Comment @@ -41,8 +41,7 @@ */ class TamperingResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -158,7 +157,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/TorResult.php b/src/Model/TorResult.php index 826539e5..12dc0bf8 100644 --- a/src/Model/TorResult.php +++ b/src/Model/TorResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * TorResult Class Doc Comment @@ -41,8 +41,7 @@ */ class TorResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/VirtualMachineResult.php b/src/Model/VirtualMachineResult.php index f85da776..4cef9e80 100644 --- a/src/Model/VirtualMachineResult.php +++ b/src/Model/VirtualMachineResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * VirtualMachineResult Class Doc Comment @@ -41,8 +41,7 @@ */ class VirtualMachineResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -153,7 +152,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 87d5a527..6ac84e9e 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * Visit Class Doc Comment @@ -41,8 +41,7 @@ */ class Visit implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -218,7 +217,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index a14dd8cf..df82623b 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * VpnResult Class Doc Comment @@ -41,8 +41,7 @@ */ class VpnResult implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -168,7 +167,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/VpnResultMethods.php b/src/Model/VpnResultMethods.php index 5ec53294..7db1af75 100644 --- a/src/Model/VpnResultMethods.php +++ b/src/Model/VpnResultMethods.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * VpnResultMethods Class Doc Comment @@ -41,8 +41,7 @@ */ class VpnResultMethods implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -163,7 +162,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index 4617467f..d073953a 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -28,8 +28,8 @@ namespace Fingerprint\ServerAPI\Model; -use ArrayAccess; -use Fingerprint\ServerAPI\ObjectSerializer; +use \ArrayAccess; +use \Fingerprint\ServerAPI\ObjectSerializer; /** * WebhookVisit Class Doc Comment @@ -41,8 +41,7 @@ */ class WebhookVisit implements ModelInterface, ArrayAccess { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; - public const DISCRIMINATOR = null; + const DISCRIMINATOR = null; /** * The original name of the model. @@ -328,7 +327,7 @@ public function getModelName() return self::$swaggerModelName; } - + /** * Associative array for storing property values diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index cd6ecc02..2b50ed35 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -269,8 +269,28 @@ public static function deserialize($data, $class, $httpHeaders = null) return null; } } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { + $originalData = $data; + $normalizedClass = strtolower($class); + switch ($normalizedClass) { + case "int": + $normalizedClass = "integer"; + break; + case "bool": + $normalizedClass = "boolean"; + break; + } + if ($normalizedClass === "float" && is_numeric($originalData)) { + return (float)$originalData; + } + if ($normalizedClass === 'string' && is_object($data)) { + throw new \Exception("Cannot convert object to string"); + } + settype($data, $class); + if (gettype($data) === $normalizedClass) { return $data; + } + throw new \Exception("Serialization error: Could not convert " . gettype($originalData) . " to " . $class); } elseif ($class === '\SplFileObject') { /** @var \Psr\Http\Message\StreamInterface $data */ diff --git a/src/Traits/WithRawResponse.php b/src/Traits/WithRawResponse.php deleted file mode 100644 index 16c9e2b4..00000000 --- a/src/Traits/WithRawResponse.php +++ /dev/null @@ -1,18 +0,0 @@ -rawResponse; - } - - public function setRawResponse(mixed $rawResponse): void - { - $this->rawResponse = $rawResponse; - } -} diff --git a/template/ObjectSerializer.mustache b/template/ObjectSerializer.mustache index 89e95e21..3aa34e4c 100644 --- a/template/ObjectSerializer.mustache +++ b/template/ObjectSerializer.mustache @@ -260,8 +260,28 @@ class ObjectSerializer return null; } } elseif (in_array($class, [{{&primitives}}], true)) { + $originalData = $data; + $normalizedClass = strtolower($class); + switch ($normalizedClass) { + case "int": + $normalizedClass = "integer"; + break; + case "bool": + $normalizedClass = "boolean"; + break; + } + if ($normalizedClass === "float" && is_numeric($originalData)) { + return (float)$originalData; + } + if ($normalizedClass === 'string' && is_object($data)) { + throw new \Exception("Cannot convert object to string"); + } + settype($data, $class); + if (gettype($data) === $normalizedClass) { return $data; + } + throw new \Exception("Serialization error: Could not convert " . gettype($originalData) . " to " . $class); } elseif ($class === '\SplFileObject') { /** @var \Psr\Http\Message\StreamInterface $data */ diff --git a/template/api.mustache b/template/api.mustache index 76e042bc..dac98725 100644 --- a/template/api.mustache +++ b/template/api.mustache @@ -86,6 +86,9 @@ use {{invokerPackage}}\ObjectSerializer; public function {{operationId}}({{#parameters}}${{paramName}}{{^required}} = {{#defaultValue}}'{{{.}}}'{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/parameters}}) { {{#returnType}}list($response) = {{/returnType}}$this->{{operationId}}WithHttpInfo({{#parameters}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/parameters}});{{#returnType}} + if ($response === null) { + throw new \Exception("SerializationError, please get full response body with {{operationId}}WithHttpInfo"); + } return $response;{{/returnType}} } @@ -106,7 +109,7 @@ use {{invokerPackage}}\ObjectSerializer; * * @throws {{backSlash}}{{invokerPackage}}\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}null{{/returnType}}, HTTP status code, HTTP response headers (array of strings) + * @return array of {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}null{{/returnType}}, HTTP Response body contents, HTTP status code, HTTP response headers (array of strings) */ public function {{operationId}}WithHttpInfo({{#parameters}}${{paramName}}{{^required}} = {{#defaultValue}}'{{{.}}}'{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/parameters}}) { @@ -144,11 +147,16 @@ use {{invokerPackage}}\ObjectSerializer; {{#returnType}} $responseBody = $response->getBody()->getContents(); - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - $serialized->setRawResponse($responseBody); + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; + } return [ $serialized, + $responseBody, $response->getStatusCode(), $response->getHeaders() ]; @@ -168,7 +176,6 @@ use {{invokerPackage}}\ObjectSerializer; '{{dataType}}', $e->getResponseHeaders() ); - $data->setRawResponse($responseBody); $e->setResponseObject($data); break; {{/dataType}} @@ -199,6 +206,10 @@ use {{invokerPackage}}\ObjectSerializer; return $this->{{operationId}}AsyncWithHttpInfo({{#parameters}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/parameters}}) ->then( function ($response) { + list($result) = $response; + if ($result === null) { + throw new \Exception("SerializationError, please get full response body with {{operationId}}WithHttpInfo"); + } return $response[0]; } ); @@ -232,17 +243,22 @@ use {{invokerPackage}}\ObjectSerializer; {{#returnType}} $responseBody = $response->getBody()->getContents(); - $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); - $serialized->setRawResponse($responseBody); + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($responseBody, $returnType, []); + } catch (\Exception $e) { + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; + } return [ $serialized, + $responseBody, $response->getStatusCode(), $response->getHeaders() ]; {{/returnType}} {{^returnType}} - return [null, $response->getStatusCode(), $response->getHeaders()]; + return [null, $responseBody, $response->getStatusCode(), $response->getHeaders()]; {{/returnType}} }, function ($exception) { diff --git a/template/model_generic.mustache b/template/model_generic.mustache index da77a871..98959904 100644 --- a/template/model_generic.mustache +++ b/template/model_generic.mustache @@ -1,6 +1,5 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^parentSchema}}implements ModelInterface, ArrayAccess{{/parentSchema}} { - // use \Fingerprint\ServerAPI\Traits\WithRawResponse; const DISCRIMINATOR = {{#discriminator}}'{{discriminator}}'{{/discriminator}}{{^discriminator}}null{{/discriminator}}; /** diff --git a/test/FingerprintApiTest.php b/test/FingerprintApiTest.php index c07673de..98a729e9 100644 --- a/test/FingerprintApiTest.php +++ b/test/FingerprintApiTest.php @@ -17,6 +17,7 @@ class FingerprintApiTest extends TestCase const MOCK_REQUEST_ID = '1708102555327.NLOjmg'; const MOCK_REQUEST_ID_WITH_UNKNOWN = 'UNKNOWN_FIELD_REQUEST_ID'; + const MOCK_REQUEST_ID_WITH_BROKEN = 'BROKEN_FIELD_REQUEST_ID'; const MOCK_EXTRA_FIELDS_REQUEST_ID = '0KSh65EnVoB85JBmloQK'; const MOCK_REQUEST_ALL_ERRORS = 'ALL_ERRORS'; const MOCK_REQUEST_EXTRA_FIELDS = 'EXTRA_FIELDS'; @@ -47,18 +48,29 @@ public function setUp(): void $this->fingerprint_api = $this->getMockBuilder(FingerprintApi::class) ->getMock(); + $this->fingerprint_api->method('getEventWithHttpInfo')->will($this->returnCallback([$this, 'getEventWithHttpInfoMock'])); $this->fingerprint_api->method('getEvent')->will($this->returnCallback([$this, 'getEventMock'])); + $this->fingerprint_api->method('getVisitsWithHttpInfo')->will($this->returnCallback([$this, 'getVisitsWithHttpInfoMock'])); $this->fingerprint_api->method('getVisits')->will($this->returnCallback([$this, 'getVisitsMock'])); } - public function getEventMock($request_id) - { + public function getEventMock($request_id) { + list($response) = $this->getEventWithHttpInfoMock($request_id); + return $response; + } + + public function getVisitsMock($visitor_id, $request_id = null, $linked_id = null, $limit = null, $before = null) { + list($response) = $this->getVisitsWithHttpInfoMock($visitor_id, $request_id, $linked_id, $limit, $before); + return $response; + } + + public function getEventWithHttpInfoMock($request_id) { $event_request_method = $this->getMethod('getEventRequest'); /** @var \GuzzleHttp\Psr7\Request $event_request */ $event_request = $event_request_method->invokeArgs($this->fingerprint_api, [self::MOCK_REQUEST_ID]); $query = $event_request->getUri()->getQuery(); $this->assertStringContainsString("ii=" . urlencode("fingerprint-pro-server-php-sdk/" . $this->getVersion()), $query); - $mock_name = ''; + $mock_name = ""; switch ($request_id) { case self::MOCK_REQUEST_ID: $mock_name = 'get_event_200.json'; @@ -72,16 +84,21 @@ public function getEventMock($request_id) case self::MOCK_REQUEST_ID_WITH_UNKNOWN: $mock_name = 'get_event_200_with_unknown_field.json'; break; + case self::MOCK_REQUEST_ID_WITH_BROKEN: + $mock_name = 'get_event_200_with_broken_format.json'; + break; + } + try { + $events_mock_data = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . "/mocks/$mock_name")); + $serialized = ObjectSerializer::deserialize($events_mock_data, EventResponse::class); + } catch (\Exception $exception) { + return [null, $events_mock_data, 200, []]; } - $events_mock_data = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . "/mocks/$mock_name")); - /** @var EventResponse $serialized */ - $serialized = ObjectSerializer::deserialize($events_mock_data, EventResponse::class); - $serialized->setRawResponse($events_mock_data); - return $serialized; + return [$serialized, $events_mock_data, 200, []]; } - public function getVisitsMock($visitor_id, $request_id = null, $linked_id = null, $limit = null, $before = null) + public function getVisitsWithHttpInfoMock($visitor_id, $request_id = null, $linked_id = null, $limit = null, $before = null) { $visits_mock_data = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . '/mocks/get_visits_200_limit_500.json')); if ($request_id) { @@ -93,11 +110,15 @@ public function getVisitsMock($visitor_id, $request_id = null, $linked_id = null if ($limit && is_numeric($limit)) { $visits_mock_data->visits = array_slice($visits_mock_data->visits, 0, $limit); } - /** @var Response $serialized */ - $serialized = ObjectSerializer::deserialize($visits_mock_data, Response::class); - $serialized->setRawResponse($visits_mock_data); - return $serialized; + $serialized = null; + try { + $serialized = ObjectSerializer::deserialize($visits_mock_data, Response::class); + } catch (\Exception $exception) { + return [null, $visits_mock_data, 200, []]; + } + + return [$serialized, $visits_mock_data, 200, []]; } public function testGetEvent() @@ -217,15 +238,15 @@ public function testGetVisitsWithLimit() public function testGetEventRawResponse() { - $event = $this->fingerprint_api->getEvent(self::MOCK_REQUEST_ID); + list($event, $responseBody) = $this->fingerprint_api->getEventWithHttpInfo(self::MOCK_REQUEST_ID); $mockedResult = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . "/mocks/get_event_200.json")); - $this->assertEquals($mockedResult, $event->getRawResponse()); + $this->assertEquals($mockedResult, $responseBody); } public function testGetVisitsRawResponse() { - $visits = $this->fingerprint_api->getVisits(self::MOCK_VISITOR_ID); + list($visits, $responseBody) = $this->fingerprint_api->getVisitsWithHttpInfo(self::MOCK_VISITOR_ID); $mockedResult = \GuzzleHttp\json_decode(file_get_contents(__DIR__ . "/mocks/get_visits_200_limit_500.json")); - $this->assertEquals($mockedResult, $visits->getRawResponse()); + $this->assertEquals($mockedResult, $responseBody); } public function testGetEventParsedModelWithUnknownField() { @@ -234,11 +255,20 @@ public function testGetEventParsedModelWithUnknownField() { } public function testGetUnknownFieldFromEvent() { - $event = $this->fingerprint_api->getEvent(self::MOCK_REQUEST_ID_WITH_UNKNOWN); - $decoded = $event->getRawResponse(); - $this->assertEquals("field", $decoded->unknown); - $this->assertEquals("field", $decoded->products->unknown); - $this->assertEquals("field", $decoded->products->identification->unknown); - $this->assertEquals("field", $decoded->products->identification->data->unknown); + list($event, $responseBody) = $this->fingerprint_api->getEventWithHttpInfo(self::MOCK_REQUEST_ID_WITH_UNKNOWN); + $this->assertEquals("field", $responseBody->unknown); + $this->assertEquals("field", $responseBody->products->unknown); + $this->assertEquals("field", $responseBody->products->identification->unknown); + $this->assertEquals("field", $responseBody->products->identification->data->unknown); + } + + public function testGetBrokenFormatEvent() { + $event = null; + $responseBody = null; + list($event, $responseBody) = $this->fingerprint_api->getEventWithHttpInfo(self::MOCK_REQUEST_ID_WITH_BROKEN); + + $this->assertNull($event); + $this->assertNotNull($responseBody); + $this->assertEquals("format", $responseBody->products->identification->data->linkedId->broken); } } diff --git a/test/mocks/get_event_200_with_broken_format.json b/test/mocks/get_event_200_with_broken_format.json new file mode 100644 index 00000000..4ac8b6f5 --- /dev/null +++ b/test/mocks/get_event_200_with_broken_format.json @@ -0,0 +1,283 @@ +{ + "products": { + "identification": { + "data": { + "visitorId": "Ibk1527CUFmcnjLwIs4A9", + "requestId": "1708102555327.NLOjmg", + "incognito": true, + "linkedId": { + "broken": "format" + }, + "tag": {}, + "time": "2019-05-21T16:40:13Z", + "timestamp": 1582299576512, + "url": "https://www.example.com/login?hope{this{works[!", + "ip": "61.127.217.15", + "ipLocation": { + "accuracyRadius": 10, + "latitude": 49.982, + "longitude": 36.2566, + "postalCode": "61202", + "timezone": "Europe/Dusseldorf", + "city": { + "name": "Dusseldorf" + }, + "country": { + "code": "DE", + "name": "Germany" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "63", + "name": "North Rhine-Westphalia" + } + ] + }, + "browserDetails": { + "browserName": "Chrome", + "browserMajorVersion": "74", + "browserFullVersion": "74.0.3729", + "os": "Windows", + "osVersion": "7", + "device": "Other", + "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) ...." + }, + "confidence": { + "score": 0.97 + }, + "visitorFound": false, + "firstSeenAt": { + "global": "2022-03-16T11:26:45.362Z", + "subscription": "2022-03-16T11:31:01.101Z" + }, + "lastSeenAt": { + "global": null, + "subscription": null + } + } + }, + "botd": { + "data": { + "bot": { + "result": "notDetected" + }, + "url": "https://www.example.com/login?hope{this{works}[!", + "ip": "61.127.217.15", + "time": "2019-05-21T16:40:13Z", + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 YaBrowser/24.1.0.0 Safari/537.36", + "requestId": "1708102555327.NLOjmg" + } + }, + "rootApps": { + "data": { + "result": false + } + }, + "emulator": { + "data": { + "result": false + } + }, + "ipInfo": { + "data": { + "v4": { + "address": "94.142.239.124", + "geolocation": { + "accuracyRadius": 20, + "latitude": 50.05, + "longitude": 14.4, + "postalCode": "150 00", + "timezone": "Europe/Prague", + "city": { + "name": "Prague" + }, + "country": { + "code": "CZ", + "name": "Czechia" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "10", + "name": "Hlavni mesto Praha" + } + ] + }, + "asn": { + "asn": "7922", + "name": "COMCAST-7922", + "network": "73.136.0.0/13" + }, + "datacenter": { + "result": true, + "name": "DediPath" + } + }, + "v6": { + "address": "2001:db8:3333:4444:5555:6666:7777:8888", + "geolocation": { + "accuracyRadius": 5, + "latitude": 49.982, + "longitude": 36.2566, + "postalCode": "10112", + "timezone": "Europe/Berlin", + "city": { + "name": "Berlin" + }, + "country": { + "code": "DE", + "name": "Germany" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "BE", + "name": "Land Berlin" + } + ] + }, + "asn": { + "asn": "6805", + "name": "Telefonica Germany", + "network": "2a02:3100::/24" + }, + "datacenter": { + "result": false, + "name": "" + } + } + } + }, + "ipBlocklist": { + "data": { + "result": false, + "details": { + "emailSpam": false, + "attackSource": false + } + } + }, + "tor": { + "data": { + "result": false + } + }, + "vpn": { + "data": { + "result": false, + "originTimezone": "Europe/Berlin", + "originCountry": "unknown", + "methods": { + "timezoneMismatch": false, + "publicVPN": false, + "auxiliaryMobile": false + } + } + }, + "proxy": { + "data": { + "result": false + } + }, + "incognito": { + "data": { + "result": false + } + }, + "tampering": { + "data": { + "result": false, + "anomalyScore": 0.1955 + } + }, + "clonedApp": { + "data": { + "result": false + } + }, + "factoryReset": { + "data": { + "time": "1970-01-01T00:00:00Z", + "timestamp": 0 + } + }, + "jailbroken": { + "data": { + "result": false + } + }, + "frida": { + "data": { + "result": false + } + }, + "privacySettings": { + "data": { + "result": false + } + }, + "virtualMachine": { + "data": { + "result": false + } + }, + "rawDeviceAttributes": { + "data": { + "architecture": { + "value": 127 + }, + "audio": { + "value": 35.73832903057337 + }, + "canvas": { + "value": { + "Winding": true, + "Geometry": "4dce9d6017c3e0c052a77252f29f2b1c", + "Text": "dd2474a56ff78c1de3e7a07070ba3b7d" + } + }, + "colorDepth": { + "value": 30 + }, + "colorGamut": { + "value": "p3" + }, + "contrast": { + "value": 0 + }, + "cookiesEnabled": { + "value": true + }, + "cpuClass": {}, + "fonts": { + "value": [ + "Arial Unicode MS", + "Gill Sans", + "Helvetica Neue", + "Menlo" + ] + } + } + }, + "highActivity": { + "data": { + "result": false + } + }, + "locationSpoofing": { + "data": { + "result": false + } + } + } +}