Coverage for fingerprint_pro_server_api_sdk/models/webhook_visit.py: 42%
372 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-27 22:39 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-27 22:39 +0000
1# coding: utf-8
3"""
4 Fingerprint Pro Server API
6 Fingerprint Pro Server API allows you to get information about visitors and about individual 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. # noqa: E501
8 OpenAPI spec version: 3
9 Contact: support@fingerprint.com
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
13import pprint
14import re # noqa: F401
16import six
18class WebhookVisit(object):
19 """NOTE: This class is auto generated by the swagger code generator program.
21 Do not edit the class manually.
22 """
23 """
24 Attributes:
25 swagger_types (dict): The key is attribute name
26 and the value is attribute type.
27 attribute_map (dict): The key is attribute name
28 and the value is json key in definition.
29 """
30 swagger_types = {
31 'visitor_id': 'str',
32 'client_referrer': 'str',
33 'user_agent': 'str',
34 'bot': 'BotdDetectionResult',
35 'ip_info': 'IpInfoResult',
36 'incognito': 'bool',
37 'root_apps': 'RootAppsResult',
38 'emulator': 'EmulatorResult',
39 'cloned_app': 'ClonedAppResult',
40 'factory_reset': 'FactoryResetResult',
41 'jailbroken': 'JailbrokenResult',
42 'frida': 'FridaResult',
43 'ip_blocklist': 'IpBlockListResult',
44 'tor': 'TorResult',
45 'privacy_settings': 'PrivacySettingsResult',
46 'virtual_machine': 'VirtualMachineResult',
47 'vpn': 'VpnResult',
48 'proxy': 'ProxyResult',
49 'tampering': 'TamperingResult',
50 'raw_device_attributes': 'RawDeviceAttributesResult',
51 'high_activity': 'HighActivityResult',
52 'location_spoofing': 'LocationSpoofingResult',
53 'suspect_score': 'SuspectScoreResult',
54 'request_id': 'str',
55 'browser_details': 'BrowserDetails',
56 'ip': 'str',
57 'ip_location': 'DeprecatedIPLocation',
58 'timestamp': 'int',
59 'time': 'datetime',
60 'url': 'str',
61 'tag': 'dict(str, object)',
62 'linked_id': 'str',
63 'confidence': 'Confidence',
64 'visitor_found': 'bool',
65 'first_seen_at': 'SeenAt',
66 'last_seen_at': 'SeenAt'
67 }
69 attribute_map = {
70 'visitor_id': 'visitorId',
71 'client_referrer': 'clientReferrer',
72 'user_agent': 'userAgent',
73 'bot': 'bot',
74 'ip_info': 'ipInfo',
75 'incognito': 'incognito',
76 'root_apps': 'rootApps',
77 'emulator': 'emulator',
78 'cloned_app': 'clonedApp',
79 'factory_reset': 'factoryReset',
80 'jailbroken': 'jailbroken',
81 'frida': 'frida',
82 'ip_blocklist': 'ipBlocklist',
83 'tor': 'tor',
84 'privacy_settings': 'privacySettings',
85 'virtual_machine': 'virtualMachine',
86 'vpn': 'vpn',
87 'proxy': 'proxy',
88 'tampering': 'tampering',
89 'raw_device_attributes': 'rawDeviceAttributes',
90 'high_activity': 'highActivity',
91 'location_spoofing': 'locationSpoofing',
92 'suspect_score': 'suspectScore',
93 'request_id': 'requestId',
94 'browser_details': 'browserDetails',
95 'ip': 'ip',
96 'ip_location': 'ipLocation',
97 'timestamp': 'timestamp',
98 'time': 'time',
99 'url': 'url',
100 'tag': 'tag',
101 'linked_id': 'linkedId',
102 'confidence': 'confidence',
103 'visitor_found': 'visitorFound',
104 'first_seen_at': 'firstSeenAt',
105 'last_seen_at': 'lastSeenAt'
106 }
108 def __init__(self, visitor_id=None, client_referrer=None, user_agent=None, bot=None, ip_info=None, incognito=None, root_apps=None, emulator=None, cloned_app=None, factory_reset=None, jailbroken=None, frida=None, ip_blocklist=None, tor=None, privacy_settings=None, virtual_machine=None, vpn=None, proxy=None, tampering=None, raw_device_attributes=None, high_activity=None, location_spoofing=None, suspect_score=None, request_id=None, browser_details=None, ip=None, ip_location=None, timestamp=None, time=None, url=None, tag=None, linked_id=None, confidence=None, visitor_found=None, first_seen_at=None, last_seen_at=None): # noqa: E501
109 """WebhookVisit - a model defined in Swagger""" # noqa: E501
110 self._visitor_id = None
111 self._client_referrer = None
112 self._user_agent = None
113 self._bot = None
114 self._ip_info = None
115 self._incognito = None
116 self._root_apps = None
117 self._emulator = None
118 self._cloned_app = None
119 self._factory_reset = None
120 self._jailbroken = None
121 self._frida = None
122 self._ip_blocklist = None
123 self._tor = None
124 self._privacy_settings = None
125 self._virtual_machine = None
126 self._vpn = None
127 self._proxy = None
128 self._tampering = None
129 self._raw_device_attributes = None
130 self._high_activity = None
131 self._location_spoofing = None
132 self._suspect_score = None
133 self._request_id = None
134 self._browser_details = None
135 self._ip = None
136 self._ip_location = None
137 self._timestamp = None
138 self._time = None
139 self._url = None
140 self._tag = None
141 self._linked_id = None
142 self._confidence = None
143 self._visitor_found = None
144 self._first_seen_at = None
145 self._last_seen_at = None
146 self.discriminator = None
147 self.visitor_id = visitor_id
148 if client_referrer is not None:
149 self.client_referrer = client_referrer
150 if user_agent is not None:
151 self.user_agent = user_agent
152 if bot is not None:
153 self.bot = bot
154 if ip_info is not None:
155 self.ip_info = ip_info
156 self.incognito = incognito
157 if root_apps is not None:
158 self.root_apps = root_apps
159 if emulator is not None:
160 self.emulator = emulator
161 if cloned_app is not None:
162 self.cloned_app = cloned_app
163 if factory_reset is not None:
164 self.factory_reset = factory_reset
165 if jailbroken is not None:
166 self.jailbroken = jailbroken
167 if frida is not None:
168 self.frida = frida
169 if ip_blocklist is not None:
170 self.ip_blocklist = ip_blocklist
171 if tor is not None:
172 self.tor = tor
173 if privacy_settings is not None:
174 self.privacy_settings = privacy_settings
175 if virtual_machine is not None:
176 self.virtual_machine = virtual_machine
177 if vpn is not None:
178 self.vpn = vpn
179 if proxy is not None:
180 self.proxy = proxy
181 if tampering is not None:
182 self.tampering = tampering
183 if raw_device_attributes is not None:
184 self.raw_device_attributes = raw_device_attributes
185 if high_activity is not None:
186 self.high_activity = high_activity
187 if location_spoofing is not None:
188 self.location_spoofing = location_spoofing
189 if suspect_score is not None:
190 self.suspect_score = suspect_score
191 self.request_id = request_id
192 self.browser_details = browser_details
193 self.ip = ip
194 if ip_location is not None:
195 self.ip_location = ip_location
196 self.timestamp = timestamp
197 self.time = time
198 self.url = url
199 self.tag = tag
200 if linked_id is not None:
201 self.linked_id = linked_id
202 if confidence is not None:
203 self.confidence = confidence
204 self.visitor_found = visitor_found
205 self.first_seen_at = first_seen_at
206 self.last_seen_at = last_seen_at
208 @property
209 def visitor_id(self):
210 """Gets the visitor_id of this WebhookVisit. # noqa: E501
213 :return: The visitor_id of this WebhookVisit. # noqa: E501
214 :rtype: str
215 """
216 return self._visitor_id
218 @visitor_id.setter
219 def visitor_id(self, visitor_id):
220 """Sets the visitor_id of this WebhookVisit.
223 :param visitor_id: The visitor_id of this WebhookVisit. # noqa: E501
224 :type: str
225 """
226 if visitor_id is None:
227 raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501
229 self._visitor_id = visitor_id
231 @property
232 def client_referrer(self):
233 """Gets the client_referrer of this WebhookVisit. # noqa: E501
236 :return: The client_referrer of this WebhookVisit. # noqa: E501
237 :rtype: str
238 """
239 return self._client_referrer
241 @client_referrer.setter
242 def client_referrer(self, client_referrer):
243 """Sets the client_referrer of this WebhookVisit.
246 :param client_referrer: The client_referrer of this WebhookVisit. # noqa: E501
247 :type: str
248 """
250 self._client_referrer = client_referrer
252 @property
253 def user_agent(self):
254 """Gets the user_agent of this WebhookVisit. # noqa: E501
257 :return: The user_agent of this WebhookVisit. # noqa: E501
258 :rtype: str
259 """
260 return self._user_agent
262 @user_agent.setter
263 def user_agent(self, user_agent):
264 """Sets the user_agent of this WebhookVisit.
267 :param user_agent: The user_agent of this WebhookVisit. # noqa: E501
268 :type: str
269 """
271 self._user_agent = user_agent
273 @property
274 def bot(self):
275 """Gets the bot of this WebhookVisit. # noqa: E501
278 :return: The bot of this WebhookVisit. # noqa: E501
279 :rtype: BotdDetectionResult
280 """
281 return self._bot
283 @bot.setter
284 def bot(self, bot):
285 """Sets the bot of this WebhookVisit.
288 :param bot: The bot of this WebhookVisit. # noqa: E501
289 :type: BotdDetectionResult
290 """
292 self._bot = bot
294 @property
295 def ip_info(self):
296 """Gets the ip_info of this WebhookVisit. # noqa: E501
299 :return: The ip_info of this WebhookVisit. # noqa: E501
300 :rtype: IpInfoResult
301 """
302 return self._ip_info
304 @ip_info.setter
305 def ip_info(self, ip_info):
306 """Sets the ip_info of this WebhookVisit.
309 :param ip_info: The ip_info of this WebhookVisit. # noqa: E501
310 :type: IpInfoResult
311 """
313 self._ip_info = ip_info
315 @property
316 def incognito(self):
317 """Gets the incognito of this WebhookVisit. # noqa: E501
319 Flag if user used incognito session. # noqa: E501
321 :return: The incognito of this WebhookVisit. # noqa: E501
322 :rtype: bool
323 """
324 return self._incognito
326 @incognito.setter
327 def incognito(self, incognito):
328 """Sets the incognito of this WebhookVisit.
330 Flag if user used incognito session. # noqa: E501
332 :param incognito: The incognito of this WebhookVisit. # noqa: E501
333 :type: bool
334 """
335 if incognito is None:
336 raise ValueError("Invalid value for `incognito`, must not be `None`") # noqa: E501
338 self._incognito = incognito
340 @property
341 def root_apps(self):
342 """Gets the root_apps of this WebhookVisit. # noqa: E501
345 :return: The root_apps of this WebhookVisit. # noqa: E501
346 :rtype: RootAppsResult
347 """
348 return self._root_apps
350 @root_apps.setter
351 def root_apps(self, root_apps):
352 """Sets the root_apps of this WebhookVisit.
355 :param root_apps: The root_apps of this WebhookVisit. # noqa: E501
356 :type: RootAppsResult
357 """
359 self._root_apps = root_apps
361 @property
362 def emulator(self):
363 """Gets the emulator of this WebhookVisit. # noqa: E501
366 :return: The emulator of this WebhookVisit. # noqa: E501
367 :rtype: EmulatorResult
368 """
369 return self._emulator
371 @emulator.setter
372 def emulator(self, emulator):
373 """Sets the emulator of this WebhookVisit.
376 :param emulator: The emulator of this WebhookVisit. # noqa: E501
377 :type: EmulatorResult
378 """
380 self._emulator = emulator
382 @property
383 def cloned_app(self):
384 """Gets the cloned_app of this WebhookVisit. # noqa: E501
387 :return: The cloned_app of this WebhookVisit. # noqa: E501
388 :rtype: ClonedAppResult
389 """
390 return self._cloned_app
392 @cloned_app.setter
393 def cloned_app(self, cloned_app):
394 """Sets the cloned_app of this WebhookVisit.
397 :param cloned_app: The cloned_app of this WebhookVisit. # noqa: E501
398 :type: ClonedAppResult
399 """
401 self._cloned_app = cloned_app
403 @property
404 def factory_reset(self):
405 """Gets the factory_reset of this WebhookVisit. # noqa: E501
408 :return: The factory_reset of this WebhookVisit. # noqa: E501
409 :rtype: FactoryResetResult
410 """
411 return self._factory_reset
413 @factory_reset.setter
414 def factory_reset(self, factory_reset):
415 """Sets the factory_reset of this WebhookVisit.
418 :param factory_reset: The factory_reset of this WebhookVisit. # noqa: E501
419 :type: FactoryResetResult
420 """
422 self._factory_reset = factory_reset
424 @property
425 def jailbroken(self):
426 """Gets the jailbroken of this WebhookVisit. # noqa: E501
429 :return: The jailbroken of this WebhookVisit. # noqa: E501
430 :rtype: JailbrokenResult
431 """
432 return self._jailbroken
434 @jailbroken.setter
435 def jailbroken(self, jailbroken):
436 """Sets the jailbroken of this WebhookVisit.
439 :param jailbroken: The jailbroken of this WebhookVisit. # noqa: E501
440 :type: JailbrokenResult
441 """
443 self._jailbroken = jailbroken
445 @property
446 def frida(self):
447 """Gets the frida of this WebhookVisit. # noqa: E501
450 :return: The frida of this WebhookVisit. # noqa: E501
451 :rtype: FridaResult
452 """
453 return self._frida
455 @frida.setter
456 def frida(self, frida):
457 """Sets the frida of this WebhookVisit.
460 :param frida: The frida of this WebhookVisit. # noqa: E501
461 :type: FridaResult
462 """
464 self._frida = frida
466 @property
467 def ip_blocklist(self):
468 """Gets the ip_blocklist of this WebhookVisit. # noqa: E501
471 :return: The ip_blocklist of this WebhookVisit. # noqa: E501
472 :rtype: IpBlockListResult
473 """
474 return self._ip_blocklist
476 @ip_blocklist.setter
477 def ip_blocklist(self, ip_blocklist):
478 """Sets the ip_blocklist of this WebhookVisit.
481 :param ip_blocklist: The ip_blocklist of this WebhookVisit. # noqa: E501
482 :type: IpBlockListResult
483 """
485 self._ip_blocklist = ip_blocklist
487 @property
488 def tor(self):
489 """Gets the tor of this WebhookVisit. # noqa: E501
492 :return: The tor of this WebhookVisit. # noqa: E501
493 :rtype: TorResult
494 """
495 return self._tor
497 @tor.setter
498 def tor(self, tor):
499 """Sets the tor of this WebhookVisit.
502 :param tor: The tor of this WebhookVisit. # noqa: E501
503 :type: TorResult
504 """
506 self._tor = tor
508 @property
509 def privacy_settings(self):
510 """Gets the privacy_settings of this WebhookVisit. # noqa: E501
513 :return: The privacy_settings of this WebhookVisit. # noqa: E501
514 :rtype: PrivacySettingsResult
515 """
516 return self._privacy_settings
518 @privacy_settings.setter
519 def privacy_settings(self, privacy_settings):
520 """Sets the privacy_settings of this WebhookVisit.
523 :param privacy_settings: The privacy_settings of this WebhookVisit. # noqa: E501
524 :type: PrivacySettingsResult
525 """
527 self._privacy_settings = privacy_settings
529 @property
530 def virtual_machine(self):
531 """Gets the virtual_machine of this WebhookVisit. # noqa: E501
534 :return: The virtual_machine of this WebhookVisit. # noqa: E501
535 :rtype: VirtualMachineResult
536 """
537 return self._virtual_machine
539 @virtual_machine.setter
540 def virtual_machine(self, virtual_machine):
541 """Sets the virtual_machine of this WebhookVisit.
544 :param virtual_machine: The virtual_machine of this WebhookVisit. # noqa: E501
545 :type: VirtualMachineResult
546 """
548 self._virtual_machine = virtual_machine
550 @property
551 def vpn(self):
552 """Gets the vpn of this WebhookVisit. # noqa: E501
555 :return: The vpn of this WebhookVisit. # noqa: E501
556 :rtype: VpnResult
557 """
558 return self._vpn
560 @vpn.setter
561 def vpn(self, vpn):
562 """Sets the vpn of this WebhookVisit.
565 :param vpn: The vpn of this WebhookVisit. # noqa: E501
566 :type: VpnResult
567 """
569 self._vpn = vpn
571 @property
572 def proxy(self):
573 """Gets the proxy of this WebhookVisit. # noqa: E501
576 :return: The proxy of this WebhookVisit. # noqa: E501
577 :rtype: ProxyResult
578 """
579 return self._proxy
581 @proxy.setter
582 def proxy(self, proxy):
583 """Sets the proxy of this WebhookVisit.
586 :param proxy: The proxy of this WebhookVisit. # noqa: E501
587 :type: ProxyResult
588 """
590 self._proxy = proxy
592 @property
593 def tampering(self):
594 """Gets the tampering of this WebhookVisit. # noqa: E501
597 :return: The tampering of this WebhookVisit. # noqa: E501
598 :rtype: TamperingResult
599 """
600 return self._tampering
602 @tampering.setter
603 def tampering(self, tampering):
604 """Sets the tampering of this WebhookVisit.
607 :param tampering: The tampering of this WebhookVisit. # noqa: E501
608 :type: TamperingResult
609 """
611 self._tampering = tampering
613 @property
614 def raw_device_attributes(self):
615 """Gets the raw_device_attributes of this WebhookVisit. # noqa: E501
618 :return: The raw_device_attributes of this WebhookVisit. # noqa: E501
619 :rtype: RawDeviceAttributesResult
620 """
621 return self._raw_device_attributes
623 @raw_device_attributes.setter
624 def raw_device_attributes(self, raw_device_attributes):
625 """Sets the raw_device_attributes of this WebhookVisit.
628 :param raw_device_attributes: The raw_device_attributes of this WebhookVisit. # noqa: E501
629 :type: RawDeviceAttributesResult
630 """
632 self._raw_device_attributes = raw_device_attributes
634 @property
635 def high_activity(self):
636 """Gets the high_activity of this WebhookVisit. # noqa: E501
639 :return: The high_activity of this WebhookVisit. # noqa: E501
640 :rtype: HighActivityResult
641 """
642 return self._high_activity
644 @high_activity.setter
645 def high_activity(self, high_activity):
646 """Sets the high_activity of this WebhookVisit.
649 :param high_activity: The high_activity of this WebhookVisit. # noqa: E501
650 :type: HighActivityResult
651 """
653 self._high_activity = high_activity
655 @property
656 def location_spoofing(self):
657 """Gets the location_spoofing of this WebhookVisit. # noqa: E501
660 :return: The location_spoofing of this WebhookVisit. # noqa: E501
661 :rtype: LocationSpoofingResult
662 """
663 return self._location_spoofing
665 @location_spoofing.setter
666 def location_spoofing(self, location_spoofing):
667 """Sets the location_spoofing of this WebhookVisit.
670 :param location_spoofing: The location_spoofing of this WebhookVisit. # noqa: E501
671 :type: LocationSpoofingResult
672 """
674 self._location_spoofing = location_spoofing
676 @property
677 def suspect_score(self):
678 """Gets the suspect_score of this WebhookVisit. # noqa: E501
681 :return: The suspect_score of this WebhookVisit. # noqa: E501
682 :rtype: SuspectScoreResult
683 """
684 return self._suspect_score
686 @suspect_score.setter
687 def suspect_score(self, suspect_score):
688 """Sets the suspect_score of this WebhookVisit.
691 :param suspect_score: The suspect_score of this WebhookVisit. # noqa: E501
692 :type: SuspectScoreResult
693 """
695 self._suspect_score = suspect_score
697 @property
698 def request_id(self):
699 """Gets the request_id of this WebhookVisit. # noqa: E501
701 Unique identifier of the user's identification request. # noqa: E501
703 :return: The request_id of this WebhookVisit. # noqa: E501
704 :rtype: str
705 """
706 return self._request_id
708 @request_id.setter
709 def request_id(self, request_id):
710 """Sets the request_id of this WebhookVisit.
712 Unique identifier of the user's identification request. # noqa: E501
714 :param request_id: The request_id of this WebhookVisit. # noqa: E501
715 :type: str
716 """
717 if request_id is None:
718 raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501
720 self._request_id = request_id
722 @property
723 def browser_details(self):
724 """Gets the browser_details of this WebhookVisit. # noqa: E501
727 :return: The browser_details of this WebhookVisit. # noqa: E501
728 :rtype: BrowserDetails
729 """
730 return self._browser_details
732 @browser_details.setter
733 def browser_details(self, browser_details):
734 """Sets the browser_details of this WebhookVisit.
737 :param browser_details: The browser_details of this WebhookVisit. # noqa: E501
738 :type: BrowserDetails
739 """
740 if browser_details is None:
741 raise ValueError("Invalid value for `browser_details`, must not be `None`") # noqa: E501
743 self._browser_details = browser_details
745 @property
746 def ip(self):
747 """Gets the ip of this WebhookVisit. # noqa: E501
750 :return: The ip of this WebhookVisit. # noqa: E501
751 :rtype: str
752 """
753 return self._ip
755 @ip.setter
756 def ip(self, ip):
757 """Sets the ip of this WebhookVisit.
760 :param ip: The ip of this WebhookVisit. # noqa: E501
761 :type: str
762 """
763 if ip is None:
764 raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
766 self._ip = ip
768 @property
769 def ip_location(self):
770 """Gets the ip_location of this WebhookVisit. # noqa: E501
773 :return: The ip_location of this WebhookVisit. # noqa: E501
774 :rtype: DeprecatedIPLocation
775 """
776 return self._ip_location
778 @ip_location.setter
779 def ip_location(self, ip_location):
780 """Sets the ip_location of this WebhookVisit.
783 :param ip_location: The ip_location of this WebhookVisit. # noqa: E501
784 :type: DeprecatedIPLocation
785 """
787 self._ip_location = ip_location
789 @property
790 def timestamp(self):
791 """Gets the timestamp of this WebhookVisit. # noqa: E501
793 Timestamp of the event with millisecond precision in Unix time. # noqa: E501
795 :return: The timestamp of this WebhookVisit. # noqa: E501
796 :rtype: int
797 """
798 return self._timestamp
800 @timestamp.setter
801 def timestamp(self, timestamp):
802 """Sets the timestamp of this WebhookVisit.
804 Timestamp of the event with millisecond precision in Unix time. # noqa: E501
806 :param timestamp: The timestamp of this WebhookVisit. # noqa: E501
807 :type: int
808 """
809 if timestamp is None:
810 raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
812 self._timestamp = timestamp
814 @property
815 def time(self):
816 """Gets the time of this WebhookVisit. # noqa: E501
818 Time expressed according to ISO 8601 in UTC format. # noqa: E501
820 :return: The time of this WebhookVisit. # noqa: E501
821 :rtype: datetime
822 """
823 return self._time
825 @time.setter
826 def time(self, time):
827 """Sets the time of this WebhookVisit.
829 Time expressed according to ISO 8601 in UTC format. # noqa: E501
831 :param time: The time of this WebhookVisit. # noqa: E501
832 :type: datetime
833 """
834 if time is None:
835 raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501
837 self._time = time
839 @property
840 def url(self):
841 """Gets the url of this WebhookVisit. # noqa: E501
843 Page URL from which the identification request was sent. # noqa: E501
845 :return: The url of this WebhookVisit. # noqa: E501
846 :rtype: str
847 """
848 return self._url
850 @url.setter
851 def url(self, url):
852 """Sets the url of this WebhookVisit.
854 Page URL from which the identification request was sent. # noqa: E501
856 :param url: The url of this WebhookVisit. # noqa: E501
857 :type: str
858 """
859 if url is None:
860 raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
862 self._url = url
864 @property
865 def tag(self):
866 """Gets the tag of this WebhookVisit. # noqa: E501
868 A customer-provided value or an object that was sent with identification request. # noqa: E501
870 :return: The tag of this WebhookVisit. # noqa: E501
871 :rtype: dict(str, object)
872 """
873 return self._tag
875 @tag.setter
876 def tag(self, tag):
877 """Sets the tag of this WebhookVisit.
879 A customer-provided value or an object that was sent with identification request. # noqa: E501
881 :param tag: The tag of this WebhookVisit. # noqa: E501
882 :type: dict(str, object)
883 """
884 if tag is None:
885 raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501
887 self._tag = tag
889 @property
890 def linked_id(self):
891 """Gets the linked_id of this WebhookVisit. # noqa: E501
893 A customer-provided id that was sent with identification request. # noqa: E501
895 :return: The linked_id of this WebhookVisit. # noqa: E501
896 :rtype: str
897 """
898 return self._linked_id
900 @linked_id.setter
901 def linked_id(self, linked_id):
902 """Sets the linked_id of this WebhookVisit.
904 A customer-provided id that was sent with identification request. # noqa: E501
906 :param linked_id: The linked_id of this WebhookVisit. # noqa: E501
907 :type: str
908 """
910 self._linked_id = linked_id
912 @property
913 def confidence(self):
914 """Gets the confidence of this WebhookVisit. # noqa: E501
917 :return: The confidence of this WebhookVisit. # noqa: E501
918 :rtype: Confidence
919 """
920 return self._confidence
922 @confidence.setter
923 def confidence(self, confidence):
924 """Sets the confidence of this WebhookVisit.
927 :param confidence: The confidence of this WebhookVisit. # noqa: E501
928 :type: Confidence
929 """
931 self._confidence = confidence
933 @property
934 def visitor_found(self):
935 """Gets the visitor_found of this WebhookVisit. # noqa: E501
937 Attribute represents if a visitor had been identified before. # noqa: E501
939 :return: The visitor_found of this WebhookVisit. # noqa: E501
940 :rtype: bool
941 """
942 return self._visitor_found
944 @visitor_found.setter
945 def visitor_found(self, visitor_found):
946 """Sets the visitor_found of this WebhookVisit.
948 Attribute represents if a visitor had been identified before. # noqa: E501
950 :param visitor_found: The visitor_found of this WebhookVisit. # noqa: E501
951 :type: bool
952 """
953 if visitor_found is None:
954 raise ValueError("Invalid value for `visitor_found`, must not be `None`") # noqa: E501
956 self._visitor_found = visitor_found
958 @property
959 def first_seen_at(self):
960 """Gets the first_seen_at of this WebhookVisit. # noqa: E501
963 :return: The first_seen_at of this WebhookVisit. # noqa: E501
964 :rtype: SeenAt
965 """
966 return self._first_seen_at
968 @first_seen_at.setter
969 def first_seen_at(self, first_seen_at):
970 """Sets the first_seen_at of this WebhookVisit.
973 :param first_seen_at: The first_seen_at of this WebhookVisit. # noqa: E501
974 :type: SeenAt
975 """
976 if first_seen_at is None:
977 raise ValueError("Invalid value for `first_seen_at`, must not be `None`") # noqa: E501
979 self._first_seen_at = first_seen_at
981 @property
982 def last_seen_at(self):
983 """Gets the last_seen_at of this WebhookVisit. # noqa: E501
986 :return: The last_seen_at of this WebhookVisit. # noqa: E501
987 :rtype: SeenAt
988 """
989 return self._last_seen_at
991 @last_seen_at.setter
992 def last_seen_at(self, last_seen_at):
993 """Sets the last_seen_at of this WebhookVisit.
996 :param last_seen_at: The last_seen_at of this WebhookVisit. # noqa: E501
997 :type: SeenAt
998 """
999 if last_seen_at is None:
1000 raise ValueError("Invalid value for `last_seen_at`, must not be `None`") # noqa: E501
1002 self._last_seen_at = last_seen_at
1004 def to_dict(self):
1005 """Returns the model properties as a dict"""
1006 result = {}
1008 for attr, _ in six.iteritems(self.swagger_types):
1009 value = getattr(self, attr)
1010 if isinstance(value, list):
1011 result[attr] = list(map(
1012 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
1013 value
1014 ))
1015 elif hasattr(value, "to_dict"):
1016 result[attr] = value.to_dict()
1017 elif isinstance(value, dict):
1018 result[attr] = dict(map(
1019 lambda item: (item[0], item[1].to_dict())
1020 if hasattr(item[1], "to_dict") else item,
1021 value.items()
1022 ))
1023 else:
1024 result[attr] = value
1025 if issubclass(WebhookVisit, dict):
1026 for key, value in self.items():
1027 result[key] = value
1029 return result
1031 def to_str(self):
1032 """Returns the string representation of the model"""
1033 return pprint.pformat(self.to_dict())
1035 def __repr__(self):
1036 """For `print` and `pprint`"""
1037 return self.to_str()
1039 def __eq__(self, other):
1040 """Returns true if both objects are equal"""
1041 if not isinstance(other, WebhookVisit):
1042 return False
1044 return self.to_dict() == other.to_dict()
1046 def __ne__(self, other):
1047 """Returns true if both objects are not equal"""
1048 if not isinstance(other, WebhookVisit):
1049 return True
1051 return self.to_dict() != other.to_dict()