line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::MinFraud::Record::Email; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
81359
|
use Moo; |
|
4
|
|
|
|
|
9445
|
|
|
4
|
|
|
|
|
19
|
|
4
|
4
|
|
|
4
|
|
2232
|
use namespace::autoclean; |
|
4
|
|
|
|
|
10883
|
|
|
4
|
|
|
|
|
35
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.010000'; |
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
705
|
use WebService::MinFraud::Types qw( Bool BoolCoercion Str ); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
412
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has first_seen => ( |
11
|
|
|
|
|
|
|
is => 'ro', |
12
|
|
|
|
|
|
|
isa => Str, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has is_free => ( |
16
|
|
|
|
|
|
|
is => 'ro', |
17
|
|
|
|
|
|
|
isa => Bool, |
18
|
|
|
|
|
|
|
coerce => BoolCoercion, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has is_high_risk => ( |
22
|
|
|
|
|
|
|
is => 'ro', |
23
|
|
|
|
|
|
|
isa => Bool, |
24
|
|
|
|
|
|
|
coerce => BoolCoercion, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# ABSTRACT: Contains data for the email associated with a transaction |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=encoding UTF-8 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
WebService::MinFraud::Record::Email - Contains data for the email associated with a transaction |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 1.010000 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 SYNOPSIS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
use 5.010; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
use WebService::MinFraud::Client; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
my $client = WebService::MinFraud::Client->new( |
52
|
|
|
|
|
|
|
account_id => 42, |
53
|
|
|
|
|
|
|
license_key => 'abcdef123456', |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
my $request = { device => { ip_address => '24.24.24.24' } }; |
56
|
|
|
|
|
|
|
my $insights = $client->insights($request); |
57
|
|
|
|
|
|
|
my $email = $insights->email; |
58
|
|
|
|
|
|
|
say $email->is_high_risk; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 DESCRIPTION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This class contains the data for the email associated with a transaction. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 METHODS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This class provides the following methods: |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 first_seen |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
A date string (e.g. 2017-04-24) to identify the date an email address was first |
71
|
|
|
|
|
|
|
seen by MaxMind. This is expressed using the ISO 8601 date format YYYY-MM-DD. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 is_free |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This property is true if MaxMind believes that this email is hosted by a free |
76
|
|
|
|
|
|
|
email provider such as Gmail or Yahoo! Mail. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 is_high_risk |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This field is true if MaxMind believes that this email is likely to be used |
81
|
|
|
|
|
|
|
for fraud. Note that this is also factored into the overall risk_score in the |
82
|
|
|
|
|
|
|
response as well. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 SUPPORT |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 AUTHOR |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Mateu Hunter <mhunter@maxmind.com> |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
This software is copyright (c) 2015 - 2020 by MaxMind, Inc. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
97
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=cut |