File Coverage

blib/lib/WebService/Braintree/PayPalAccountGateway.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 4 50.0
pod 0 2 0.0
total 8 16 50.0


line stmt bran cond sub pod time code
1             package WebService::Braintree::PayPalAccountGateway;
2             $WebService::Braintree::PayPalAccountGateway::VERSION = '0.93';
3 1     1   8 use Moose;
  1         3  
  1         9  
4             with 'WebService::Braintree::Role::MakeRequest';
5              
6 1     1   7873 use Carp qw(confess);
  1         5  
  1         271  
7              
8             has 'gateway' => (is => 'ro');
9              
10             sub find {
11 0     0 0   my ($self, $token) = @_;
12 0           $self->_make_request("/payment_methods/paypal_account/$token", "get", undef)->paypal_account;
13             }
14              
15             sub update {
16 0     0 0   my ($self, $token, $params) = @_;
17 0           $self->_make_request(
18             "/payment_methods/paypal_account/$token",
19             "put",
20             {
21             paypal_account => $params
22             });
23             }
24              
25             __PACKAGE__->meta->make_immutable;
26             1;
27