IncomingInvoice service

 Methods

Constructor

__construct(\Moneybird\ApiConnector $connector) 

Parameters

Deletes an invoice

delete(\Moneybird\IncomingInvoice $invoice) : \Moneybird\self

Parameters

Returns

\Moneybird\self

Get all invoices

getAll(string | integer $filter, \Moneybird\IncomingInvoice_Subject $parent) : \Moneybird\IncomingInvoice_Array

Parameters

$filter

stringinteger

Filter name or id (advanced filters)

Exceptions

\Moneybird\InvalidFilterException

Returns

Get invoice by id

getById(int $id) : \Moneybird\IncomingInvoice

Parameters

$id

int

Returns

Get invoices by id (max 100)

getByIds(array $ids) : \Moneybird\IncomingInvoice_Array

Parameters

$ids

Array

Returns

Get invoices sync status

getSyncList() : \Moneybird\IncomingInvoice_Array

Register a payment for the invoice

registerPayment(\Moneybird\IncomingInvoice $invoice, \Moneybird\IncomingInvoice_Payment $payment) : \Moneybird\IncomingInvoice

Updates or inserts an invoice

save(\Moneybird\IncomingInvoice $invoice) : \Moneybird\IncomingInvoice

 Properties

 

ApiConnector object

$connector : \Moneybird\ApiConnector