line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::MinFraud::Record::Disposition; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
163557
|
use Moo; |
|
5
|
|
|
|
|
11182
|
|
|
5
|
|
|
|
|
33
|
|
4
|
5
|
|
|
5
|
|
3231
|
use namespace::autoclean; |
|
5
|
|
|
|
|
13171
|
|
|
5
|
|
|
|
|
31
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.009001'; |
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
1244
|
use Types::UUID; |
|
5
|
|
|
|
|
192425
|
|
|
5
|
|
|
|
|
47
|
|
9
|
5
|
|
|
5
|
|
2452
|
use WebService::MinFraud::Types qw( Str ); |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
492
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has action => ( |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
isa => Str, |
14
|
|
|
|
|
|
|
predicate => 1, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has reason => ( |
18
|
|
|
|
|
|
|
is => 'ro', |
19
|
|
|
|
|
|
|
isa => Str, |
20
|
|
|
|
|
|
|
predicate => 1, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# ABSTRACT: The disposition for the request as set by custom rules |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding UTF-8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
WebService::MinFraud::Record::Disposition - The disposition for the request as set by custom rules |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version 1.009001 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use 5.010; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
use WebService::MinFraud::Client; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
my $client = WebService::MinFraud::Client->new( |
48
|
|
|
|
|
|
|
account_id => 42, |
49
|
|
|
|
|
|
|
license_key => 'abcdef123456', |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
my $request = { device => { ip_address => '24.24.24.24' } }; |
52
|
|
|
|
|
|
|
my $insights = $client->insights($request); |
53
|
|
|
|
|
|
|
my $disposition = $insights->disposition; |
54
|
|
|
|
|
|
|
say 'Disposition action was ' . $disposition->action . ' with a reason of ' |
55
|
|
|
|
|
|
|
. $disposition->reason; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This class contains the disposition for the request as set by custom rules. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 METHODS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This class provides the following methods: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 action |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The action to take on the transaction as defined by your custom rules. The |
68
|
|
|
|
|
|
|
current set of values are "accept", "manual_review", and "reject". If you do |
69
|
|
|
|
|
|
|
not have custom rules set up, this attribute will not be set. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 reason |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The reason for the action. The current possible values are "custom_rule", |
74
|
|
|
|
|
|
|
"block_list", and "default". If you do not have custom rules set up, |
75
|
|
|
|
|
|
|
this attribute will not be set. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 PREDICATE METHODS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The following predicate methods are available, which return true if the related |
80
|
|
|
|
|
|
|
data was present in the response body, false if otherwise: |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 has_action |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 has_reason |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 SUPPORT |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHOR |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Mateu Hunter <mhunter@maxmind.com> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This software is copyright (c) 2015 - 2019 by MaxMind, Inc. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
99
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |