From cb3b7b1ade37fc3d221e2fa46c5d691a85a37248 Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Fri, 15 Mar 2024 17:58:43 +0100 Subject: [PATCH] feat: fix `ipLocation` deprecation BREAKING CHANGE: deprecated `ipLocation` field uses `DeprecatedIpLocation` model --- README.md | 3 + docs/DeprecatedIPLocation.md | 19 + docs/DeprecatedIPLocationCity.md | 9 + docs/IPLocation.md | 2 - docs/ProductsResponseIdentificationData.md | 2 +- docs/ResponseVisits.md | 2 +- docs/Visit.md | 2 +- docs/WebhookVisit.md | 2 +- fingerprint_pro_server_api_sdk/__init__.py | 4 + .../models/deprecated_ip_location.py | 326 ++++++++++++++++++ .../models/deprecated_ip_location_city.py | 113 ++++++ .../models/ip_location.py | 5 +- .../products_response_identification_data.py | 6 +- .../models/response_visits.py | 6 +- .../models/visit.py | 6 +- .../models/webhook_visit.py | 2 +- 16 files changed, 489 insertions(+), 20 deletions(-) create mode 100644 docs/DeprecatedIPLocation.md create mode 100644 docs/DeprecatedIPLocationCity.md create mode 100644 fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py create mode 100644 fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py diff --git a/README.md b/README.md index 8cd6346f..ee60fc5c 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,9 @@ Class | Method | HTTP request | Description - [ClonedAppResult](docs/ClonedAppResult.md) - [Confidence](docs/Confidence.md) - [DataCenter](docs/DataCenter.md) + - [DeprecatedIPLocation](docs/DeprecatedIPLocation.md) + - [DeprecatedIPLocationCity](docs/DeprecatedIPLocationCity.md) + - [EmulatorResult](docs/EmulatorResult.md) - [ErrorEvent403Response](docs/ErrorEvent403Response.md) - [ErrorEvent403ResponseError](docs/ErrorEvent403ResponseError.md) - [ErrorEvent404Response](docs/ErrorEvent404Response.md) diff --git a/docs/DeprecatedIPLocation.md b/docs/DeprecatedIPLocation.md new file mode 100644 index 00000000..2f7f50df --- /dev/null +++ b/docs/DeprecatedIPLocation.md @@ -0,0 +1,19 @@ +# DeprecatedIPLocation +This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accuracy_radius** | **int** | The IP address is likely to be within this radius (in km) of the specified location. | [optional] +**latitude** | **float** | | [optional] +**longitude** | **float** | | [optional] +**postal_code** | **str** | | [optional] +**timezone** | **str** | | [optional] +**city** | [**DeprecatedIPLocationCity**](DeprecatedIPLocationCity.md) | | [optional] +**country** | [**Location**](Location.md) | | [optional] +**continent** | [**Location**](Location.md) | | [optional] +**subdivisions** | [**list[Subdivision]**](Subdivision.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeprecatedIPLocationCity.md b/docs/DeprecatedIPLocationCity.md new file mode 100644 index 00000000..f609c25a --- /dev/null +++ b/docs/DeprecatedIPLocationCity.md @@ -0,0 +1,9 @@ +# DeprecatedIPLocationCity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/IPLocation.md b/docs/IPLocation.md index 73e6458c..5fc4bd38 100644 --- a/docs/IPLocation.md +++ b/docs/IPLocation.md @@ -1,6 +1,4 @@ # IPLocation -This field is **deprecated** and will not return a result for **accounts created after December 18th, 2023**. Please use the [`ipInfo` Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. - ## Properties Name | Type | Description | Notes diff --git a/docs/ProductsResponseIdentificationData.md b/docs/ProductsResponseIdentificationData.md index 250b1356..46f4e39b 100644 --- a/docs/ProductsResponseIdentificationData.md +++ b/docs/ProductsResponseIdentificationData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **browser_details** | [**BrowserDetails**](BrowserDetails.md) | | **incognito** | **bool** | Flag if user used incognito session. | **ip** | **str** | | -**ip_location** | [**IPLocation**](IPLocation.md) | | [optional] +**ip_location** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **time** | **datetime** | Time expressed according to ISO 8601 in UTC format. | **url** | **str** | Page URL from which identification request was sent. | diff --git a/docs/ResponseVisits.md b/docs/ResponseVisits.md index 1ddca7f5..e79be0df 100644 --- a/docs/ResponseVisits.md +++ b/docs/ResponseVisits.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **browser_details** | [**BrowserDetails**](BrowserDetails.md) | | **incognito** | **bool** | Flag if user used incognito session. | **ip** | **str** | | -**ip_location** | [**IPLocation**](IPLocation.md) | | [optional] +**ip_location** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **time** | **datetime** | Time expressed according to ISO 8601 in UTC format. | **url** | **str** | Page URL from which identification request was sent. | diff --git a/docs/Visit.md b/docs/Visit.md index 52c3bb60..f16cbe1c 100644 --- a/docs/Visit.md +++ b/docs/Visit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **browser_details** | [**BrowserDetails**](BrowserDetails.md) | | **incognito** | **bool** | Flag if user used incognito session. | **ip** | **str** | | -**ip_location** | [**IPLocation**](IPLocation.md) | | [optional] +**ip_location** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **time** | **datetime** | Time expressed according to ISO 8601 in UTC format. | **url** | **str** | Page URL from which identification request was sent. | diff --git a/docs/WebhookVisit.md b/docs/WebhookVisit.md index e2468ae9..a76e129a 100644 --- a/docs/WebhookVisit.md +++ b/docs/WebhookVisit.md @@ -29,7 +29,7 @@ Name | Type | Description | Notes **request_id** | **str** | Unique identifier of the user's identification request. | **browser_details** | [**BrowserDetails**](BrowserDetails.md) | | **ip** | **str** | | -**ip_location** | [**IPLocation**](IPLocation.md) | | [optional] +**ip_location** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **time** | **datetime** | Time expressed according to ISO 8601 in UTC format. | **url** | **str** | Page URL from which identification request was sent. | diff --git a/fingerprint_pro_server_api_sdk/__init__.py b/fingerprint_pro_server_api_sdk/__init__.py index f7d7b5f4..dea46c32 100644 --- a/fingerprint_pro_server_api_sdk/__init__.py +++ b/fingerprint_pro_server_api_sdk/__init__.py @@ -27,6 +27,9 @@ from fingerprint_pro_server_api_sdk.models.cloned_app_result import ClonedAppResult from fingerprint_pro_server_api_sdk.models.confidence import Confidence from fingerprint_pro_server_api_sdk.models.data_center import DataCenter +from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation +from fingerprint_pro_server_api_sdk.models.deprecated_ip_location_city import DeprecatedIPLocationCity +from fingerprint_pro_server_api_sdk.models.emulator_result import EmulatorResult from fingerprint_pro_server_api_sdk.models.error_event403_response import ErrorEvent403Response from fingerprint_pro_server_api_sdk.models.error_event403_response_error import ErrorEvent403ResponseError from fingerprint_pro_server_api_sdk.models.error_event404_response import ErrorEvent404Response @@ -39,6 +42,7 @@ from fingerprint_pro_server_api_sdk.models.ip_location import IPLocation from fingerprint_pro_server_api_sdk.models.ip_location_city import IPLocationCity from fingerprint_pro_server_api_sdk.models.identification_error import IdentificationError +from fingerprint_pro_server_api_sdk.models.incognito_result import IncognitoResult from fingerprint_pro_server_api_sdk.models.ip_block_list_result import IpBlockListResult from fingerprint_pro_server_api_sdk.models.ip_block_list_result_details import IpBlockListResultDetails from fingerprint_pro_server_api_sdk.models.ip_info_result import IpInfoResult diff --git a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py new file mode 100644 index 00000000..7695dd3b --- /dev/null +++ b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +""" + Fingerprint Pro Server API + + 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 + + OpenAPI spec version: 3 + Contact: support@fingerprint.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class DeprecatedIPLocation(object): + """ + This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. + + NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'accuracy_radius': 'int', + 'latitude': 'float', + 'longitude': 'float', + 'postal_code': 'str', + 'timezone': 'str', + 'city': 'DeprecatedIPLocationCity', + 'country': 'Location', + 'continent': 'Location', + 'subdivisions': 'list[Subdivision]' + } + + attribute_map = { + 'accuracy_radius': 'accuracyRadius', + 'latitude': 'latitude', + 'longitude': 'longitude', + 'postal_code': 'postalCode', + 'timezone': 'timezone', + 'city': 'city', + 'country': 'country', + 'continent': 'continent', + 'subdivisions': 'subdivisions' + } + + def __init__(self, accuracy_radius=None, latitude=None, longitude=None, postal_code=None, timezone=None, city=None, country=None, continent=None, subdivisions=None): # noqa: E501 + """DeprecatedIPLocation - a model defined in Swagger""" # noqa: E501 + self._accuracy_radius = None + self._latitude = None + self._longitude = None + self._postal_code = None + self._timezone = None + self._city = None + self._country = None + self._continent = None + self._subdivisions = None + self.discriminator = None + if accuracy_radius is not None: + self.accuracy_radius = accuracy_radius + if latitude is not None: + self.latitude = latitude + if longitude is not None: + self.longitude = longitude + if postal_code is not None: + self.postal_code = postal_code + if timezone is not None: + self.timezone = timezone + if city is not None: + self.city = city + if country is not None: + self.country = country + if continent is not None: + self.continent = continent + if subdivisions is not None: + self.subdivisions = subdivisions + + @property + def accuracy_radius(self): + """Gets the accuracy_radius of this DeprecatedIPLocation. # noqa: E501 + + The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501 + + :return: The accuracy_radius of this DeprecatedIPLocation. # noqa: E501 + :rtype: int + """ + return self._accuracy_radius + + @accuracy_radius.setter + def accuracy_radius(self, accuracy_radius): + """Sets the accuracy_radius of this DeprecatedIPLocation. + + The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501 + + :param accuracy_radius: The accuracy_radius of this DeprecatedIPLocation. # noqa: E501 + :type: int + """ + + self._accuracy_radius = accuracy_radius + + @property + def latitude(self): + """Gets the latitude of this DeprecatedIPLocation. # noqa: E501 + + + :return: The latitude of this DeprecatedIPLocation. # noqa: E501 + :rtype: float + """ + return self._latitude + + @latitude.setter + def latitude(self, latitude): + """Sets the latitude of this DeprecatedIPLocation. + + + :param latitude: The latitude of this DeprecatedIPLocation. # noqa: E501 + :type: float + """ + + self._latitude = latitude + + @property + def longitude(self): + """Gets the longitude of this DeprecatedIPLocation. # noqa: E501 + + + :return: The longitude of this DeprecatedIPLocation. # noqa: E501 + :rtype: float + """ + return self._longitude + + @longitude.setter + def longitude(self, longitude): + """Sets the longitude of this DeprecatedIPLocation. + + + :param longitude: The longitude of this DeprecatedIPLocation. # noqa: E501 + :type: float + """ + + self._longitude = longitude + + @property + def postal_code(self): + """Gets the postal_code of this DeprecatedIPLocation. # noqa: E501 + + + :return: The postal_code of this DeprecatedIPLocation. # noqa: E501 + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """Sets the postal_code of this DeprecatedIPLocation. + + + :param postal_code: The postal_code of this DeprecatedIPLocation. # noqa: E501 + :type: str + """ + + self._postal_code = postal_code + + @property + def timezone(self): + """Gets the timezone of this DeprecatedIPLocation. # noqa: E501 + + + :return: The timezone of this DeprecatedIPLocation. # noqa: E501 + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """Sets the timezone of this DeprecatedIPLocation. + + + :param timezone: The timezone of this DeprecatedIPLocation. # noqa: E501 + :type: str + """ + + self._timezone = timezone + + @property + def city(self): + """Gets the city of this DeprecatedIPLocation. # noqa: E501 + + + :return: The city of this DeprecatedIPLocation. # noqa: E501 + :rtype: DeprecatedIPLocationCity + """ + return self._city + + @city.setter + def city(self, city): + """Sets the city of this DeprecatedIPLocation. + + + :param city: The city of this DeprecatedIPLocation. # noqa: E501 + :type: DeprecatedIPLocationCity + """ + + self._city = city + + @property + def country(self): + """Gets the country of this DeprecatedIPLocation. # noqa: E501 + + + :return: The country of this DeprecatedIPLocation. # noqa: E501 + :rtype: Location + """ + return self._country + + @country.setter + def country(self, country): + """Sets the country of this DeprecatedIPLocation. + + + :param country: The country of this DeprecatedIPLocation. # noqa: E501 + :type: Location + """ + + self._country = country + + @property + def continent(self): + """Gets the continent of this DeprecatedIPLocation. # noqa: E501 + + + :return: The continent of this DeprecatedIPLocation. # noqa: E501 + :rtype: Location + """ + return self._continent + + @continent.setter + def continent(self, continent): + """Sets the continent of this DeprecatedIPLocation. + + + :param continent: The continent of this DeprecatedIPLocation. # noqa: E501 + :type: Location + """ + + self._continent = continent + + @property + def subdivisions(self): + """Gets the subdivisions of this DeprecatedIPLocation. # noqa: E501 + + + :return: The subdivisions of this DeprecatedIPLocation. # noqa: E501 + :rtype: list[Subdivision] + """ + return self._subdivisions + + @subdivisions.setter + def subdivisions(self, subdivisions): + """Sets the subdivisions of this DeprecatedIPLocation. + + + :param subdivisions: The subdivisions of this DeprecatedIPLocation. # noqa: E501 + :type: list[Subdivision] + """ + + self._subdivisions = subdivisions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DeprecatedIPLocation, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeprecatedIPLocation): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeprecatedIPLocation): + return True + + return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py new file mode 100644 index 00000000..96abca3b --- /dev/null +++ b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Fingerprint Pro Server API + + 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 + + OpenAPI spec version: 3 + Contact: support@fingerprint.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class DeprecatedIPLocationCity(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """DeprecatedIPLocationCity - a model defined in Swagger""" # noqa: E501 + self._name = None + self.discriminator = None + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this DeprecatedIPLocationCity. # noqa: E501 + + + :return: The name of this DeprecatedIPLocationCity. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeprecatedIPLocationCity. + + + :param name: The name of this DeprecatedIPLocationCity. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DeprecatedIPLocationCity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeprecatedIPLocationCity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeprecatedIPLocationCity): + return True + + return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/ip_location.py b/fingerprint_pro_server_api_sdk/models/ip_location.py index 4a0d2a95..fc5710f4 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location.py @@ -16,10 +16,7 @@ import six class IPLocation(object): - """ - This field is **deprecated** and will not return a result for **accounts created after December 18th, 2023**. Please use the [`ipInfo` Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. - - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ diff --git a/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py b/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py index cee6eb96..2f57a7f8 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py +++ b/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py @@ -32,7 +32,7 @@ class ProductsResponseIdentificationData(object): 'browser_details': 'BrowserDetails', 'incognito': 'bool', 'ip': 'str', - 'ip_location': 'IPLocation', + 'ip_location': 'DeprecatedIPLocation', 'timestamp': 'int', 'time': 'datetime', 'url': 'str', @@ -202,7 +202,7 @@ def ip_location(self): :return: The ip_location of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: IPLocation + :rtype: DeprecatedIPLocation """ return self._ip_location @@ -212,7 +212,7 @@ def ip_location(self, ip_location): :param ip_location: The ip_location of this ProductsResponseIdentificationData. # noqa: E501 - :type: IPLocation + :type: DeprecatedIPLocation """ self._ip_location = ip_location diff --git a/fingerprint_pro_server_api_sdk/models/response_visits.py b/fingerprint_pro_server_api_sdk/models/response_visits.py index 71e419f6..dd0d9dfa 100644 --- a/fingerprint_pro_server_api_sdk/models/response_visits.py +++ b/fingerprint_pro_server_api_sdk/models/response_visits.py @@ -32,7 +32,7 @@ class ResponseVisits(object): 'browser_details': 'BrowserDetails', 'incognito': 'bool', 'ip': 'str', - 'ip_location': 'IPLocation', + 'ip_location': 'DeprecatedIPLocation', 'timestamp': 'int', 'time': 'datetime', 'url': 'str', @@ -197,7 +197,7 @@ def ip_location(self): :return: The ip_location of this ResponseVisits. # noqa: E501 - :rtype: IPLocation + :rtype: DeprecatedIPLocation """ return self._ip_location @@ -207,7 +207,7 @@ def ip_location(self, ip_location): :param ip_location: The ip_location of this ResponseVisits. # noqa: E501 - :type: IPLocation + :type: DeprecatedIPLocation """ self._ip_location = ip_location diff --git a/fingerprint_pro_server_api_sdk/models/visit.py b/fingerprint_pro_server_api_sdk/models/visit.py index cb80ae19..a22d53d9 100644 --- a/fingerprint_pro_server_api_sdk/models/visit.py +++ b/fingerprint_pro_server_api_sdk/models/visit.py @@ -32,7 +32,7 @@ class Visit(object): 'browser_details': 'BrowserDetails', 'incognito': 'bool', 'ip': 'str', - 'ip_location': 'IPLocation', + 'ip_location': 'DeprecatedIPLocation', 'timestamp': 'int', 'time': 'datetime', 'url': 'str', @@ -198,7 +198,7 @@ def ip_location(self): :return: The ip_location of this Visit. # noqa: E501 - :rtype: IPLocation + :rtype: DeprecatedIPLocation """ return self._ip_location @@ -208,7 +208,7 @@ def ip_location(self, ip_location): :param ip_location: The ip_location of this Visit. # noqa: E501 - :type: IPLocation + :type: DeprecatedIPLocation """ self._ip_location = ip_location diff --git a/fingerprint_pro_server_api_sdk/models/webhook_visit.py b/fingerprint_pro_server_api_sdk/models/webhook_visit.py index 24fecf29..69050b2a 100644 --- a/fingerprint_pro_server_api_sdk/models/webhook_visit.py +++ b/fingerprint_pro_server_api_sdk/models/webhook_visit.py @@ -54,7 +54,7 @@ class WebhookVisit(object): 'request_id': 'str', 'browser_details': 'BrowserDetails', 'ip': 'str', - 'ip_location': 'IPLocation', + 'ip_location': 'DeprecatedIPLocation', 'timestamp': 'int', 'time': 'datetime', 'url': 'str',