| Net-FreshBooks-API documentation | Contained in the Net-FreshBooks-API distribution. |
Net::FreshBooks::API::Role::LineItem - Line Item roles
version 0.21
Provides line item functionality to Invoices and Estimates. See those modules for specific examples of how to use this method.
This software is copyright (c) 2011 by Edmund von der Burg & Olaf Alders.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Net-FreshBooks-API documentation | Contained in the Net-FreshBooks-API distribution. |
use strict; use warnings; package Net::FreshBooks::API::Role::LineItem; BEGIN { $Net::FreshBooks::API::Role::LineItem::VERSION = '0.21'; } use Moose::Role; use Net::FreshBooks::API::InvoiceLine; use Data::Dump qw( dump ); sub add_line { my $self = shift; my $line_args = shift; push @{ $self->{lines} ||= [] }, Net::FreshBooks::API::InvoiceLine->new($line_args); return 1; } 1; # ABSTRACT: Line Item roles __END__