File Coverage

blib/lib/PayProp/API/Public/Client/Request/Export.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package PayProp::API::Public::Client::Request::Export;
2              
3 2     2   229326 use strict;
  2         4  
  2         63  
4 2     2   7 use warnings;
  2         3  
  2         91  
5              
6 2     2   7 use Mouse;
  2         4  
  2         53  
7             with qw/ PayProp::API::Public::Client::Role::Attribute::UA /;
8             with qw/ PayProp::API::Public::Client::Role::Attribute::Domain /;
9             with qw/ PayProp::API::Public::Client::Role::Attribute::Authorization /;
10              
11             has beneficiaries => (
12             is => 'ro',
13             isa => 'PayProp::API::Public::Client::Request::Export::Beneficiaries',
14             lazy => 1,
15             default => sub {
16             my ( $self ) = @_;
17              
18             require PayProp::API::Public::Client::Request::Export::Beneficiaries;
19              
20             return PayProp::API::Public::Client::Request::Export::Beneficiaries->new(
21             ua => $self->ua,
22             domain => $self->domain,
23             scheme => $self->scheme,
24             authorization => $self->authorization,
25             );
26             },
27             );
28              
29             has tenants => (
30             is => 'ro',
31             isa => 'PayProp::API::Public::Client::Request::Export::Tenants',
32             lazy => 1,
33             default => sub {
34             my ( $self ) = @_;
35              
36             require PayProp::API::Public::Client::Request::Export::Tenants;
37              
38             return PayProp::API::Public::Client::Request::Export::Tenants->new(
39             ua => $self->ua,
40             domain => $self->domain,
41             scheme => $self->scheme,
42             authorization => $self->authorization,
43             );
44             },
45             );
46              
47             __PACKAGE__->meta->make_immutable;
48              
49              
50             __END__