WebService::MinFraud::Record::Warning - A warning record returned from a web service query
version 1.007000
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}; }
This class represents a MaxMind warning (if any) from a web service query.
This class provides the following methods:
Returns a machine-readable code identifying the warning. See the API documentation for the current list.
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".
"/billing/city"
Returns a human-readable explanation of the warning. This description may change at any time and should not be matched against.
The following predicate methods are available, which return true if the related data was present in the response body, false if otherwise:
Bugs may be submitted through https://github.com/maxmind/minfraud-api-perl/issues.
Mateu Hunter <mhunter@maxmind.com>
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.
To install WebService::MinFraud, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::MinFraud
CPAN shell
perl -MCPAN -e shell install WebService::MinFraud
For more information on module installation, please visit the detailed CPAN module installation guide.