| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::MinFraud::Record::Issuer; |
|
2
|
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
81594
|
use Moo; |
|
|
5
|
|
|
|
|
9613
|
|
|
|
5
|
|
|
|
|
24
|
|
|
4
|
5
|
|
|
5
|
|
2519
|
use namespace::autoclean; |
|
|
5
|
|
|
|
|
10969
|
|
|
|
5
|
|
|
|
|
24
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.010000'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
1163
|
use WebService::MinFraud::Types qw( Bool BoolCoercion Str ); |
|
|
5
|
|
|
|
|
14
|
|
|
|
5
|
|
|
|
|
609
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has matches_provided_name => ( |
|
11
|
|
|
|
|
|
|
is => 'ro', |
|
12
|
|
|
|
|
|
|
isa => Bool, |
|
13
|
|
|
|
|
|
|
coerce => BoolCoercion, |
|
14
|
|
|
|
|
|
|
predicate => 1, |
|
15
|
|
|
|
|
|
|
); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has matches_provided_phone_number => ( |
|
18
|
|
|
|
|
|
|
is => 'ro', |
|
19
|
|
|
|
|
|
|
isa => Bool, |
|
20
|
|
|
|
|
|
|
coerce => BoolCoercion, |
|
21
|
|
|
|
|
|
|
predicate => 1, |
|
22
|
|
|
|
|
|
|
); |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has name => ( |
|
25
|
|
|
|
|
|
|
is => 'ro', |
|
26
|
|
|
|
|
|
|
isa => Str, |
|
27
|
|
|
|
|
|
|
predicate => 1, |
|
28
|
|
|
|
|
|
|
); |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
has phone_number => ( |
|
31
|
|
|
|
|
|
|
is => 'ro', |
|
32
|
|
|
|
|
|
|
isa => Str, |
|
33
|
|
|
|
|
|
|
predicate => 1, |
|
34
|
|
|
|
|
|
|
); |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# ABSTRACT: Contains data for the issuer of the credit card associated with a transaction |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=pod |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=encoding UTF-8 |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 NAME |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
WebService::MinFraud::Record::Issuer - Contains data for the issuer of the credit card associated with a transaction |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 VERSION |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
version 1.010000 |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
use 5.010; |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
use WebService::MinFraud::Client; |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
my $client = WebService::MinFraud::Client->new( |
|
61
|
|
|
|
|
|
|
account_id => 42, |
|
62
|
|
|
|
|
|
|
license_key => 'abcdef123456', |
|
63
|
|
|
|
|
|
|
); |
|
64
|
|
|
|
|
|
|
my $request = { device => { ip_address => '24.24.24.24' } }; |
|
65
|
|
|
|
|
|
|
my $insights = $client->insights($request); |
|
66
|
|
|
|
|
|
|
my $issuer = $insights->credit_card->issuer; |
|
67
|
|
|
|
|
|
|
say $issuer->name; |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This class contains the data for the issuer of the credit card associated with |
|
72
|
|
|
|
|
|
|
a transaction. |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 METHODS |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This class provides the following methods: |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 matches_provided_name |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Returns a boolean indicating whether the name provided matches the known bank |
|
81
|
|
|
|
|
|
|
name associated with the credit card. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 matches_provided_phone_number |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Returns a boolean indicating whether the phone provided matches the known bank |
|
86
|
|
|
|
|
|
|
phone associated with the credit card. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 name |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Returns the name of the issuer of the credit card. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 phone_number |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Returns the phone number of the issuer of the credit card. |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 PREDICATE METHODS |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
The following predicate methods are available, which return true if the related |
|
99
|
|
|
|
|
|
|
data was present in the response body, false if otherwise: |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 has_matches_provided_name |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 has_matches_provided_phone_number |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head2 has_name |
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 has_phone_number |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 SUPPORT |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 AUTHOR |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Mateu Hunter <mhunter@maxmind.com> |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
This software is copyright (c) 2015 - 2020 by MaxMind, Inc. |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
122
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |