Ik probeer dit object uit te lezen maar dit wil niet echt lukken.
Ik wil graag het [id] => 2130962 van dit object achter halen.
Maar ik kom er niet uit.
Hoe los ik dit op?
Als ik bv print_r($recurringTemplate->properties['details']); krijg ik als niets.
MoneybirdRecurringTemplate Object
(
[api:protected] => MoneybirdApi Object
(
[clientname:protected] => joobe-media
[connection:protected] => Resource id #84
[errors:protected] => Array
(
)
[lastRequest:protected] => Array
(
[url] => https://joobe-media.moneybird.nl/api/v1.0/recurring_templates.xml
[method] => POST
[http-response] => 201
[xml-send] =>
2012-10-01
504323
1
6
2
Invoice line descr
2
20.4
0.19
)
[baseUrl] =>
)
[properties:protected] => Array
(
[active] => 1
[contact_id] => 504323
[created_at] => DateTime Object
(
)
[currency] => EUR
[discount] => 0.0
[frequency] => 6
[frequency_type] => 1
[id] => 36752
[invoice_profile_id] => 1
[last_date] =>
[next_date] => DateTime Object
(
)
[number_of_occurences] => 0
[occurences] => 2
[send_invoice] =>
[start_date] => DateTime Object
(
)
[template_id] => 46
[updated_at] => DateTime Object
(
)
[total_price_excl_tax] => 40.8
[total_price_incl_tax] => 48.55
[total_tax] => 7.75
[details] => Array
(
[0] => MoneybirdRecurringTemplateLine Object
(
[deleted:protected] =>
[api:protected] =>
[properties:protected] => Array
(
[amount] => 2
[created_at] => DateTime Object
(
)
[description] => Invoice line descr
[id] => 2130962
[ledger_account_id] =>
[price] => 20.4
[row_order] =>
[tax] => 0.19
[updated_at] => DateTime Object
(
)
[amount_plain] => 2
[total_price_excl_tax] => 40.8
[total_price_incl_tax] => 48.55
)
)
)
)
)