Contact service

 Methods

Constructor

__construct(\Moneybird\ApiConnector $connector) 

Parameters

Deletes a contact

delete(\Moneybird\Contact $contact) : \Moneybird\self

Parameters

Returns

\Moneybird\self

Get all contacts

getAll() : \Moneybird\Contact_Array

Get contact by customer id

getByCustomerId(string $customerId) : \Moneybird\Contact

Parameters

$customerId

string

Returns

Get contact by id

getById(int $id) : \Moneybird\Contact

Parameters

$id

int

Returns

Get contacts by id (max 100)

getByIds(Array $ids) : \Moneybird\Contact_Array

Parameters

$ids

Array

Returns

Get contacts sync status

getSyncList() : \Moneybird\Contact_Array

Updates or inserts a contact

save(\Moneybird\Contact $contact) : \Moneybird\Contact

Parameters

Returns

 Properties

 

ApiConnector object

$connector : \Moneybird\ApiConnector