GoCardless/PayoutItem.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond 66.6% 4 / 6 MC/DCmcdc 33.3% 1 / 3 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 3 totaltotal 78.7% 26 / 33 CC 4 SCAR 5.5
CC
4
Cov
90%
payment_id
2.1
refund_id
2.1
mandate_id
2.0
CRAP 1.7
« GoCardless/Institution.pm ↑ Summary GoCardless/RedirectFlow.pm »
1 package Business::GoCardless::PayoutItem;
2  
3 =head1 NAME
4  
5 Business::GoCardless::PayoutItem
6  
7 =head1 DESCRIPTION
8  
9 A class for a gocardless payout item, extends L<Business::GoCardless::Resource>
10  
11 =cut
12  
13 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 5 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 5 extends 'Business::GoCardless::Resource';
18  
19 =head1 ATTRIBUTES
20  
21 amount
22 links
23 taxes
24 type
25  
26 =cut
27  
28 5 has [ qw/
29 amount
30 links
31 taxes
32 type
33 / ] => (
34 is => 'rw',
35 );
36  
37 =head1 Links
38  
39 Shortcut methods to get the IDs of the linked resources
40  
41 payment_id
42 mandate_id
43 refund_id
44  
45 =cut
46  
47 1 ▶sub payment_id { return ( shift->links // {} )->{payment} }
Subroutine payment_id: called CC=2 SCAR=7.6
Pod undocumented
Condition50%1/2
(shift())->links // {}
l!l
10
MC/DC0%0/1
(shift())->links // {}
(shift())->links
Truth table50%1/2
A
A= (shift())->links
Aresult
11
00
48 2 ▶sub mandate_id { return ( shift->links // {} )->{mandate} }
Subroutine mandate_id: called CC=2 SCAR=6.9
Pod undocumented
Condition100%2/2
(shift())->links // {}
l!l
11
MC/DC100%1/1
(shift())->links // {}
(shift())->links
Truth table100%2/2
A
A= (shift())->links
Aresult
11
00
49 1 ▶sub refund_id { return ( shift->links // {} )->{refund} }
Subroutine refund_id: called CC=2 SCAR=7.6
Pod undocumented
Condition50%1/2
(shift())->links // {}
l!l
10
MC/DC0%0/1
(shift())->links // {}
(shift())->links
Truth table50%1/2
A
A= (shift())->links
Aresult
11
00
50  
51 =head1 AUTHOR
52  
53 Lee Johnson - C<lee@payprop.com>
54  
55 This library is free software; you can redistribute it and/or modify it under
56 the same terms as Perl itself. If you would like to contribute documentation,
57 features, bug fixes, or anything else then please raise an issue / pull request:
58  
59 https://github.com/payprop/business-gocardless
60  
61 =cut
62  
63 5 1;
64  
65 # vim: ts=4:sw=4:et
« GoCardless/Institution.pm ↑ Summary GoCardless/RedirectFlow.pm »