NAME

WebService::MinFraud::Record::Warning - A warning record returned from a web service query

VERSION

version 1.010000

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 );
foreach my $warning_object (@{$insights->warnings}) {
      say "WARNING CODE: ", $warning_object->code;
      say "WARNING MESSAGE: ", $warning_object->warning;
      say "WARNING INPUT PATH: ", join ' / ', @{$warning_object->input};
}

DESCRIPTION

This class represents a MaxMind warning (if any) from a web service query.

METHODS

This class provides the following methods:

code

Returns a machine-readable code identifying the warning. See the API documentation for the current list.

input_pointer

Returns a JSON pointer to the input field that the warning is associated with. For instance, if the warning was about the billing city, the returned reference would be "/billing/city".

warning

Returns a human-readable explanation of the warning. This description may change at any time and should not be matched against.

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_input_pointer

has_warning

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