The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 1.008000

SYNOPSIS

  use 5.010;

  use WebService::MinFraud::Client;

  my $client = WebService::MinFraud::Client->new(
      account_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 in the RFC 3339 format.

local_time

This is the date and time of the transaction at the UTC offset associated with the device. The string is in the RFC 3339 format.

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_local_time

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.