Net::FreshBooks::API::Links - Provides FreshBooks Link objects to Clients and Invoices


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

Index


Code Index:

NAME

Top

Net::FreshBooks::API::Links - Provides FreshBooks Link objects to Clients and Invoices

VERSION

Top

version 0.21

SYNOPSIS

Top

    my $fb = Net::FreshBooks::API->new(...);
    my $invoice = $fb->invoice->get({ invoice_id => $invoice_id });
    my $links = $invoice->links;

    print "Send this link to client: " . $links->client_view;

    my $client = $fb->client->get({ client_id => $client_id });
    print "Client view: " . $client->links->client_view;

client_view

    Provided for invoice, client and estimate links.

view

    Provided for invoice and client links.

edit

    Provided for invoice links.

statement

    Provided for client links.

DESCRIPTION

Top

The methods on this object all return FreshBooks URLs.

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::Links;
BEGIN {
  $Net::FreshBooks::API::Links::VERSION = '0.21';
}

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

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

sub _fields {
    return {
        client_view => { is => 'ro' },
        view        => { is => 'ro' },
        edit        => { is => 'ro' },
        statement   => { is => 'ro' },
    };
}

__PACKAGE__->meta->make_immutable();

1;

# ABSTRACT: Provides FreshBooks Link objects to Clients and Invoices


__END__