Coverage for fingerprint_pro_server_api_sdk/models/related_visitor.py: 90%

20 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 15:03 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

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 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

13import re # noqa: F401 

14from typing import Dict, List, Optional # noqa: F401 

15from fingerprint_pro_server_api_sdk.base_model import BaseModel 

16 

17 

18class RelatedVisitor(BaseModel): 

19 """NOTE: This class is auto generated by the swagger code generator program. 

20 

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 } 

33 

34 nullable_map = { 

35 'visitor_id': False 

36 } 

37 

38 attribute_map = { 

39 'visitor_id': 'visitorId' 

40 } 

41 

42 def __init__(self, visitor_id=None): # noqa: E501 

43 """RelatedVisitor - a model defined in Swagger""" # noqa: E501 

44 self._visitor_id = None 

45 self.discriminator = None 

46 self.visitor_id = visitor_id 

47 

48 @property 

49 def visitor_id(self) -> str: 

50 """Gets the visitor_id of this RelatedVisitor. # noqa: E501 

51 

52 Visitor ID of a browser that originates from the same mobile device as the input visitor ID. # noqa: E501 

53 

54 :return: The visitor_id of this RelatedVisitor. # noqa: E501 

55 """ 

56 return self._visitor_id 

57 

58 @visitor_id.setter 

59 def visitor_id(self, visitor_id: str): 

60 """Sets the visitor_id of this RelatedVisitor. 

61 

62 Visitor ID of a browser that originates from the same mobile device as the input visitor ID. # noqa: E501 

63 

64 :param visitor_id: The visitor_id of this RelatedVisitor. # noqa: E501 

65 """ 

66 if visitor_id is None: 

67 raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501 

68 

69 self._visitor_id = visitor_id 

70