Methods
Construct a new template
__construct(array $data, \Moneybird\Contact $contact)
Inherited
inherited_from |
\Moneybird\RecurringTemplate::__construct() |
Parameters
$data
array
Proxy to disclose method
__get(String $key) : mixed
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::__get() |
inherited_from |
\Moneybird\RecurringTemplate::__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\RecurringTemplate::__set() |
Parameters
$name
string
$value
mixed
Exceptions
Create an invoice for this template
createInvoice() : \Moneybird\Invoice
Inherited
inherited_from |
\Moneybird\RecurringTemplate::createInvoice() |
Returns
Deletes a the template (or sets inactive)
delete(\Moneybird\Service $service)
Inherited
inherited_from |
\Moneybird\RecurringTemplate::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\RecurringTemplate::disclose() |
Parameters
$key
mixed
Returns
mixed
Return the objects id or null
getId() : int
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::getId() |
inherited_from |
\Moneybird\RecurringTemplate::getId() |
Returns
int
Get all invoices of this template
getInvoices(\Moneybird\Invoice_Service $service, string $filter) : \Moneybird\Invoice_Array
Inherited
access |
public |
inherited_from |
\Moneybird\RecurringTemplate::getInvoices() |
Parameters
$filter
string
Returns
Updates or inserts the template
save(\Moneybird\Service $service) : \Moneybird\self
Inherited
inherited_from |
\Moneybird\RecurringTemplate::save() |
Parameters
Exceptions
Returns
\Moneybird\self
Sets data
setData(array $data)
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::setData() |
inherited_from |
\Moneybird\RecurringTemplate::setData() |
Parameters
$data
array
Get array representation of Subject
toArray() : Array
Inherited
inherited_from |
\Moneybird\Mapper_Mapable::toArray() |
inherited_from |
\Moneybird\RecurringTemplate::toArray() |
Returns
Array
Create disclosedAttributes array
_initDisclosedAttributes()
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::_initDisclosedAttributes() |
inherited_from |
\Moneybird\RecurringTemplate::_initDisclosedAttributes() |
Initialize vars
_initVars()
Inherited
inherited_from |
\Moneybird\RecurringTemplate::_initVars() |
Initialize
init()
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::init() |
inherited_from |
\Moneybird\RecurringTemplate::init() |
Adopt the data from $self
reload(\Moneybird\Domainmodel_Abstract $self) : \Moneybird\self
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::reload() |
inherited_from |
\Moneybird\RecurringTemplate::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\RecurringTemplate::selfToArray() |
Parameters
$filter
Returns
array
Set details
setDetailsAttr(\Moneybird\RecurringTemplate_Detail_Array $value)
Inherited
inherited_from |
\Moneybird\RecurringTemplate::setDetailsAttr() |
Parameters
Set frecuency type
setFrequencyTypeAttr(int $value)
Inherited
inherited_from |
\Moneybird\RecurringTemplate::setFrequencyTypeAttr() |
Parameters
$value
int
Exceptions
Set Id
setIdAttr(int $value)
Inherited
inherited_from |
\Moneybird\RecurringTemplate::setIdAttr() |
Parameters
$value
int
Exceptions
Validate object
validate() : bool
Inherited
inherited_from |
\Moneybird\RecurringTemplate::validate() |
Returns
bool
Properties
Available frequency types
$frequencyTypes : Array
Inherited
static |
|
inherited_from |
\Moneybird\RecurringTemplate::$$frequencyTypes |
Array containing attributes to disclose
$_discloseAttr : array
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel_Abstract::$$_discloseAttr |
inherited_from |
\Moneybird\RecurringTemplate::$$_discloseAttr |
Disclosure
$_disclosure : \Moneybird\Disclosure
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel_Abstract::$$_disclosure |
inherited_from |
\Moneybird\RecurringTemplate::$$_disclosure |
Array of attributes that can't be modified
$_readonlyAttr : Array
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$_readonlyAttr |
Array of attributes that are required
$_requiredAttr : Array
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$_requiredAttr |
$active
$active
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$active |
$createdAt
$createdAt
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$createdAt |
$currency
$currency
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$currency |
$details
$details
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$details |
$discount
$discount
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$discount |
$frequency
$frequency
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$frequency |
$frequencyType
$frequencyType
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$frequencyType |
$id
$id
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$id |
$invoiceProfileId
$invoiceProfileId
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$invoiceProfileId |
$lastDate
$lastDate
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$lastDate |
$nextDate
$nextDate
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$nextDate |
$numberOfOccurences
$numberOfOccurences
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$numberOfOccurences |
$occurences
$occurences
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$occurences |
$sendInvoice
$sendInvoice
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$sendInvoice |
$startDate
$startDate
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$startDate |
$templateId
$templateId
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$templateId |
$totalPriceExclTax
$totalPriceExclTax
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$totalPriceExclTax |
$totalPriceInclTax
$totalPriceInclTax
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$totalPriceInclTax |
$updatedAt
$updatedAt
Inherited
inherited_from |
\Moneybird\RecurringTemplate::$$updatedAt |
Constants
Send frequency
FREQUENCY_6MONTHS
Inherited
const |
FREQUENCY_6MONTHS Send every 6 months |
inherited_from |
\Moneybird\RecurringTemplate::FREQUENCY_6MONTHS |
Send frequency
FREQUENCY_MONTH
Inherited
const |
FREQUENCY_MONTH Send every month |
inherited_from |
\Moneybird\RecurringTemplate::FREQUENCY_MONTH |
Send frequency
FREQUENCY_QUARTER
Inherited
const |
FREQUENCY_QUARTER Send every quarter |
inherited_from |
\Moneybird\RecurringTemplate::FREQUENCY_QUARTER |
Send frequency
FREQUENCY_WEEKLY
Inherited
const |
FREQUENCY_WEEKLY Send every week |
inherited_from |
\Moneybird\RecurringTemplate::FREQUENCY_WEEKLY |
Send frequency
FREQUENCY_YEAR
Inherited
const |
FREQUENCY_YEAR Send every year |
inherited_from |
\Moneybird\RecurringTemplate::FREQUENCY_YEAR |