NAME

WebService::MinFraud::Record::Device - Contains data for the device associated with a transaction

VERSION

version 1.004000

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.

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

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 - 2017 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.