IncomingInvoice

 Methods

Construct a new invoice

__construct(array $data, \Moneybird\Contact $contact) 
Inherited

inherited_from \Moneybird\IncomingInvoice::__construct()

Parameters

$data

array

Proxy to disclose method

__get(String $key) : mixed
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::__get()
inherited_from \Moneybird\IncomingInvoice::__get()

Parameters

$key

String

Returns

mixed

Magic set method Do not allow set

__set(string $name, mixed $value) 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::__set()
inherited_from \Moneybird\IncomingInvoice::__set()

Parameters

$name

string

$value

mixed

Exceptions

\Moneybird\Domainmodel_Exception

Deletes an invoice

delete(\Moneybird\Service $service) 
Inherited

inherited_from \Moneybird\IncomingInvoice::delete()

Parameters

Discloses all values of the object that should be visible in the view layer.

disclose(mixed $key) : mixed
Inherited

access public
inherited_from \Moneybird\Domainmodel_Abstract::disclose()
inherited_from \Moneybird\IncomingInvoice::disclose()

Parameters

$key

mixed

Returns

mixed

Return the objects id or null

getId() : int
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::getId()
inherited_from \Moneybird\IncomingInvoice::getId()

Returns

int

Register a payment for the invoice

registerPayment(\Moneybird\Service $service, \Moneybird\Payment_Abstract $payment) : \Moneybird\self
Inherited

inherited_from \Moneybird\IncomingInvoice::registerPayment()

Parameters

Returns

\Moneybird\self

Updates or inserts an invoice

save(\Moneybird\Service $service) : \Moneybird\self
Inherited

inherited_from \Moneybird\IncomingInvoice::save()

Parameters

Exceptions

\Moneybird\NotValidException

Returns

\Moneybird\self

Copy info from contact to invoice

setContact(\Moneybird\Contact $contact) : \Moneybird\self
Inherited

access public
inherited_from \Moneybird\IncomingInvoice::setContact()

Parameters

Returns

\Moneybird\self

Sets data

setData(array $data) 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::setData()
inherited_from \Moneybird\IncomingInvoice::setData()

Parameters

$data

array

Get array representation of Subject

toArray() : Array
Inherited

inherited_from \Moneybird\Mapper_Mapable::toArray()
inherited_from \Moneybird\IncomingInvoice::toArray()

Returns

Array

Create disclosedAttributes array

_initDisclosedAttributes() 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::_initDisclosedAttributes()
inherited_from \Moneybird\IncomingInvoice::_initDisclosedAttributes()

Initialize vars

_initVars() 
Inherited

inherited_from \Moneybird\IncomingInvoice::_initVars()

Extract will take an array and try to automatically map the array values to properties in this object

extract(array $values, Array $filter) 
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::extract()
inherited_from \Moneybird\IncomingInvoice::extract()

Parameters

$values

Array

$filter

Array

Initialize

init() 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::init()
inherited_from \Moneybird\IncomingInvoice::init()

Adopt the data from $self

reload(\Moneybird\Domainmodel_Abstract $self) : \Moneybird\self
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::reload()
inherited_from \Moneybird\IncomingInvoice::reload()

Parameters

Returns

\Moneybird\self

Returns an array representation of this object

selfToArray(array $filter) : array
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::selfToArray()
inherited_from \Moneybird\IncomingInvoice::selfToArray()

Parameters

$filter

Returns

array

Set details

setDetailsAttr(\Moneybird\IncomingInvoice_Detail_Array $value) 
Inherited

inherited_from \Moneybird\IncomingInvoice::setDetailsAttr()

Parameters

Set history

setHistoryAttr(\Moneybird\IncomingInvoice_History_Array $value) 
Inherited

inherited_from \Moneybird\IncomingInvoice::setHistoryAttr()

Parameters

Set Id

setIdAttr(int $value) 
Inherited

inherited_from \Moneybird\IncomingInvoice::setIdAttr()

Parameters

$value

int

Exceptions

\Moneybird\InvalidIdException

Set payments

setPaymentsAttr(\Moneybird\IncomingInvoice_Payment_Array $value) 
Inherited

inherited_from \Moneybird\IncomingInvoice::setPaymentsAttr()

Parameters

Validate object

validate() : bool
Inherited

inherited_from \Moneybird\IncomingInvoice::validate()

Returns

bool

 Properties

 

Array containing attributes to disclose

$_discloseAttr : array
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::$$_discloseAttr
inherited_from \Moneybird\IncomingInvoice::$$_discloseAttr
 

Disclosure

$_disclosure : \Moneybird\Disclosure
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::$$_disclosure
inherited_from \Moneybird\IncomingInvoice::$$_disclosure
 

Array of attributes that can't be modified

$_readonlyAttr : Array
Inherited

inherited_from \Moneybird\IncomingInvoice::$$_readonlyAttr
 

Array of attributes that are required

$_requiredAttr : Array
Inherited

inherited_from \Moneybird\IncomingInvoice::$$_requiredAttr
 

$conceptId

$conceptId 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$conceptId
 

$contactId

$contactId 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$contactId
 

$createdAt

$createdAt 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$createdAt
 

$currency

$currency 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$currency
 

$details

$details 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$details
 

$dueDate

$dueDate 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$dueDate
 

$history

$history 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$history
 

$id

$id 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$id
 

$invoiceDate

$invoiceDate 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$invoiceDate
 

$invoiceId

$invoiceId 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$invoiceId
 

$payments

$payments 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$payments
 

$revision

$revision 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$revision
 

$state

$state 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$state
 

$totalPaid

$totalPaid 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$totalPaid
 

$totalUnpaid

$totalUnpaid 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$totalUnpaid
 

$updatedAt

$updatedAt 
Inherited

inherited_from \Moneybird\IncomingInvoice::$$updatedAt