Net::FreshBooks::API::InvoiceLine - Adds Line Item support to FreshBooks Invoices


Net-FreshBooks-API documentation Contained in the Net-FreshBooks-API distribution.

Index


Code Index:

NAME

Top

Net::FreshBooks::API::InvoiceLine - Adds Line Item support to FreshBooks Invoices

VERSION

Top

version 0.21

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


Net-FreshBooks-API documentation Contained in the Net-FreshBooks-API distribution.

use strict;
use warnings;

package Net::FreshBooks::API::InvoiceLine;
BEGIN {
  $Net::FreshBooks::API::InvoiceLine::VERSION = '0.21';
}

use Moose;
extends 'Net::FreshBooks::API::Base';

has $_ => ( is => _fields()->{$_}->{is} ) for sort keys %{ _fields() };

sub node_name { return 'line' }

sub _fields {
    return {
        line_id      => { is => 'ro' },
        amount       => { is => 'ro' },
        name         => { is => 'rw' },
        description  => { is => 'rw' },
        unit_cost    => { is => 'rw' },
        quantity     => { is => 'rw' },
        tax1_name    => { is => 'rw' },
        tax2_name    => { is => 'rw' },
        tax1_percent => { is => 'rw' },
        tax2_percent => { is => 'rw' },
        type         => { is => 'rw' },
    };
}

__PACKAGE__->meta->make_immutable();

1;

# ABSTRACT: Adds Line Item support to FreshBooks Invoices

__END__