Skip to content

Commit

Permalink
feat: fix ipLocation deprecation
Browse files Browse the repository at this point in the history
BREAKING CHANGE: deprecated `ipLocation` field uses `DeprecatedIpLocation` model
  • Loading branch information
ilfa committed Mar 15, 2024
1 parent 331f2a8 commit cb3b7b1
Show file tree
Hide file tree
Showing 16 changed files with 489 additions and 20 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
19 changes: 19 additions & 0 deletions docs/DeprecatedIPLocation.md
Original file line number Diff line number Diff line change
@@ -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)

9 changes: 9 additions & 0 deletions docs/DeprecatedIPLocationCity.md
Original file line number Diff line number Diff line change
@@ -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)

2 changes: 0 additions & 2 deletions docs/IPLocation.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/ProductsResponseIdentificationData.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion docs/ResponseVisits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion docs/Visit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion docs/WebhookVisit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
4 changes: 4 additions & 0 deletions fingerprint_pro_server_api_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading

0 comments on commit cb3b7b1

Please sign in to comment.