Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
98.79% covered (success)
98.79%
327 / 331
98.71% covered (success)
98.71%
153 / 155
CRAP
0.00% covered (danger)
0.00%
0 / 1
Event
98.79% covered (success)
98.79%
327 / 331
98.71% covered (success)
98.71%
153 / 155
186
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
67 / 67
100.00% covered (success)
100.00%
1 / 1
1
 __toString
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
 openAPITypes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 openAPIFormats
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 isNullable
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 isNullableSetToNull
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 attributeMap
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setters
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getters
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getModelName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 listInvalidProperties
100.00% covered (success)
100.00%
22 / 22
100.00% covered (success)
100.00%
1 / 1
19
 valid
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getEventId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEventId
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getTimestamp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTimestamp
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getSource
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSource
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getIncrementalIdentificationStatus
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIncrementalIdentificationStatus
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLinkedId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLinkedId
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getEnvironmentId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEnvironmentId
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getSuspect
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSuspect
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getSdk
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSdk
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getReplayed
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setReplayed
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getIdentification
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIdentification
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getSupplementaryIdHighRecall
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSupplementaryIdHighRecall
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getTags
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTags
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getUrl
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setUrl
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBundleId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBundleId
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getPackageName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPackageName
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getIpAddress
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIpAddress
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getUserAgent
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setUserAgent
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getDevice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDevice
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getOs
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setOs
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getOsVersion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setOsVersion
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getClientReferrer
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setClientReferrer
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBrowserDetails
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBrowserDetails
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getProximity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setProximity
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getActiveCall
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setActiveCall
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBot
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBot
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBotType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBotType
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBotInfo
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBotInfo
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getClonedApp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setClonedApp
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCompromisedDeviceIntegrity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCompromisedDeviceIntegrity
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getDeveloperTools
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDeveloperTools
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getDeviceDetails
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDeviceDetails
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getEmulator
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEmulator
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getFactoryResetTimestamp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setFactoryResetTimestamp
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getFrida
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setFrida
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getIpBlocklist
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIpBlocklist
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getIpInfo
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIpInfo
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getProxy
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setProxy
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getProxyConfidence
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setProxyConfidence
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getProxyDetails
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setProxyDetails
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getProxyMlScore
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setProxyMlScore
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
3
 getIncognito
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIncognito
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getJailbroken
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setJailbroken
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLocationSpoofing
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLocationSpoofing
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getMitmAttack
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMitmAttack
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getPrivacySettings
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPrivacySettings
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getRootApps
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRootApps
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getRuleAction
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRuleAction
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getSimulator
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSimulator
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getSuspectScore
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSuspectScore
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getTampering
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTampering
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getTamperingConfidence
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTamperingConfidence
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getTamperingMlScore
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTamperingMlScore
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
3
 getTamperingDetails
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTamperingDetails
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVelocity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVelocity
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVirtualMachine
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVirtualMachine
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVirtualMachineMlScore
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVirtualMachineMlScore
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
3
 getVpn
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVpn
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVpnConfidence
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVpnConfidence
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVpnMlScore
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVpnMlScore
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
3
 getVpnOriginTimezone
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVpnOriginTimezone
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVpnOriginCountry
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVpnOriginCountry
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getVpnMethods
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVpnMethods
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getHighActivityDevice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setHighActivityDevice
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getRareDevice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRareDevice
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getRareDevicePercentileBucket
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRareDevicePercentileBucket
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getRawDeviceAttributes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRawDeviceAttributes
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLabels
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLabels
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 offsetExists
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 offsetGet
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 offsetSet
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
 offsetUnset
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 jsonSerialize
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 toHeaderValue
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 openAPINullables
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getOpenAPINullablesSetToNull
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setOpenAPINullablesSetToNull
n/a
0 / 0
n/a
0 / 0
1
 setIfExists
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
4
1<?php
2
3/**
4 * Event.
5 *
6 * @category Class
7 *
8 * @author   Fingerprint
9 *
10 * @see      https://fingerprint.com
11 */
12
13/**
14 * Server API.
15 *
16 * Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. The API also supports collection of Automation Intelligence for requests to your server in edge, pre-origin, or middleware contexts.
17 *
18 * The version of the OpenAPI document: 4
19 * Contact: support@fingerprint.com
20 * Generated by: https://openapi-generator.tech
21 * Generator version: 7.23.0
22 */
23
24/**
25 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26 * https://openapi-generator.tech
27 * Do not edit the class manually.
28 */
29
30namespace Fingerprint\ServerSdk\Model;
31
32use Fingerprint\ServerSdk\ObjectSerializer;
33
34/**
35 * Contains results from Fingerprint Identification and all active Smart Signals, or from the Automation Intelligence API. Check `source` to see which properties can be present:
36 * - `device` - generated by the JS agent or a mobile SDK running on an end-user device. Contains Identification (`visitor_id`) and Smart Signals. Some Smart Signals are only supported for certain device types, these fields will be omitted for events not generated from the supported devices.
37 * - `edge` - generated by the Automation Intelligence API (`/edge` endpoint). Contains only IP and bot analysis, never Identification or Smart Signals derived from device telemetry.
38 *
39 * Events stored before `source` was added don't have it; treat them as `device`. Consult the [Smart Signals reference](https://docs.fingerprint.com/docs/smart-signals-reference) for more details.
40 *
41 * @category Class
42 *
43 * @description Contains results from Fingerprint Identification and all active Smart Signals, or from the Automation Intelligence API. Check &#x60;source&#x60; to see which properties can be present: - &#x60;device&#x60; - generated by the JS agent or a mobile SDK running on an end-user device. Contains Identification (&#x60;visitor_id&#x60;) and Smart Signals. Some Smart Signals are only supported for certain device types, these fields will be omitted for events not generated from the supported devices. - &#x60;edge&#x60; - generated by the Automation Intelligence API (&#x60;/edge&#x60; endpoint). Contains only IP and bot analysis, never Identification or Smart Signals derived from device telemetry.  Events stored before &#x60;source&#x60; was added don&#39;t have it; treat them as &#x60;device&#x60;. Consult the [Smart Signals reference](https://docs.fingerprint.com/docs/smart-signals-reference) for more details.
44 *
45 * @author   Fingerprint
46 *
47 * @see      https://fingerprint.com
48 *
49 * @implements \ArrayAccess<string, mixed>
50 *
51 * @noinspection GrazieInspection
52 * @noinspection RedundantSuppression
53 */
54class Event implements ModelInterface, \ArrayAccess, \JsonSerializable
55{
56    public const DISCRIMINATOR = null;
57
58    /**
59     * The original name of the model.
60     *
61     */
62    protected static string $openAPIModelName = 'Event';
63
64    /**
65     * Array of property to type mappings. Used for (de)serialization.
66     *
67     * @var string[]
68     */
69    protected static array $openAPITypes = [
70        'event_id' => 'string',
71        'timestamp' => 'int',
72        'source' => '\Fingerprint\ServerSdk\Model\EventSource',
73        'incremental_identification_status' => '\Fingerprint\ServerSdk\Model\IncrementalIdentificationStatus',
74        'linked_id' => 'string',
75        'environment_id' => 'string',
76        'suspect' => 'bool',
77        'sdk' => '\Fingerprint\ServerSdk\Model\SDK',
78        'replayed' => 'bool',
79        'identification' => '\Fingerprint\ServerSdk\Model\Identification',
80        'supplementary_id_high_recall' => '\Fingerprint\ServerSdk\Model\SupplementaryIDHighRecall',
81        'tags' => 'array<string,mixed>',
82        'url' => 'string',
83        'bundle_id' => 'string',
84        'package_name' => 'string',
85        'ip_address' => 'string',
86        'user_agent' => 'string',
87        'device' => 'string',
88        'os' => 'string',
89        'os_version' => 'string',
90        'client_referrer' => 'string',
91        'browser_details' => '\Fingerprint\ServerSdk\Model\BrowserDetails',
92        'proximity' => '\Fingerprint\ServerSdk\Model\Proximity',
93        'active_call' => 'bool',
94        'bot' => '\Fingerprint\ServerSdk\Model\BotResult',
95        'bot_type' => 'string',
96        'bot_info' => '\Fingerprint\ServerSdk\Model\BotInfo',
97        'cloned_app' => 'bool',
98        'compromised_device_integrity' => 'bool',
99        'developer_tools' => 'bool',
100        'device_details' => '\Fingerprint\ServerSdk\Model\DeviceDetails',
101        'emulator' => 'bool',
102        'factory_reset_timestamp' => 'int',
103        'frida' => 'bool',
104        'ip_blocklist' => '\Fingerprint\ServerSdk\Model\IPBlockList',
105        'ip_info' => '\Fingerprint\ServerSdk\Model\IPInfo',
106        'proxy' => 'bool',
107        'proxy_confidence' => '\Fingerprint\ServerSdk\Model\ProxyConfidence',
108        'proxy_details' => '\Fingerprint\ServerSdk\Model\ProxyDetails',
109        'proxy_ml_score' => 'float',
110        'incognito' => 'bool',
111        'jailbroken' => 'bool',
112        'location_spoofing' => 'bool',
113        'mitm_attack' => 'bool',
114        'privacy_settings' => 'bool',
115        'root_apps' => 'bool',
116        'rule_action' => '\Fingerprint\ServerSdk\Model\EventRuleAction',
117        'simulator' => 'bool',
118        'suspect_score' => 'int',
119        'tampering' => 'bool',
120        'tampering_confidence' => '\Fingerprint\ServerSdk\Model\TamperingConfidence',
121        'tampering_ml_score' => 'float',
122        'tampering_details' => '\Fingerprint\ServerSdk\Model\TamperingDetails',
123        'velocity' => '\Fingerprint\ServerSdk\Model\Velocity',
124        'virtual_machine' => 'bool',
125        'virtual_machine_ml_score' => 'float',
126        'vpn' => 'bool',
127        'vpn_confidence' => '\Fingerprint\ServerSdk\Model\VpnConfidence',
128        'vpn_ml_score' => 'float',
129        'vpn_origin_timezone' => 'string',
130        'vpn_origin_country' => 'string',
131        'vpn_methods' => '\Fingerprint\ServerSdk\Model\VpnMethods',
132        'high_activity_device' => 'bool',
133        'rare_device' => 'bool',
134        'rare_device_percentile_bucket' => '\Fingerprint\ServerSdk\Model\RareDevicePercentileBucket',
135        'raw_device_attributes' => '\Fingerprint\ServerSdk\Model\RawDeviceAttributes',
136        'labels' => '\Fingerprint\ServerSdk\Model\LabelsInner[]',
137    ];
138
139    /**
140     * Array of property to format mappings. Used for (de)serialization.
141     *
142     * @var string[]
143     *
144     * @phpstan-var array<string, string|null>
145     *
146     * @psalm-var array<string, string|null>
147     */
148    protected static array $openAPIFormats = [
149        'event_id' => null,
150        'timestamp' => 'int64',
151        'source' => null,
152        'incremental_identification_status' => null,
153        'linked_id' => null,
154        'environment_id' => null,
155        'suspect' => null,
156        'sdk' => null,
157        'replayed' => null,
158        'identification' => null,
159        'supplementary_id_high_recall' => null,
160        'tags' => null,
161        'url' => null,
162        'bundle_id' => null,
163        'package_name' => null,
164        'ip_address' => null,
165        'user_agent' => null,
166        'device' => null,
167        'os' => null,
168        'os_version' => null,
169        'client_referrer' => null,
170        'browser_details' => null,
171        'proximity' => null,
172        'active_call' => null,
173        'bot' => null,
174        'bot_type' => null,
175        'bot_info' => null,
176        'cloned_app' => null,
177        'compromised_device_integrity' => null,
178        'developer_tools' => null,
179        'device_details' => null,
180        'emulator' => null,
181        'factory_reset_timestamp' => 'int64',
182        'frida' => null,
183        'ip_blocklist' => null,
184        'ip_info' => null,
185        'proxy' => null,
186        'proxy_confidence' => null,
187        'proxy_details' => null,
188        'proxy_ml_score' => 'double',
189        'incognito' => null,
190        'jailbroken' => null,
191        'location_spoofing' => null,
192        'mitm_attack' => null,
193        'privacy_settings' => null,
194        'root_apps' => null,
195        'rule_action' => null,
196        'simulator' => null,
197        'suspect_score' => null,
198        'tampering' => null,
199        'tampering_confidence' => null,
200        'tampering_ml_score' => 'double',
201        'tampering_details' => null,
202        'velocity' => null,
203        'virtual_machine' => null,
204        'virtual_machine_ml_score' => 'double',
205        'vpn' => null,
206        'vpn_confidence' => null,
207        'vpn_ml_score' => 'double',
208        'vpn_origin_timezone' => null,
209        'vpn_origin_country' => null,
210        'vpn_methods' => null,
211        'high_activity_device' => null,
212        'rare_device' => null,
213        'rare_device_percentile_bucket' => null,
214        'raw_device_attributes' => null,
215        'labels' => null,
216    ];
217
218    /**
219     * Array of nullable properties. Used for (de)serialization.
220     *
221     * @var bool[]
222     */
223    protected static array $openAPINullables = [
224        'event_id' => false,
225        'timestamp' => false,
226        'source' => false,
227        'incremental_identification_status' => false,
228        'linked_id' => false,
229        'environment_id' => false,
230        'suspect' => false,
231        'sdk' => false,
232        'replayed' => false,
233        'identification' => false,
234        'supplementary_id_high_recall' => false,
235        'tags' => false,
236        'url' => false,
237        'bundle_id' => false,
238        'package_name' => false,
239        'ip_address' => false,
240        'user_agent' => false,
241        'device' => false,
242        'os' => false,
243        'os_version' => false,
244        'client_referrer' => false,
245        'browser_details' => false,
246        'proximity' => false,
247        'active_call' => false,
248        'bot' => false,
249        'bot_type' => false,
250        'bot_info' => false,
251        'cloned_app' => false,
252        'compromised_device_integrity' => false,
253        'developer_tools' => false,
254        'device_details' => false,
255        'emulator' => false,
256        'factory_reset_timestamp' => false,
257        'frida' => false,
258        'ip_blocklist' => false,
259        'ip_info' => false,
260        'proxy' => false,
261        'proxy_confidence' => false,
262        'proxy_details' => false,
263        'proxy_ml_score' => false,
264        'incognito' => false,
265        'jailbroken' => false,
266        'location_spoofing' => false,
267        'mitm_attack' => false,
268        'privacy_settings' => false,
269        'root_apps' => false,
270        'rule_action' => false,
271        'simulator' => false,
272        'suspect_score' => false,
273        'tampering' => false,
274        'tampering_confidence' => false,
275        'tampering_ml_score' => false,
276        'tampering_details' => false,
277        'velocity' => false,
278        'virtual_machine' => false,
279        'virtual_machine_ml_score' => false,
280        'vpn' => false,
281        'vpn_confidence' => false,
282        'vpn_ml_score' => false,
283        'vpn_origin_timezone' => false,
284        'vpn_origin_country' => false,
285        'vpn_methods' => false,
286        'high_activity_device' => false,
287        'rare_device' => false,
288        'rare_device_percentile_bucket' => false,
289        'raw_device_attributes' => false,
290        'labels' => false,
291    ];
292
293    /**
294     * If a nullable field gets set to null, insert it here.
295     *
296     * @var bool[]
297     */
298    protected array $openAPINullablesSetToNull = [];
299
300    /**
301     * Array of attributes where the key is the local name,
302     * and the value is the original name.
303     *
304     * @var string[]
305     */
306    protected static array $attributeMap = [
307        'event_id' => 'event_id',
308        'timestamp' => 'timestamp',
309        'source' => 'source',
310        'incremental_identification_status' => 'incremental_identification_status',
311        'linked_id' => 'linked_id',
312        'environment_id' => 'environment_id',
313        'suspect' => 'suspect',
314        'sdk' => 'sdk',
315        'replayed' => 'replayed',
316        'identification' => 'identification',
317        'supplementary_id_high_recall' => 'supplementary_id_high_recall',
318        'tags' => 'tags',
319        'url' => 'url',
320        'bundle_id' => 'bundle_id',
321        'package_name' => 'package_name',
322        'ip_address' => 'ip_address',
323        'user_agent' => 'user_agent',
324        'device' => 'device',
325        'os' => 'os',
326        'os_version' => 'os_version',
327        'client_referrer' => 'client_referrer',
328        'browser_details' => 'browser_details',
329        'proximity' => 'proximity',
330        'active_call' => 'active_call',
331        'bot' => 'bot',
332        'bot_type' => 'bot_type',
333        'bot_info' => 'bot_info',
334        'cloned_app' => 'cloned_app',
335        'compromised_device_integrity' => 'compromised_device_integrity',
336        'developer_tools' => 'developer_tools',
337        'device_details' => 'device_details',
338        'emulator' => 'emulator',
339        'factory_reset_timestamp' => 'factory_reset_timestamp',
340        'frida' => 'frida',
341        'ip_blocklist' => 'ip_blocklist',
342        'ip_info' => 'ip_info',
343        'proxy' => 'proxy',
344        'proxy_confidence' => 'proxy_confidence',
345        'proxy_details' => 'proxy_details',
346        'proxy_ml_score' => 'proxy_ml_score',
347        'incognito' => 'incognito',
348        'jailbroken' => 'jailbroken',
349        'location_spoofing' => 'location_spoofing',
350        'mitm_attack' => 'mitm_attack',
351        'privacy_settings' => 'privacy_settings',
352        'root_apps' => 'root_apps',
353        'rule_action' => 'rule_action',
354        'simulator' => 'simulator',
355        'suspect_score' => 'suspect_score',
356        'tampering' => 'tampering',
357        'tampering_confidence' => 'tampering_confidence',
358        'tampering_ml_score' => 'tampering_ml_score',
359        'tampering_details' => 'tampering_details',
360        'velocity' => 'velocity',
361        'virtual_machine' => 'virtual_machine',
362        'virtual_machine_ml_score' => 'virtual_machine_ml_score',
363        'vpn' => 'vpn',
364        'vpn_confidence' => 'vpn_confidence',
365        'vpn_ml_score' => 'vpn_ml_score',
366        'vpn_origin_timezone' => 'vpn_origin_timezone',
367        'vpn_origin_country' => 'vpn_origin_country',
368        'vpn_methods' => 'vpn_methods',
369        'high_activity_device' => 'high_activity_device',
370        'rare_device' => 'rare_device',
371        'rare_device_percentile_bucket' => 'rare_device_percentile_bucket',
372        'raw_device_attributes' => 'raw_device_attributes',
373        'labels' => 'labels',
374    ];
375
376    /**
377     * Array of attributes to setter functions (for deserialization of responses).
378     *
379     * @var string[]
380     */
381    protected static array $setters = [
382        'event_id' => 'setEventId',
383        'timestamp' => 'setTimestamp',
384        'source' => 'setSource',
385        'incremental_identification_status' => 'setIncrementalIdentificationStatus',
386        'linked_id' => 'setLinkedId',
387        'environment_id' => 'setEnvironmentId',
388        'suspect' => 'setSuspect',
389        'sdk' => 'setSdk',
390        'replayed' => 'setReplayed',
391        'identification' => 'setIdentification',
392        'supplementary_id_high_recall' => 'setSupplementaryIdHighRecall',
393        'tags' => 'setTags',
394        'url' => 'setUrl',
395        'bundle_id' => 'setBundleId',
396        'package_name' => 'setPackageName',
397        'ip_address' => 'setIpAddress',
398        'user_agent' => 'setUserAgent',
399        'device' => 'setDevice',
400        'os' => 'setOs',
401        'os_version' => 'setOsVersion',
402        'client_referrer' => 'setClientReferrer',
403        'browser_details' => 'setBrowserDetails',
404        'proximity' => 'setProximity',
405        'active_call' => 'setActiveCall',
406        'bot' => 'setBot',
407        'bot_type' => 'setBotType',
408        'bot_info' => 'setBotInfo',
409        'cloned_app' => 'setClonedApp',
410        'compromised_device_integrity' => 'setCompromisedDeviceIntegrity',
411        'developer_tools' => 'setDeveloperTools',
412        'device_details' => 'setDeviceDetails',
413        'emulator' => 'setEmulator',
414        'factory_reset_timestamp' => 'setFactoryResetTimestamp',
415        'frida' => 'setFrida',
416        'ip_blocklist' => 'setIpBlocklist',
417        'ip_info' => 'setIpInfo',
418        'proxy' => 'setProxy',
419        'proxy_confidence' => 'setProxyConfidence',
420        'proxy_details' => 'setProxyDetails',
421        'proxy_ml_score' => 'setProxyMlScore',
422        'incognito' => 'setIncognito',
423        'jailbroken' => 'setJailbroken',
424        'location_spoofing' => 'setLocationSpoofing',
425        'mitm_attack' => 'setMitmAttack',
426        'privacy_settings' => 'setPrivacySettings',
427        'root_apps' => 'setRootApps',
428        'rule_action' => 'setRuleAction',
429        'simulator' => 'setSimulator',
430        'suspect_score' => 'setSuspectScore',
431        'tampering' => 'setTampering',
432        'tampering_confidence' => 'setTamperingConfidence',
433        'tampering_ml_score' => 'setTamperingMlScore',
434        'tampering_details' => 'setTamperingDetails',
435        'velocity' => 'setVelocity',
436        'virtual_machine' => 'setVirtualMachine',
437        'virtual_machine_ml_score' => 'setVirtualMachineMlScore',
438        'vpn' => 'setVpn',
439        'vpn_confidence' => 'setVpnConfidence',
440        'vpn_ml_score' => 'setVpnMlScore',
441        'vpn_origin_timezone' => 'setVpnOriginTimezone',
442        'vpn_origin_country' => 'setVpnOriginCountry',
443        'vpn_methods' => 'setVpnMethods',
444        'high_activity_device' => 'setHighActivityDevice',
445        'rare_device' => 'setRareDevice',
446        'rare_device_percentile_bucket' => 'setRareDevicePercentileBucket',
447        'raw_device_attributes' => 'setRawDeviceAttributes',
448        'labels' => 'setLabels',
449    ];
450
451    /**
452     * Array of attributes to getter functions (for serialization of requests).
453     *
454     * @var string[]
455     */
456    protected static array $getters = [
457        'event_id' => 'getEventId',
458        'timestamp' => 'getTimestamp',
459        'source' => 'getSource',
460        'incremental_identification_status' => 'getIncrementalIdentificationStatus',
461        'linked_id' => 'getLinkedId',
462        'environment_id' => 'getEnvironmentId',
463        'suspect' => 'getSuspect',
464        'sdk' => 'getSdk',
465        'replayed' => 'getReplayed',
466        'identification' => 'getIdentification',
467        'supplementary_id_high_recall' => 'getSupplementaryIdHighRecall',
468        'tags' => 'getTags',
469        'url' => 'getUrl',
470        'bundle_id' => 'getBundleId',
471        'package_name' => 'getPackageName',
472        'ip_address' => 'getIpAddress',
473        'user_agent' => 'getUserAgent',
474        'device' => 'getDevice',
475        'os' => 'getOs',
476        'os_version' => 'getOsVersion',
477        'client_referrer' => 'getClientReferrer',
478        'browser_details' => 'getBrowserDetails',
479        'proximity' => 'getProximity',
480        'active_call' => 'getActiveCall',
481        'bot' => 'getBot',
482        'bot_type' => 'getBotType',
483        'bot_info' => 'getBotInfo',
484        'cloned_app' => 'getClonedApp',
485        'compromised_device_integrity' => 'getCompromisedDeviceIntegrity',
486        'developer_tools' => 'getDeveloperTools',
487        'device_details' => 'getDeviceDetails',
488        'emulator' => 'getEmulator',
489        'factory_reset_timestamp' => 'getFactoryResetTimestamp',
490        'frida' => 'getFrida',
491        'ip_blocklist' => 'getIpBlocklist',
492        'ip_info' => 'getIpInfo',
493        'proxy' => 'getProxy',
494        'proxy_confidence' => 'getProxyConfidence',
495        'proxy_details' => 'getProxyDetails',
496        'proxy_ml_score' => 'getProxyMlScore',
497        'incognito' => 'getIncognito',
498        'jailbroken' => 'getJailbroken',
499        'location_spoofing' => 'getLocationSpoofing',
500        'mitm_attack' => 'getMitmAttack',
501        'privacy_settings' => 'getPrivacySettings',
502        'root_apps' => 'getRootApps',
503        'rule_action' => 'getRuleAction',
504        'simulator' => 'getSimulator',
505        'suspect_score' => 'getSuspectScore',
506        'tampering' => 'getTampering',
507        'tampering_confidence' => 'getTamperingConfidence',
508        'tampering_ml_score' => 'getTamperingMlScore',
509        'tampering_details' => 'getTamperingDetails',
510        'velocity' => 'getVelocity',
511        'virtual_machine' => 'getVirtualMachine',
512        'virtual_machine_ml_score' => 'getVirtualMachineMlScore',
513        'vpn' => 'getVpn',
514        'vpn_confidence' => 'getVpnConfidence',
515        'vpn_ml_score' => 'getVpnMlScore',
516        'vpn_origin_timezone' => 'getVpnOriginTimezone',
517        'vpn_origin_country' => 'getVpnOriginCountry',
518        'vpn_methods' => 'getVpnMethods',
519        'high_activity_device' => 'getHighActivityDevice',
520        'rare_device' => 'getRareDevice',
521        'rare_device_percentile_bucket' => 'getRareDevicePercentileBucket',
522        'raw_device_attributes' => 'getRawDeviceAttributes',
523        'labels' => 'getLabels',
524    ];
525
526    /**
527     * Associative array for storing property values.
528     */
529    protected array $container = [];
530
531    /**
532     * Constructor.
533     *
534     * @param array|null $data Associated array of property values
535     *                         initializing the model
536     *
537     * @noinspection DuplicatedCode
538     */
539    public function __construct(?array $data = null)
540    {
541        $this->setIfExists('event_id', $data ?? [], null);
542        $this->setIfExists('timestamp', $data ?? [], null);
543        $this->setIfExists('source', $data ?? [], null);
544        $this->setIfExists('incremental_identification_status', $data ?? [], null);
545        $this->setIfExists('linked_id', $data ?? [], null);
546        $this->setIfExists('environment_id', $data ?? [], null);
547        $this->setIfExists('suspect', $data ?? [], null);
548        $this->setIfExists('sdk', $data ?? [], null);
549        $this->setIfExists('replayed', $data ?? [], null);
550        $this->setIfExists('identification', $data ?? [], null);
551        $this->setIfExists('supplementary_id_high_recall', $data ?? [], null);
552        $this->setIfExists('tags', $data ?? [], null);
553        $this->setIfExists('url', $data ?? [], null);
554        $this->setIfExists('bundle_id', $data ?? [], null);
555        $this->setIfExists('package_name', $data ?? [], null);
556        $this->setIfExists('ip_address', $data ?? [], null);
557        $this->setIfExists('user_agent', $data ?? [], null);
558        $this->setIfExists('device', $data ?? [], null);
559        $this->setIfExists('os', $data ?? [], null);
560        $this->setIfExists('os_version', $data ?? [], null);
561        $this->setIfExists('client_referrer', $data ?? [], null);
562        $this->setIfExists('browser_details', $data ?? [], null);
563        $this->setIfExists('proximity', $data ?? [], null);
564        $this->setIfExists('active_call', $data ?? [], null);
565        $this->setIfExists('bot', $data ?? [], null);
566        $this->setIfExists('bot_type', $data ?? [], null);
567        $this->setIfExists('bot_info', $data ?? [], null);
568        $this->setIfExists('cloned_app', $data ?? [], null);
569        $this->setIfExists('compromised_device_integrity', $data ?? [], null);
570        $this->setIfExists('developer_tools', $data ?? [], null);
571        $this->setIfExists('device_details', $data ?? [], null);
572        $this->setIfExists('emulator', $data ?? [], null);
573        $this->setIfExists('factory_reset_timestamp', $data ?? [], null);
574        $this->setIfExists('frida', $data ?? [], null);
575        $this->setIfExists('ip_blocklist', $data ?? [], null);
576        $this->setIfExists('ip_info', $data ?? [], null);
577        $this->setIfExists('proxy', $data ?? [], null);
578        $this->setIfExists('proxy_confidence', $data ?? [], null);
579        $this->setIfExists('proxy_details', $data ?? [], null);
580        $this->setIfExists('proxy_ml_score', $data ?? [], null);
581        $this->setIfExists('incognito', $data ?? [], null);
582        $this->setIfExists('jailbroken', $data ?? [], null);
583        $this->setIfExists('location_spoofing', $data ?? [], null);
584        $this->setIfExists('mitm_attack', $data ?? [], null);
585        $this->setIfExists('privacy_settings', $data ?? [], null);
586        $this->setIfExists('root_apps', $data ?? [], null);
587        $this->setIfExists('rule_action', $data ?? [], null);
588        $this->setIfExists('simulator', $data ?? [], null);
589        $this->setIfExists('suspect_score', $data ?? [], null);
590        $this->setIfExists('tampering', $data ?? [], null);
591        $this->setIfExists('tampering_confidence', $data ?? [], null);
592        $this->setIfExists('tampering_ml_score', $data ?? [], null);
593        $this->setIfExists('tampering_details', $data ?? [], null);
594        $this->setIfExists('velocity', $data ?? [], null);
595        $this->setIfExists('virtual_machine', $data ?? [], null);
596        $this->setIfExists('virtual_machine_ml_score', $data ?? [], null);
597        $this->setIfExists('vpn', $data ?? [], null);
598        $this->setIfExists('vpn_confidence', $data ?? [], null);
599        $this->setIfExists('vpn_ml_score', $data ?? [], null);
600        $this->setIfExists('vpn_origin_timezone', $data ?? [], null);
601        $this->setIfExists('vpn_origin_country', $data ?? [], null);
602        $this->setIfExists('vpn_methods', $data ?? [], null);
603        $this->setIfExists('high_activity_device', $data ?? [], null);
604        $this->setIfExists('rare_device', $data ?? [], null);
605        $this->setIfExists('rare_device_percentile_bucket', $data ?? [], null);
606        $this->setIfExists('raw_device_attributes', $data ?? [], null);
607        $this->setIfExists('labels', $data ?? [], null);
608    }
609
610    /**
611     * Gets the string presentation of the object.
612     *
613     */
614    public function __toString(): string
615    {
616        return json_encode(
617            ObjectSerializer::sanitizeForSerialization($this),
618            JSON_PRETTY_PRINT
619        );
620    }
621
622    /**
623     * Array of property to type mappings. Used for (de)serialization.
624     *
625     */
626    public static function openAPITypes(): array
627    {
628        return self::$openAPITypes;
629    }
630
631    /**
632     * Array of property to format mappings. Used for (de)serialization.
633     */
634    public static function openAPIFormats(): array
635    {
636        return self::$openAPIFormats;
637    }
638
639    /**
640     * Checks if a property is nullable.
641     *
642     */
643    public static function isNullable(string $property): bool
644    {
645        return self::openAPINullables()[$property] ?? false;
646    }
647
648    /**
649     * Checks if a nullable property is set to null.
650     *
651     */
652    public function isNullableSetToNull(string $property): bool
653    {
654        return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
655    }
656
657    /**
658     * Array of attributes where the key is the local name,
659     * and the value is the original name.
660     *
661     */
662    public static function attributeMap(): array
663    {
664        return self::$attributeMap;
665    }
666
667    /**
668     * Array of attributes to setter functions (for deserialization of responses).
669     *
670     */
671    public static function setters(): array
672    {
673        return self::$setters;
674    }
675
676    /**
677     * Array of attributes to getter functions (for serialization of requests).
678     *
679     */
680    public static function getters(): array
681    {
682        return self::$getters;
683    }
684
685    /**
686     * The original name of the model.
687     *
688     */
689    public function getModelName(): string
690    {
691        return self::$openAPIModelName;
692    }
693
694    /**
695     * Show all the invalid properties with reasons.
696     *
697     * @return array invalid properties with reasons
698     */
699    public function listInvalidProperties(): array
700    {
701        $invalidProperties = [];
702
703        if (null === $this->container['event_id']) {
704            $invalidProperties[] = "'event_id' can't be null";
705        }
706        if (null === $this->container['timestamp']) {
707            $invalidProperties[] = "'timestamp' can't be null";
708        }
709        if (!is_null($this->container['proxy_ml_score']) && ($this->container['proxy_ml_score'] > 1)) {
710            $invalidProperties[] = "invalid value for 'proxy_ml_score', must be smaller than or equal to 1.";
711        }
712
713        if (!is_null($this->container['proxy_ml_score']) && ($this->container['proxy_ml_score'] < 0)) {
714            $invalidProperties[] = "invalid value for 'proxy_ml_score', must be bigger than or equal to 0.";
715        }
716
717        if (!is_null($this->container['tampering_ml_score']) && ($this->container['tampering_ml_score'] > 1)) {
718            $invalidProperties[] = "invalid value for 'tampering_ml_score', must be smaller than or equal to 1.";
719        }
720
721        if (!is_null($this->container['tampering_ml_score']) && ($this->container['tampering_ml_score'] < 0)) {
722            $invalidProperties[] = "invalid value for 'tampering_ml_score', must be bigger than or equal to 0.";
723        }
724
725        if (!is_null($this->container['virtual_machine_ml_score']) && ($this->container['virtual_machine_ml_score'] > 1)) {
726            $invalidProperties[] = "invalid value for 'virtual_machine_ml_score', must be smaller than or equal to 1.";
727        }
728
729        if (!is_null($this->container['virtual_machine_ml_score']) && ($this->container['virtual_machine_ml_score'] < 0)) {
730            $invalidProperties[] = "invalid value for 'virtual_machine_ml_score', must be bigger than or equal to 0.";
731        }
732
733        if (!is_null($this->container['vpn_ml_score']) && ($this->container['vpn_ml_score'] > 1)) {
734            $invalidProperties[] = "invalid value for 'vpn_ml_score', must be smaller than or equal to 1.";
735        }
736
737        if (!is_null($this->container['vpn_ml_score']) && ($this->container['vpn_ml_score'] < 0)) {
738            $invalidProperties[] = "invalid value for 'vpn_ml_score', must be bigger than or equal to 0.";
739        }
740
741        return $invalidProperties;
742    }
743
744    /**
745     * Validate all the properties in the model
746     * return true if all passed.
747     *
748     * @return bool True if all properties are valid
749     */
750    public function valid(): bool
751    {
752        return 0 === count($this->listInvalidProperties());
753    }
754
755    /**
756     * Gets event_id.
757     *
758     */
759    public function getEventId(): ?string
760    {
761        return $this->container['event_id'];
762    }
763
764    /**
765     * Sets event_id.
766     *
767     * @param string $event_id Unique identifier of the user's request. The first portion of the event_id is a unix epoch milliseconds timestamp.
768     *
769     */
770    public function setEventId(string $event_id): self
771    {
772        $this->container['event_id'] = $event_id;
773
774        return $this;
775    }
776
777    /**
778     * Gets timestamp.
779     *
780     */
781    public function getTimestamp(): ?int
782    {
783        return $this->container['timestamp'];
784    }
785
786    /**
787     * Sets timestamp.
788     *
789     * @param int $timestamp timestamp of the event with millisecond precision in Unix time
790     *
791     */
792    public function setTimestamp(int $timestamp): self
793    {
794        $this->container['timestamp'] = $timestamp;
795
796        return $this;
797    }
798
799    /**
800     * Gets source.
801     *
802     */
803    public function getSource(): EventSource|string|null
804    {
805        return $this->container['source'];
806    }
807
808    /**
809     * Sets source.
810     *
811     * @param EventSource|string $source source
812     *
813     */
814    public function setSource(EventSource|string $source): self
815    {
816        $this->container['source'] = $source;
817
818        return $this;
819    }
820
821    /**
822     * Gets incremental_identification_status.
823     *
824     */
825    public function getIncrementalIdentificationStatus(): IncrementalIdentificationStatus|string|null
826    {
827        return $this->container['incremental_identification_status'];
828    }
829
830    /**
831     * Sets incremental_identification_status.
832     *
833     * @param IncrementalIdentificationStatus|string $incremental_identification_status incremental_identification_status
834     *
835     */
836    public function setIncrementalIdentificationStatus(IncrementalIdentificationStatus|string $incremental_identification_status): self
837    {
838        $this->container['incremental_identification_status'] = $incremental_identification_status;
839
840        return $this;
841    }
842
843    /**
844     * Gets linked_id.
845     *
846     */
847    public function getLinkedId(): ?string
848    {
849        return $this->container['linked_id'];
850    }
851
852    /**
853     * Sets linked_id.
854     *
855     * @param string $linked_id a customer-provided ID that was sent with the request
856     *
857     */
858    public function setLinkedId(string $linked_id): self
859    {
860        $this->container['linked_id'] = $linked_id;
861
862        return $this;
863    }
864
865    /**
866     * Gets environment_id.
867     *
868     */
869    public function getEnvironmentId(): ?string
870    {
871        return $this->container['environment_id'];
872    }
873
874    /**
875     * Sets environment_id.
876     *
877     * @param string $environment_id environment ID of the event
878     *
879     */
880    public function setEnvironmentId(string $environment_id): self
881    {
882        $this->container['environment_id'] = $environment_id;
883
884        return $this;
885    }
886
887    /**
888     * Gets suspect.
889     *
890     */
891    public function getSuspect(): ?bool
892    {
893        return $this->container['suspect'];
894    }
895
896    /**
897     * Sets suspect.
898     *
899     * @param bool $suspect Field is `true` if you have previously set the `suspect` flag for this event using the [Server API Update event endpoint](https://docs.fingerprint.com/reference/server-api-update-event).
900     *
901     */
902    public function setSuspect(bool $suspect): self
903    {
904        $this->container['suspect'] = $suspect;
905
906        return $this;
907    }
908
909    /**
910     * Gets sdk.
911     *
912     */
913    public function getSdk(): ?SDK
914    {
915        return $this->container['sdk'];
916    }
917
918    /**
919     * Sets sdk.
920     *
921     * @param SDK $sdk sdk
922     *
923     */
924    public function setSdk(SDK $sdk): self
925    {
926        $this->container['sdk'] = $sdk;
927
928        return $this;
929    }
930
931    /**
932     * Gets replayed.
933     *
934     */
935    public function getReplayed(): ?bool
936    {
937        return $this->container['replayed'];
938    }
939
940    /**
941     * Sets replayed.
942     *
943     * @param bool $replayed `true` if we determined that this payload was replayed, `false` otherwise
944     *
945     */
946    public function setReplayed(bool $replayed): self
947    {
948        $this->container['replayed'] = $replayed;
949
950        return $this;
951    }
952
953    /**
954     * Gets identification.
955     *
956     */
957    public function getIdentification(): ?Identification
958    {
959        return $this->container['identification'];
960    }
961
962    /**
963     * Sets identification.
964     *
965     * @param Identification $identification identification
966     *
967     */
968    public function setIdentification(Identification $identification): self
969    {
970        $this->container['identification'] = $identification;
971
972        return $this;
973    }
974
975    /**
976     * Gets supplementary_id_high_recall.
977     *
978     */
979    public function getSupplementaryIdHighRecall(): ?SupplementaryIDHighRecall
980    {
981        return $this->container['supplementary_id_high_recall'];
982    }
983
984    /**
985     * Sets supplementary_id_high_recall.
986     *
987     * @param SupplementaryIDHighRecall $supplementary_id_high_recall supplementary_id_high_recall
988     *
989     */
990    public function setSupplementaryIdHighRecall(SupplementaryIDHighRecall $supplementary_id_high_recall): self
991    {
992        $this->container['supplementary_id_high_recall'] = $supplementary_id_high_recall;
993
994        return $this;
995    }
996
997    /**
998     * Gets tags.
999     *
1000     * @return array<string,mixed>|null
1001     */
1002    public function getTags(): ?array
1003    {
1004        return $this->container['tags'];
1005    }
1006
1007    /**
1008     * Sets tags.
1009     *
1010     * @param array<string,mixed> $tags a customer-provided value or an object that was sent with the identification request or updated later
1011     *
1012     */
1013    public function setTags(array $tags): self
1014    {
1015        $this->container['tags'] = $tags;
1016
1017        return $this;
1018    }
1019
1020    /**
1021     * Gets url.
1022     *
1023     */
1024    public function getUrl(): ?string
1025    {
1026        return $this->container['url'];
1027    }
1028
1029    /**
1030     * Sets url.
1031     *
1032     * @param string $url page URL from which the request was sent
1033     *
1034     */
1035    public function setUrl(string $url): self
1036    {
1037        $this->container['url'] = $url;
1038
1039        return $this;
1040    }
1041
1042    /**
1043     * Gets bundle_id.
1044     *
1045     */
1046    public function getBundleId(): ?string
1047    {
1048        return $this->container['bundle_id'];
1049    }
1050
1051    /**
1052     * Sets bundle_id.
1053     *
1054     * @param string $bundle_id bundle ID of the iOS application integrated with the Fingerprint SDK for the event
1055     *
1056     */
1057    public function setBundleId(string $bundle_id): self
1058    {
1059        $this->container['bundle_id'] = $bundle_id;
1060
1061        return $this;
1062    }
1063
1064    /**
1065     * Gets package_name.
1066     *
1067     */
1068    public function getPackageName(): ?string
1069    {
1070        return $this->container['package_name'];
1071    }
1072
1073    /**
1074     * Sets package_name.
1075     *
1076     * @param string $package_name package name of the Android application integrated with the Fingerprint SDK for the event
1077     *
1078     */
1079    public function setPackageName(string $package_name): self
1080    {
1081        $this->container['package_name'] = $package_name;
1082
1083        return $this;
1084    }
1085
1086    /**
1087     * Gets ip_address.
1088     *
1089     */
1090    public function getIpAddress(): ?string
1091    {
1092        return $this->container['ip_address'];
1093    }
1094
1095    /**
1096     * Sets ip_address.
1097     *
1098     * @param string $ip_address IP address of the requesting browser or bot
1099     *
1100     */
1101    public function setIpAddress(string $ip_address): self
1102    {
1103        $this->container['ip_address'] = $ip_address;
1104
1105        return $this;
1106    }
1107
1108    /**
1109     * Gets user_agent.
1110     *
1111     */
1112    public function getUserAgent(): ?string
1113    {
1114        return $this->container['user_agent'];
1115    }
1116
1117    /**
1118     * Sets user_agent.
1119     *
1120     * @param string $user_agent user Agent of the client
1121     *
1122     */
1123    public function setUserAgent(string $user_agent): self
1124    {
1125        $this->container['user_agent'] = $user_agent;
1126
1127        return $this;
1128    }
1129
1130    /**
1131     * Gets device.
1132     *
1133     */
1134    public function getDevice(): ?string
1135    {
1136        return $this->container['device'];
1137    }
1138
1139    /**
1140     * Sets device.
1141     *
1142     * @param string $device Device model or family extracted from the user agent string. On web, this field is also present inside `browser_details`.
1143     *
1144     */
1145    public function setDevice(string $device): self
1146    {
1147        $this->container['device'] = $device;
1148
1149        return $this;
1150    }
1151
1152    /**
1153     * Gets os.
1154     *
1155     */
1156    public function getOs(): ?string
1157    {
1158        return $this->container['os'];
1159    }
1160
1161    /**
1162     * Sets os.
1163     *
1164     * @param string $os Operating system family extracted from the user agent string. On web, this field is also present inside `browser_details`.
1165     *
1166     */
1167    public function setOs(string $os): self
1168    {
1169        $this->container['os'] = $os;
1170
1171        return $this;
1172    }
1173
1174    /**
1175     * Gets os_version.
1176     *
1177     */
1178    public function getOsVersion(): ?string
1179    {
1180        return $this->container['os_version'];
1181    }
1182
1183    /**
1184     * Sets os_version.
1185     *
1186     * @param string $os_version Operating system version string extracted from the user agent string. On web, this field is also present inside `browser_details`.
1187     *
1188     */
1189    public function setOsVersion(string $os_version): self
1190    {
1191        $this->container['os_version'] = $os_version;
1192
1193        return $this;
1194    }
1195
1196    /**
1197     * Gets client_referrer.
1198     *
1199     */
1200    public function getClientReferrer(): ?string
1201    {
1202        return $this->container['client_referrer'];
1203    }
1204
1205    /**
1206     * Sets client_referrer.
1207     *
1208     * @param string $client_referrer Client Referrer field corresponds to the `document.referrer` field gathered during an identification request. The value is an empty string if the user navigated to the page directly (not through a link, but, for example, by using a bookmark).
1209     *
1210     */
1211    public function setClientReferrer(string $client_referrer): self
1212    {
1213        $this->container['client_referrer'] = $client_referrer;
1214
1215        return $this;
1216    }
1217
1218    /**
1219     * Gets browser_details.
1220     *
1221     */
1222    public function getBrowserDetails(): ?BrowserDetails
1223    {
1224        return $this->container['browser_details'];
1225    }
1226
1227    /**
1228     * Sets browser_details.
1229     *
1230     * @param BrowserDetails $browser_details browser_details
1231     *
1232     */
1233    public function setBrowserDetails(BrowserDetails $browser_details): self
1234    {
1235        $this->container['browser_details'] = $browser_details;
1236
1237        return $this;
1238    }
1239
1240    /**
1241     * Gets proximity.
1242     *
1243     */
1244    public function getProximity(): ?Proximity
1245    {
1246        return $this->container['proximity'];
1247    }
1248
1249    /**
1250     * Sets proximity.
1251     *
1252     * @param Proximity $proximity proximity
1253     *
1254     */
1255    public function setProximity(Proximity $proximity): self
1256    {
1257        $this->container['proximity'] = $proximity;
1258
1259        return $this;
1260    }
1261
1262    /**
1263     * Gets active_call.
1264     *
1265     */
1266    public function getActiveCall(): ?bool
1267    {
1268        return $this->container['active_call'];
1269    }
1270
1271    /**
1272     * Sets active_call.
1273     *
1274     * @param bool $active_call Indicates whether the mobile device had an active call (cellular or VoIP) at the time of the request. Available from SDK 2.16.0+ on iOS and Android.
1275     *
1276     */
1277    public function setActiveCall(bool $active_call): self
1278    {
1279        $this->container['active_call'] = $active_call;
1280
1281        return $this;
1282    }
1283
1284    /**
1285     * Gets bot.
1286     *
1287     */
1288    public function getBot(): BotResult|string|null
1289    {
1290        return $this->container['bot'];
1291    }
1292
1293    /**
1294     * Sets bot.
1295     *
1296     * @param BotResult|string $bot bot
1297     *
1298     */
1299    public function setBot(BotResult|string $bot): self
1300    {
1301        $this->container['bot'] = $bot;
1302
1303        return $this;
1304    }
1305
1306    /**
1307     * Gets bot_type.
1308     *
1309     */
1310    public function getBotType(): ?string
1311    {
1312        return $this->container['bot_type'];
1313    }
1314
1315    /**
1316     * Sets bot_type.
1317     *
1318     * @param string $bot_type additional classification of the bot type if detected
1319     *
1320     */
1321    public function setBotType(string $bot_type): self
1322    {
1323        $this->container['bot_type'] = $bot_type;
1324
1325        return $this;
1326    }
1327
1328    /**
1329     * Gets bot_info.
1330     *
1331     */
1332    public function getBotInfo(): ?BotInfo
1333    {
1334        return $this->container['bot_info'];
1335    }
1336
1337    /**
1338     * Sets bot_info.
1339     *
1340     * @param BotInfo $bot_info bot_info
1341     *
1342     */
1343    public function setBotInfo(BotInfo $bot_info): self
1344    {
1345        $this->container['bot_info'] = $bot_info;
1346
1347        return $this;
1348    }
1349
1350    /**
1351     * Gets cloned_app.
1352     *
1353     */
1354    public function getClonedApp(): ?bool
1355    {
1356        return $this->container['cloned_app'];
1357    }
1358
1359    /**
1360     * Sets cloned_app.
1361     *
1362     * @param bool $cloned_app Android specific cloned application detection. There are 2 values:  * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android.
1363     *
1364     */
1365    public function setClonedApp(bool $cloned_app): self
1366    {
1367        $this->container['cloned_app'] = $cloned_app;
1368
1369        return $this;
1370    }
1371
1372    /**
1373     * Gets compromised_device_integrity.
1374     *
1375     */
1376    public function getCompromisedDeviceIntegrity(): ?bool
1377    {
1378        return $this->container['compromised_device_integrity'];
1379    }
1380
1381    /**
1382     * Sets compromised_device_integrity.
1383     *
1384     * @param bool $compromised_device_integrity `true` if the Android device's boot or system integrity is compromised (e.g., an unlocked bootloader or a failed verified boot), so the device cannot be trusted. `false` if no integrity issue was detected. Available from Android SDK 2.6.0+.
1385     *
1386     */
1387    public function setCompromisedDeviceIntegrity(bool $compromised_device_integrity): self
1388    {
1389        $this->container['compromised_device_integrity'] = $compromised_device_integrity;
1390
1391        return $this;
1392    }
1393
1394    /**
1395     * Gets developer_tools.
1396     *
1397     */
1398    public function getDeveloperTools(): ?bool
1399    {
1400        return $this->container['developer_tools'];
1401    }
1402
1403    /**
1404     * Sets developer_tools.
1405     *
1406     * @param bool $developer_tools `true` if the browser has DevTools open (Chrome, Firefox) or the Android/iOS device has Developer Tools enabled, `false` otherwise
1407     *
1408     */
1409    public function setDeveloperTools(bool $developer_tools): self
1410    {
1411        $this->container['developer_tools'] = $developer_tools;
1412
1413        return $this;
1414    }
1415
1416    /**
1417     * Gets device_details.
1418     *
1419     */
1420    public function getDeviceDetails(): ?DeviceDetails
1421    {
1422        return $this->container['device_details'];
1423    }
1424
1425    /**
1426     * Sets device_details.
1427     *
1428     * @param DeviceDetails $device_details device_details
1429     *
1430     */
1431    public function setDeviceDetails(DeviceDetails $device_details): self
1432    {
1433        $this->container['device_details'] = $device_details;
1434
1435        return $this;
1436    }
1437
1438    /**
1439     * Gets emulator.
1440     *
1441     */
1442    public function getEmulator(): ?bool
1443    {
1444        return $this->container['emulator'];
1445    }
1446
1447    /**
1448     * Sets emulator.
1449     *
1450     * @param bool $emulator Android specific emulator detection. There are 2 values:  * `true` - Emulated environment detected (e.g. launch inside of AVD).  * `false` - No signs of emulated environment detected or the client is not Android.
1451     *
1452     */
1453    public function setEmulator(bool $emulator): self
1454    {
1455        $this->container['emulator'] = $emulator;
1456
1457        return $this;
1458    }
1459
1460    /**
1461     * Gets factory_reset_timestamp.
1462     *
1463     */
1464    public function getFactoryResetTimestamp(): ?int
1465    {
1466        return $this->container['factory_reset_timestamp'];
1467    }
1468
1469    /**
1470     * Sets factory_reset_timestamp.
1471     *
1472     * @param int $factory_reset_timestamp The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser,  this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC) as a value of 0. See [Factory Reset Detection](https://docs.fingerprint.com/docs/smart-signals-reference#factory-reset-detection) to learn more about this Smart Signal.
1473     *
1474     */
1475    public function setFactoryResetTimestamp(int $factory_reset_timestamp): self
1476    {
1477        $this->container['factory_reset_timestamp'] = $factory_reset_timestamp;
1478
1479        return $this;
1480    }
1481
1482    /**
1483     * Gets frida.
1484     *
1485     */
1486    public function getFrida(): ?bool
1487    {
1488        return $this->container['frida'];
1489    }
1490
1491    /**
1492     * Sets frida.
1493     *
1494     * @param bool $frida [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device.
1495     *
1496     */
1497    public function setFrida(bool $frida): self
1498    {
1499        $this->container['frida'] = $frida;
1500
1501        return $this;
1502    }
1503
1504    /**
1505     * Gets ip_blocklist.
1506     *
1507     */
1508    public function getIpBlocklist(): ?IPBlockList
1509    {
1510        return $this->container['ip_blocklist'];
1511    }
1512
1513    /**
1514     * Sets ip_blocklist.
1515     *
1516     * @param IPBlockList $ip_blocklist ip_blocklist
1517     *
1518     */
1519    public function setIpBlocklist(IPBlockList $ip_blocklist): self
1520    {
1521        $this->container['ip_blocklist'] = $ip_blocklist;
1522
1523        return $this;
1524    }
1525
1526    /**
1527     * Gets ip_info.
1528     *
1529     */
1530    public function getIpInfo(): ?IPInfo
1531    {
1532        return $this->container['ip_info'];
1533    }
1534
1535    /**
1536     * Sets ip_info.
1537     *
1538     * @param IPInfo $ip_info ip_info
1539     *
1540     */
1541    public function setIpInfo(IPInfo $ip_info): self
1542    {
1543        $this->container['ip_info'] = $ip_info;
1544
1545        return $this;
1546    }
1547
1548    /**
1549     * Gets proxy.
1550     *
1551     */
1552    public function getProxy(): ?bool
1553    {
1554        return $this->container['proxy'];
1555    }
1556
1557    /**
1558     * Sets proxy.
1559     *
1560     * @param bool $proxy IP address was used by a public proxy provider or belonged to a known recent residential proxy
1561     *
1562     */
1563    public function setProxy(bool $proxy): self
1564    {
1565        $this->container['proxy'] = $proxy;
1566
1567        return $this;
1568    }
1569
1570    /**
1571     * Gets proxy_confidence.
1572     *
1573     */
1574    public function getProxyConfidence(): ProxyConfidence|string|null
1575    {
1576        return $this->container['proxy_confidence'];
1577    }
1578
1579    /**
1580     * Sets proxy_confidence.
1581     *
1582     * @param ProxyConfidence|string $proxy_confidence proxy_confidence
1583     *
1584     */
1585    public function setProxyConfidence(ProxyConfidence|string $proxy_confidence): self
1586    {
1587        $this->container['proxy_confidence'] = $proxy_confidence;
1588
1589        return $this;
1590    }
1591
1592    /**
1593     * Gets proxy_details.
1594     *
1595     */
1596    public function getProxyDetails(): ?ProxyDetails
1597    {
1598        return $this->container['proxy_details'];
1599    }
1600
1601    /**
1602     * Sets proxy_details.
1603     *
1604     * @param ProxyDetails $proxy_details proxy_details
1605     *
1606     */
1607    public function setProxyDetails(ProxyDetails $proxy_details): self
1608    {
1609        $this->container['proxy_details'] = $proxy_details;
1610
1611        return $this;
1612    }
1613
1614    /**
1615     * Gets proxy_ml_score.
1616     *
1617     */
1618    public function getProxyMlScore(): ?float
1619    {
1620        return $this->container['proxy_ml_score'];
1621    }
1622
1623    /**
1624     * Sets proxy_ml_score.
1625     *
1626     * @param float $proxy_ml_score Machine learning–based proxy score, represented as a floating-point value between 0 and 1 (inclusive), with up to three decimal places of precision. A higher score means a higher confidence in the positive `proxy` detection result. This Smart Signal is currently in beta and only available to select customers. If you are interested, please [contact our support team](https://fingerprint.com/support/).
1627     *
1628     */
1629    public function setProxyMlScore(float $proxy_ml_score): self
1630    {
1631        if ($proxy_ml_score > 1) {
1632            throw new \InvalidArgumentException('invalid value for $proxy_ml_score when calling Event., must be smaller than or equal to 1.');
1633        }
1634        if ($proxy_ml_score < 0) {
1635            throw new \InvalidArgumentException('invalid value for $proxy_ml_score when calling Event., must be bigger than or equal to 0.');
1636        }
1637
1638        $this->container['proxy_ml_score'] = $proxy_ml_score;
1639
1640        return $this;
1641    }
1642
1643    /**
1644     * Gets incognito.
1645     *
1646     */
1647    public function getIncognito(): ?bool
1648    {
1649        return $this->container['incognito'];
1650    }
1651
1652    /**
1653     * Sets incognito.
1654     *
1655     * @param bool $incognito `true` if we detected incognito mode used in the browser, `false` otherwise
1656     *
1657     */
1658    public function setIncognito(bool $incognito): self
1659    {
1660        $this->container['incognito'] = $incognito;
1661
1662        return $this;
1663    }
1664
1665    /**
1666     * Gets jailbroken.
1667     *
1668     */
1669    public function getJailbroken(): ?bool
1670    {
1671        return $this->container['jailbroken'];
1672    }
1673
1674    /**
1675     * Sets jailbroken.
1676     *
1677     * @param bool $jailbroken iOS specific jailbreak detection. There are 2 values:  * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS.
1678     *
1679     */
1680    public function setJailbroken(bool $jailbroken): self
1681    {
1682        $this->container['jailbroken'] = $jailbroken;
1683
1684        return $this;
1685    }
1686
1687    /**
1688     * Gets location_spoofing.
1689     *
1690     */
1691    public function getLocationSpoofing(): ?bool
1692    {
1693        return $this->container['location_spoofing'];
1694    }
1695
1696    /**
1697     * Sets location_spoofing.
1698     *
1699     * @param bool $location_spoofing flag indicating whether the request came from a mobile device with location spoofing enabled
1700     *
1701     */
1702    public function setLocationSpoofing(bool $location_spoofing): self
1703    {
1704        $this->container['location_spoofing'] = $location_spoofing;
1705
1706        return $this;
1707    }
1708
1709    /**
1710     * Gets mitm_attack.
1711     *
1712     */
1713    public function getMitmAttack(): ?bool
1714    {
1715        return $this->container['mitm_attack'];
1716    }
1717
1718    /**
1719     * Sets mitm_attack.
1720     *
1721     * @param bool $mitm_attack * `true` - When requests made from your users' mobile devices to Fingerprint servers have been intercepted and potentially modified.  * `false` - Otherwise or when the request originated from a browser. See [MitM Attack Detection](https://docs.fingerprint.com/docs/smart-signals-reference#mitm-attack-detection) to learn more about this Smart Signal.
1722     *
1723     */
1724    public function setMitmAttack(bool $mitm_attack): self
1725    {
1726        $this->container['mitm_attack'] = $mitm_attack;
1727
1728        return $this;
1729    }
1730
1731    /**
1732     * Gets privacy_settings.
1733     *
1734     */
1735    public function getPrivacySettings(): ?bool
1736    {
1737        return $this->container['privacy_settings'];
1738    }
1739
1740    /**
1741     * Sets privacy_settings.
1742     *
1743     * @param bool $privacy_settings `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`.
1744     *
1745     */
1746    public function setPrivacySettings(bool $privacy_settings): self
1747    {
1748        $this->container['privacy_settings'] = $privacy_settings;
1749
1750        return $this;
1751    }
1752
1753    /**
1754     * Gets root_apps.
1755     *
1756     */
1757    public function getRootApps(): ?bool
1758    {
1759        return $this->container['root_apps'];
1760    }
1761
1762    /**
1763     * Sets root_apps.
1764     *
1765     * @param bool $root_apps Android specific root management apps detection. There are 2 values:  * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android.
1766     *
1767     */
1768    public function setRootApps(bool $root_apps): self
1769    {
1770        $this->container['root_apps'] = $root_apps;
1771
1772        return $this;
1773    }
1774
1775    /**
1776     * Gets rule_action.
1777     *
1778     */
1779    public function getRuleAction(): ?EventRuleAction
1780    {
1781        return $this->container['rule_action'];
1782    }
1783
1784    /**
1785     * Sets rule_action.
1786     *
1787     * @param EventRuleAction $rule_action rule_action
1788     *
1789     */
1790    public function setRuleAction(EventRuleAction $rule_action): self
1791    {
1792        $this->container['rule_action'] = $rule_action;
1793
1794        return $this;
1795    }
1796
1797    /**
1798     * Gets simulator.
1799     *
1800     */
1801    public function getSimulator(): ?bool
1802    {
1803        return $this->container['simulator'];
1804    }
1805
1806    /**
1807     * Sets simulator.
1808     *
1809     * @param bool $simulator Flags requests coming from an iOS Simulator. Covers the native iOS SDK and Safari running inside the iOS Simulator. There are 2 values: * `true` - Simulator environment detected. * `false` - No signs of a simulator, or the request does not come from iOS (native iOS SDK or Safari on iOS).
1810     *
1811     */
1812    public function setSimulator(bool $simulator): self
1813    {
1814        $this->container['simulator'] = $simulator;
1815
1816        return $this;
1817    }
1818
1819    /**
1820     * Gets suspect_score.
1821     *
1822     */
1823    public function getSuspectScore(): ?int
1824    {
1825        return $this->container['suspect_score'];
1826    }
1827
1828    /**
1829     * Sets suspect_score.
1830     *
1831     * @param int $suspect_score Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow.  It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights.  See more details here: https://docs.fingerprint.com/docs/suspect-score
1832     *
1833     */
1834    public function setSuspectScore(int $suspect_score): self
1835    {
1836        $this->container['suspect_score'] = $suspect_score;
1837
1838        return $this;
1839    }
1840
1841    /**
1842     * Gets tampering.
1843     *
1844     */
1845    public function getTampering(): ?bool
1846    {
1847        return $this->container['tampering'];
1848    }
1849
1850    /**
1851     * Sets tampering.
1852     *
1853     * @param bool $tampering The field can be used as a standalone flag for tampering detection. Alternatively, the more granular fields documented below can be used for workflows that require more context. * `true` if tampering is detected through an anomalous browser signature, anti-detect browser detection, or other tampering-related methods * `false` if none of the tampering checks return a positive result
1854     *
1855     */
1856    public function setTampering(bool $tampering): self
1857    {
1858        $this->container['tampering'] = $tampering;
1859
1860        return $this;
1861    }
1862
1863    /**
1864     * Gets tampering_confidence.
1865     *
1866     */
1867    public function getTamperingConfidence(): string|TamperingConfidence|null
1868    {
1869        return $this->container['tampering_confidence'];
1870    }
1871
1872    /**
1873     * Sets tampering_confidence.
1874     *
1875     * @param TamperingConfidence|string $tampering_confidence tampering_confidence
1876     *
1877     */
1878    public function setTamperingConfidence(string|TamperingConfidence $tampering_confidence): self
1879    {
1880        $this->container['tampering_confidence'] = $tampering_confidence;
1881
1882        return $this;
1883    }
1884
1885    /**
1886     * Gets tampering_ml_score.
1887     *
1888     */
1889    public function getTamperingMlScore(): ?float
1890    {
1891        return $this->container['tampering_ml_score'];
1892    }
1893
1894    /**
1895     * Sets tampering_ml_score.
1896     *
1897     * @param float $tampering_ml_score The output of this model is captured as tampering_ml_score, a number indicating how likely an event is coming from an anti detect browser. Values close to 1 signify higher confidence and we consider anything above the threshold of 0.8 to be actionable (the result and anti_detect_browser fields conveniently captures that fact)
1898     *
1899     */
1900    public function setTamperingMlScore(float $tampering_ml_score): self
1901    {
1902        if ($tampering_ml_score > 1) {
1903            throw new \InvalidArgumentException('invalid value for $tampering_ml_score when calling Event., must be smaller than or equal to 1.');
1904        }
1905        if ($tampering_ml_score < 0) {
1906            throw new \InvalidArgumentException('invalid value for $tampering_ml_score when calling Event., must be bigger than or equal to 0.');
1907        }
1908
1909        $this->container['tampering_ml_score'] = $tampering_ml_score;
1910
1911        return $this;
1912    }
1913
1914    /**
1915     * Gets tampering_details.
1916     *
1917     */
1918    public function getTamperingDetails(): ?TamperingDetails
1919    {
1920        return $this->container['tampering_details'];
1921    }
1922
1923    /**
1924     * Sets tampering_details.
1925     *
1926     * @param TamperingDetails $tampering_details tampering_details
1927     *
1928     */
1929    public function setTamperingDetails(TamperingDetails $tampering_details): self
1930    {
1931        $this->container['tampering_details'] = $tampering_details;
1932
1933        return $this;
1934    }
1935
1936    /**
1937     * Gets velocity.
1938     *
1939     */
1940    public function getVelocity(): ?Velocity
1941    {
1942        return $this->container['velocity'];
1943    }
1944
1945    /**
1946     * Sets velocity.
1947     *
1948     * @param Velocity $velocity velocity
1949     *
1950     */
1951    public function setVelocity(Velocity $velocity): self
1952    {
1953        $this->container['velocity'] = $velocity;
1954
1955        return $this;
1956    }
1957
1958    /**
1959     * Gets virtual_machine.
1960     *
1961     */
1962    public function getVirtualMachine(): ?bool
1963    {
1964        return $this->container['virtual_machine'];
1965    }
1966
1967    /**
1968     * Sets virtual_machine.
1969     *
1970     * @param bool $virtual_machine `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise.
1971     *
1972     */
1973    public function setVirtualMachine(bool $virtual_machine): self
1974    {
1975        $this->container['virtual_machine'] = $virtual_machine;
1976
1977        return $this;
1978    }
1979
1980    /**
1981     * Gets virtual_machine_ml_score.
1982     *
1983     */
1984    public function getVirtualMachineMlScore(): ?float
1985    {
1986        return $this->container['virtual_machine_ml_score'];
1987    }
1988
1989    /**
1990     * Sets virtual_machine_ml_score.
1991     *
1992     * @param float $virtual_machine_ml_score Machine learning–based virtual machine score, represented as a floating-point value between 0 and 1 (inclusive), with up to three decimal places of precision. A higher score means a higher confidence in the positive `virtual_machine` detection result. This Smart Signal is currently in beta and only available to select customers. If you are interested, please [contact our support team](https://fingerprint.com/support/).
1993     *
1994     */
1995    public function setVirtualMachineMlScore(float $virtual_machine_ml_score): self
1996    {
1997        if ($virtual_machine_ml_score > 1) {
1998            throw new \InvalidArgumentException('invalid value for $virtual_machine_ml_score when calling Event., must be smaller than or equal to 1.');
1999        }
2000        if ($virtual_machine_ml_score < 0) {
2001            throw new \InvalidArgumentException('invalid value for $virtual_machine_ml_score when calling Event., must be bigger than or equal to 0.');
2002        }
2003
2004        $this->container['virtual_machine_ml_score'] = $virtual_machine_ml_score;
2005
2006        return $this;
2007    }
2008
2009    /**
2010     * Gets vpn.
2011     *
2012     */
2013    public function getVpn(): ?bool
2014    {
2015        return $this->container['vpn'];
2016    }
2017
2018    /**
2019     * Sets vpn.
2020     *
2021     * @param bool $vpn VPN or other anonymizing service has been used when sending the request
2022     *
2023     */
2024    public function setVpn(bool $vpn): self
2025    {
2026        $this->container['vpn'] = $vpn;
2027
2028        return $this;
2029    }
2030
2031    /**
2032     * Gets vpn_confidence.
2033     *
2034     */
2035    public function getVpnConfidence(): string|VpnConfidence|null
2036    {
2037        return $this->container['vpn_confidence'];
2038    }
2039
2040    /**
2041     * Sets vpn_confidence.
2042     *
2043     * @param VpnConfidence|string $vpn_confidence vpn_confidence
2044     *
2045     */
2046    public function setVpnConfidence(string|VpnConfidence $vpn_confidence): self
2047    {
2048        $this->container['vpn_confidence'] = $vpn_confidence;
2049
2050        return $this;
2051    }
2052
2053    /**
2054     * Gets vpn_ml_score.
2055     *
2056     */
2057    public function getVpnMlScore(): ?float
2058    {
2059        return $this->container['vpn_ml_score'];
2060    }
2061
2062    /**
2063     * Sets vpn_ml_score.
2064     *
2065     * @param float $vpn_ml_score Machine learning–based VPN score, represented as a floating-point value between 0 and 1 (inclusive), with up to three decimal places of precision. A higher score means a higher confidence in the positive `vpn` detection result. This Smart Signal is currently in beta and only available to select customers. If you are interested, please [contact our support team](https://fingerprint.com/support/).
2066     *
2067     */
2068    public function setVpnMlScore(float $vpn_ml_score): self
2069    {
2070        if ($vpn_ml_score > 1) {
2071            throw new \InvalidArgumentException('invalid value for $vpn_ml_score when calling Event., must be smaller than or equal to 1.');
2072        }
2073        if ($vpn_ml_score < 0) {
2074            throw new \InvalidArgumentException('invalid value for $vpn_ml_score when calling Event., must be bigger than or equal to 0.');
2075        }
2076
2077        $this->container['vpn_ml_score'] = $vpn_ml_score;
2078
2079        return $this;
2080    }
2081
2082    /**
2083     * Gets vpn_origin_timezone.
2084     *
2085     */
2086    public function getVpnOriginTimezone(): ?string
2087    {
2088        return $this->container['vpn_origin_timezone'];
2089    }
2090
2091    /**
2092     * Sets vpn_origin_timezone.
2093     *
2094     * @param string $vpn_origin_timezone local timezone which is used in timezone_mismatch method
2095     *
2096     */
2097    public function setVpnOriginTimezone(string $vpn_origin_timezone): self
2098    {
2099        $this->container['vpn_origin_timezone'] = $vpn_origin_timezone;
2100
2101        return $this;
2102    }
2103
2104    /**
2105     * Gets vpn_origin_country.
2106     *
2107     */
2108    public function getVpnOriginCountry(): ?string
2109    {
2110        return $this->container['vpn_origin_country'];
2111    }
2112
2113    /**
2114     * Sets vpn_origin_country.
2115     *
2116     * @param string $vpn_origin_country Country of the request (Android SDK version >= 2.4.0, iOS SDK version >= 2.9.0, JS agent >= 3.12.9 / 4.0.2), ISO 3166 format or unknown.
2117     *
2118     */
2119    public function setVpnOriginCountry(string $vpn_origin_country): self
2120    {
2121        $this->container['vpn_origin_country'] = $vpn_origin_country;
2122
2123        return $this;
2124    }
2125
2126    /**
2127     * Gets vpn_methods.
2128     *
2129     */
2130    public function getVpnMethods(): ?VpnMethods
2131    {
2132        return $this->container['vpn_methods'];
2133    }
2134
2135    /**
2136     * Sets vpn_methods.
2137     *
2138     * @param VpnMethods $vpn_methods vpn_methods
2139     *
2140     */
2141    public function setVpnMethods(VpnMethods $vpn_methods): self
2142    {
2143        $this->container['vpn_methods'] = $vpn_methods;
2144
2145        return $this;
2146    }
2147
2148    /**
2149     * Gets high_activity_device.
2150     *
2151     */
2152    public function getHighActivityDevice(): ?bool
2153    {
2154        return $this->container['high_activity_device'];
2155    }
2156
2157    /**
2158     * Sets high_activity_device.
2159     *
2160     * @param bool $high_activity_device flag indicating if the request came from a high-activity visitor
2161     *
2162     */
2163    public function setHighActivityDevice(bool $high_activity_device): self
2164    {
2165        $this->container['high_activity_device'] = $high_activity_device;
2166
2167        return $this;
2168    }
2169
2170    /**
2171     * Gets rare_device.
2172     *
2173     */
2174    public function getRareDevice(): ?bool
2175    {
2176        return $this->container['rare_device'];
2177    }
2178
2179    /**
2180     * Sets rare_device.
2181     *
2182     * @param bool $rare_device `true` if the device is considered rare based on its combination of hardware and software attributes.  A device is classified as rare if it falls within the top 99.9 percentile (lowest-frequency segment) of observed traffic,  or if its configuration has not been previously seen (`not_seen`). > This Smart Signal is currently in beta and only available to select customers. If you are interested, please [contact our support team](https://fingerprint.com/support/).
2183     *
2184     */
2185    public function setRareDevice(bool $rare_device): self
2186    {
2187        $this->container['rare_device'] = $rare_device;
2188
2189        return $this;
2190    }
2191
2192    /**
2193     * Gets rare_device_percentile_bucket.
2194     *
2195     */
2196    public function getRareDevicePercentileBucket(): RareDevicePercentileBucket|string|null
2197    {
2198        return $this->container['rare_device_percentile_bucket'];
2199    }
2200
2201    /**
2202     * Sets rare_device_percentile_bucket.
2203     *
2204     * @param RareDevicePercentileBucket|string $rare_device_percentile_bucket rare_device_percentile_bucket
2205     *
2206     */
2207    public function setRareDevicePercentileBucket(RareDevicePercentileBucket|string $rare_device_percentile_bucket): self
2208    {
2209        $this->container['rare_device_percentile_bucket'] = $rare_device_percentile_bucket;
2210
2211        return $this;
2212    }
2213
2214    /**
2215     * Gets raw_device_attributes.
2216     *
2217     */
2218    public function getRawDeviceAttributes(): ?RawDeviceAttributes
2219    {
2220        return $this->container['raw_device_attributes'];
2221    }
2222
2223    /**
2224     * Sets raw_device_attributes.
2225     *
2226     * @param RawDeviceAttributes $raw_device_attributes raw_device_attributes
2227     *
2228     */
2229    public function setRawDeviceAttributes(RawDeviceAttributes $raw_device_attributes): self
2230    {
2231        $this->container['raw_device_attributes'] = $raw_device_attributes;
2232
2233        return $this;
2234    }
2235
2236    /**
2237     * Gets labels.
2238     *
2239     * @return LabelsInner[]|null
2240     */
2241    public function getLabels(): ?array
2242    {
2243        return $this->container['labels'];
2244    }
2245
2246    /**
2247     * Sets labels.
2248     *
2249     * @param LabelsInner[] $labels Each label returns a prediction (true or false) for a specific use case (label field) based on a machine learning score. The machine learning score is determined by a model trained on customer data for that use case. This field is in the beta phase and only available to select customers. If you are interested, please [contact our support team](https://fingerprint.com/support/).
2250     *
2251     */
2252    public function setLabels(array $labels): self
2253    {
2254        $this->container['labels'] = $labels;
2255
2256        return $this;
2257    }
2258
2259    /**
2260     * Returns true if offset exists. False otherwise.
2261     *
2262     * @param int|string $offset Offset
2263     *
2264     */
2265    public function offsetExists(mixed $offset): bool
2266    {
2267        return isset($this->container[$offset]);
2268    }
2269
2270    /**
2271     * Gets offset.
2272     *
2273     * @param int|string $offset Offset
2274     *
2275     * @return mixed|null
2276     */
2277    #[\ReturnTypeWillChange]
2278    public function offsetGet(mixed $offset): mixed
2279    {
2280        return $this->container[$offset] ?? null;
2281    }
2282
2283    /**
2284     * Sets value based on offset.
2285     *
2286     * @param int|null $offset Offset
2287     * @param mixed    $value  Value to be set
2288     *
2289     */
2290    public function offsetSet(mixed $offset, mixed $value): void
2291    {
2292        if (is_null($offset)) {
2293            $this->container[] = $value;
2294        } else {
2295            $this->container[$offset] = $value;
2296        }
2297    }
2298
2299    /**
2300     * Unsets offset.
2301     *
2302     * @param int|string $offset Offset
2303     *
2304     */
2305    public function offsetUnset(mixed $offset): void
2306    {
2307        unset($this->container[$offset]);
2308    }
2309
2310    /**
2311     * Serializes the object to a value that can be serialized natively by json_encode().
2312     *
2313     * @see https://www.php.net/manual/en/jsonserializable.jsonserialize.php
2314     *
2315     * @return mixed returns data which can be serialized by json_encode(), which is a value
2316     *               of any type other than a resource
2317     */
2318    #[\ReturnTypeWillChange]
2319    public function jsonSerialize(): mixed
2320    {
2321        return ObjectSerializer::sanitizeForSerialization($this);
2322    }
2323
2324    /**
2325     * Gets a header-safe presentation of the object.
2326     *
2327     */
2328    public function toHeaderValue(): string
2329    {
2330        return json_encode(ObjectSerializer::sanitizeForSerialization($this));
2331    }
2332
2333    /**
2334     * Array of nullable properties.
2335     */
2336    protected static function openAPINullables(): array
2337    {
2338        return self::$openAPINullables;
2339    }
2340
2341    /**
2342     * Array of nullable field names deliberately set to null.
2343     *
2344     * @return bool[]
2345     */
2346    private function getOpenAPINullablesSetToNull(): array
2347    {
2348        return $this->openAPINullablesSetToNull;
2349    }
2350
2351    /**
2352     * Setter - Array of nullable field names deliberately set to null.
2353     *
2354     * @param bool[] $openAPINullablesSetToNull
2355     *
2356     * @codeCoverageIgnore
2357     */
2358    private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
2359    {
2360        $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
2361    }
2362
2363    /**
2364     * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
2365     * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
2366     * $this->openAPINullablesSetToNull array.
2367     *
2368     * @noinspection PhpSameParameterValueInspection
2369     */
2370    private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void
2371    {
2372        if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
2373            $this->openAPINullablesSetToNull[] = $variableName; // @codeCoverageIgnore
2374        }
2375
2376        $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
2377    }
2378}