lib/WebService/Braintree/_/Merchant.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/_/IdealPayment.pm ↑ Summary lib/WebService/Braintree/_/MerchantAccount.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::Merchant;
4 22 $WebService::Braintree::_::Merchant::VERSION = '1.7';
5 22 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 22 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 WebService::Braintree::_::Merchant
11  
12 =head1 PURPOSE
13  
14 This class represents a merchant.
15  
16 This class will only be created as part of a L<response|WebService::Braintree::Result> or L<error response|WebService::Braintree::ErrorResult>.
17  
18 =cut
19  
20 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 22 extends 'WebService::Braintree::_';
23  
24 22 ▶use Types::Standard qw(ArrayRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
25 22 ▶use WebService::Braintree::Types qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
26 MerchantAccount
27 22 );
28  
29 =head1 ATTRIBUTES
30  
31 =cut
32  
33 =head2 company_name()
34  
35 This is the company name for this merchant.
36  
37 =cut
38  
39 22 has company_name => (
40 is => 'ro',
41 );
42  
43 =head2 commercial_code_alpha2()
44  
45 This is the commercial code (alpha2) for this merchant.
46  
47 =cut
48  
49 22 has commercial_code_alpha2 => (
50 is => 'ro',
51 );
52  
53 =head2 commercial_code_alpha2()
54  
55 This is the commercial code (alpha3) for this merchant.
56  
57 =cut
58  
59 22 has commercial_code_alpha3 => (
60 is => 'ro',
61 );
62  
63 =head2 commercial_name()
64  
65 This is the commercial name for this merchant.
66  
67 =cut
68  
69 22 has commercial_name => (
70 is => 'ro',
71 );
72  
73 =head2 email()
74  
75 This is the email for this merchant.
76  
77 =cut
78  
79 22 has email => (
80 is => 'ro',
81 );
82  
83 =head2 id()
84  
85 This is the ID for this merchant.
86  
87 =cut
88  
89 22 has id => (
90 is => 'ro',
91 );
92  
93 =head2 merchant_accounts()
94  
95 This is an arrayref of L<merchant accounts|WebService::Braintree::_::MerchantAccount>
96 associated with this merchant.
97  
98 =cut
99  
100 22 has merchant_accounts => (
101 is => 'ro',
102 isa => ArrayRef[MerchantAccount],
103 coerce => 1,
104 );
105  
106 22 __PACKAGE__->meta->make_immutable;
107  
108 22 1;
109 __END__
« lib/WebService/Braintree/_/IdealPayment.pm ↑ Summary lib/WebService/Braintree/_/MerchantAccount.pm »