line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::MinFraud::Record::Subscores; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
138121
|
use Moo; |
|
3
|
|
|
|
|
9415
|
|
|
3
|
|
|
|
|
22
|
|
4
|
3
|
|
|
3
|
|
2279
|
use namespace::autoclean; |
|
3
|
|
|
|
|
10983
|
|
|
3
|
|
|
|
|
32
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.009001'; |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
633
|
use WebService::MinFraud::Types qw( Num ); |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
275
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has [ |
11
|
|
|
|
|
|
|
qw( |
12
|
|
|
|
|
|
|
avs_result |
13
|
|
|
|
|
|
|
billing_address |
14
|
|
|
|
|
|
|
billing_address_distance_to_ip_location |
15
|
|
|
|
|
|
|
browser |
16
|
|
|
|
|
|
|
chargeback |
17
|
|
|
|
|
|
|
country |
18
|
|
|
|
|
|
|
country_mismatch |
19
|
|
|
|
|
|
|
cvv_result |
20
|
|
|
|
|
|
|
email_address |
21
|
|
|
|
|
|
|
email_domain |
22
|
|
|
|
|
|
|
email_tenure |
23
|
|
|
|
|
|
|
ip_tenure |
24
|
|
|
|
|
|
|
issuer_id_number |
25
|
|
|
|
|
|
|
order_amount |
26
|
|
|
|
|
|
|
phone_number |
27
|
|
|
|
|
|
|
shipping_address_distance_to_ip_location |
28
|
|
|
|
|
|
|
time_of_day |
29
|
|
|
|
|
|
|
) |
30
|
|
|
|
|
|
|
] => ( |
31
|
|
|
|
|
|
|
is => 'ro', |
32
|
|
|
|
|
|
|
isa => Num, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# ABSTRACT: Contains minFraud Factors subscores |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=pod |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=encoding UTF-8 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
WebService::MinFraud::Record::Subscores - Contains minFraud Factors subscores |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 VERSION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
version 1.009001 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SYNOPSIS |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
use 5.010; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
use WebService::MinFraud::Client; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
my $client = WebService::MinFraud::Client->new( |
60
|
|
|
|
|
|
|
account_id => 42, |
61
|
|
|
|
|
|
|
license_key => 'abcdef123456', |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
my $request = { device => { ip_address => '24.24.24.24' } }; |
64
|
|
|
|
|
|
|
my $factors = $client->factors($request); |
65
|
|
|
|
|
|
|
my $subscores = $factors->subscores; |
66
|
|
|
|
|
|
|
say $subscores->ip_tenure; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 DESCRIPTION |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This class contains subscores for many of the individual components that are |
71
|
|
|
|
|
|
|
used to calculate the overall risk score. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 METHODS |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This class provides the following methods: |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 avs_result |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The risk associated with the AVS result. If present, this is a value in the |
80
|
|
|
|
|
|
|
range 0.01 to 99. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 billing_address |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
The risk associated with the billing address. If present, this is a value in |
85
|
|
|
|
|
|
|
the range 0.01 to 99. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 billing_address_distance_to_ip_location |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
The risk associated with the distance between the billing address and the |
90
|
|
|
|
|
|
|
location for the given IP address. If present, this is a value in the range |
91
|
|
|
|
|
|
|
0.01 to 99. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 browser |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The risk associated with the browser attributes such as the User-Agent and |
96
|
|
|
|
|
|
|
Accept-Language. If present, this is a value in the range 0.01 to 99. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 chargeback |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Individualized risk of chargeback for the given IP address on your account and |
101
|
|
|
|
|
|
|
shop ID.This is only available to users sending chargeback data to MaxMind. If |
102
|
|
|
|
|
|
|
present, this is a value in the range 0.01 to 99. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 country |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
The risk associated with the country the transaction originated from. If |
107
|
|
|
|
|
|
|
present, this is a value in the range 0.01 to 99. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head2 country_mismatch |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
The risk associated with the combination of IP country, card issuer country, |
112
|
|
|
|
|
|
|
billing country, and shipping country. If present, this is a value in the range |
113
|
|
|
|
|
|
|
0.01 to 99. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 cvv_result |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
The risk associated with the CVV result. If present, this is a value in the |
118
|
|
|
|
|
|
|
range 0.01 to 99. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 email_address |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
The risk associated with the particular email address. If present, this is a |
123
|
|
|
|
|
|
|
value in the range 0.01 to 99. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head2 email_domain |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
The general risk associated with the email domain. If present, this is a value |
128
|
|
|
|
|
|
|
in the range 0.01 to 99. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head2 email_tenure |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
The risk associated with the issuer ID number on the email domain. If present, |
133
|
|
|
|
|
|
|
this is a value in the range 0.01 to 99. |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head2 ip_tenure |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
The risk associated with the issuer ID number on the IP address. If present, |
138
|
|
|
|
|
|
|
this is a value in the range 0.01 to 99. |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head2 issuer_id_number |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
The risk associated with the particular issuer ID number (IIN) given the |
143
|
|
|
|
|
|
|
billing location and the history of usage of the IIN on your account and shop |
144
|
|
|
|
|
|
|
ID. If present, this is a value in the range 0.01 to 99. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=head2 order_amount |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
The risk associated with the particular order amount for your account and shop |
149
|
|
|
|
|
|
|
ID. If present, this is a value in the range 0.01 to 99. |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 phone_number |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
The risk associated with the particular phone number. If present, this is a |
154
|
|
|
|
|
|
|
value in the range 0.01 to 99. |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head2 shipping_address_distance_to_ip_location |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
The risk associated with the distance between the shipping address and the |
159
|
|
|
|
|
|
|
location for the given IP address. If present, this is a value in the range |
160
|
|
|
|
|
|
|
0.01 to 99. |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=head2 time_of_day |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
The risk associated with the local time of day of the transaction in the IP |
165
|
|
|
|
|
|
|
address location. If present, this is a value in the range 0.01 to 99. |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=head1 SUPPORT |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head1 AUTHOR |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
Mateu Hunter <mhunter@maxmind.com> |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
This software is copyright (c) 2015 - 2019 by MaxMind, Inc. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
180
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=cut |