line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
984
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
72
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
61
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Net::FreshBooks::API::InvoiceLine; |
5
|
|
|
|
|
|
|
$Net::FreshBooks::API::InvoiceLine::VERSION = '0.24'; |
6
|
1
|
|
|
1
|
|
469
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
extends 'Net::FreshBooks::API::Base'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has $_ => ( is => _fields()->{$_}->{is} ) for sort keys %{ _fields() }; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub node_name { return 'line' } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _fields { |
14
|
|
|
|
|
|
|
return { |
15
|
|
|
|
|
|
|
line_id => { is => 'ro' }, |
16
|
|
|
|
|
|
|
amount => { is => 'ro' }, |
17
|
|
|
|
|
|
|
name => { is => 'rw' }, |
18
|
|
|
|
|
|
|
description => { is => 'rw' }, |
19
|
|
|
|
|
|
|
unit_cost => { is => 'rw' }, |
20
|
|
|
|
|
|
|
quantity => { is => 'rw' }, |
21
|
|
|
|
|
|
|
tax1_name => { is => 'rw' }, |
22
|
|
|
|
|
|
|
tax2_name => { is => 'rw' }, |
23
|
|
|
|
|
|
|
tax1_percent => { is => 'rw' }, |
24
|
|
|
|
|
|
|
tax2_percent => { is => 'rw' }, |
25
|
|
|
|
|
|
|
type => { is => 'rw' }, |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# ABSTRACT: Adds Line Item support to FreshBooks Invoices |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=encoding UTF-8 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Net::FreshBooks::API::InvoiceLine - Adds Line Item support to FreshBooks Invoices |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 VERSION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
version 0.24 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHORS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=over 4 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item * |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Edmund von der Burg <evdb@ecclestoad.co.uk> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Olaf Alders <olaf@wundercounter.com> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=back |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is copyright (c) 2011 by Edmund von der Burg & Olaf Alders. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
68
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |