NAME
WebService::MinFraud::Record::Device - Contains data for the device associated with a transaction
VERSION
version 1.006000
SYNOPSIS
use 5.010;
use WebService::MinFraud::Client;
my $client = WebService::MinFraud::Client->new(
user_id => 42,
license_key => 'abcdef123456',
);
my $request = { device => { ip_address => '24.24.24.24' } };
my $insights = $client->insights($request);
my $device = $insights->device;
say 'Device ' . $device->id . ' was last seen ' . $device->last_seen;
DESCRIPTION
This class contains the data for the device associated with a transaction.
METHODS
This class provides the following methods:
confidence
This number represents our confidence that the device_id refers to a unique device as opposed to a cluster of similar devices.
id
A UUID that MaxMind uses for the device associated with this IP address. Note that many devices cannot be uniquely identified because they are too common (for example, all iPhones of a given model and OS release). In these cases, the minFraud service will simply not return a UUID for that device.
last_seen
This is the date and time of the last sighting of the device on the specified IP address for your user account. The string is formatted in the ISO 8601 combined date and time in UTC.
session_age
A floating point number. The number of seconds between the creation of the user's session and the time of the transaction. Note that session_age
is not the duration of the current visit, but the time since the start of the first visit.
session_id
A string up to 255 characters in length. This is an ID which uniquely identifies a visitor's session on the site.
PREDICATE METHODS
The following predicate methods are available, which return true if the related data was present in the response body, false if otherwise:
has_confidence
has_id
has_last_seen
has_session_age
has_session_id
SUPPORT
Bugs may be submitted through https://github.com/maxmind/minfraud-api-perl/issues.
AUTHOR
Mateu Hunter <mhunter@maxmind.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 - 2018 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.