Estimate service

 Methods

Constructor

__construct(\Moneybird\ApiConnector $connector) 

Parameters

Deletes an estimate

delete(\Moneybird\Estimate $estimate) : \Moneybird\self

Parameters

Returns

\Moneybird\self

Get all estimates

getAll(string | integer $filter, \Moneybird\Estimate_Subject $parent) : \Moneybird\Estimate_Array

Parameters

$filter

stringinteger

Filter name or id (advanced filters)

Exceptions

\Moneybird\InvalidFilterException

Returns

Get estimate by id

getById(int $id) : \Moneybird\Estimate

Parameters

$id

int

Returns

Get the raw PDF content

getPdf(\Moneybird\Estimate $estimate) : string

Parameters

Returns

string

Updates or inserts an estimate

save(\Moneybird\Estimate $estimate) : \Moneybird\Estimate

Parameters

Returns

Send the estimate.

send(\Moneybird\Estimate $estimate, string $method, \Moneybird\type $email, \Moneybird\type $message) : \Moneybird\Estimate

Returns the updated estimate

Parameters

$method

string

Send method (email|hand|post); default: email

$email

\Moneybird\type

Address to send to; default: contact e-mail

$message

\Moneybird\type

Returns

Build an envelope to send the estimate or reminder with

buildEnvelope(string $method, \Moneybird\type $email, \Moneybird\type $message) : \Moneybird\Estimate_Envelope

access protected

Parameters

$method

string

Send method (email|hand|post); default: email

$email

\Moneybird\type

Address to send to; default: contact e-mail

$message

\Moneybird\type

Returns

 Properties

 

ApiConnector object

$connector : \Moneybird\ApiConnector