Due to the nature of tag objects containing several fields, many of which are likely irrelevant for use in email templates, but may be useful to you in certain circumstances, an example dump of the tag objects are shown below. Code Block |
---|
language | php |
---|
title | The {contact} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[client_id] => 1
[user_id] =>
[contact_type] => primary
[contact_type_id] =>
[first_name] => First
[last_name] => Last
[title] =>
[company] =>
[email] => first.last@domain.com
[address1] => 1 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[date_added] => 2014-06-25 18:05:34
[contact_type_name] =>
[contact_type_is_lang] =>
) |
Code Block |
---|
language | php |
---|
title | The {package} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1
[module_id] => 3
[name] => My Package
[description] =>
[description_html] =>
[qty] =>
[module_row] => 1
[module_group] =>
[taxable] => 0
[single_term] => 0
[status] => active
[company_id] => 1
[prorata_day] => 1
[prorata_cutoff] =>
[id_code] => 1
[email_content] => Array
(
[0] => stdClass Object
(
[lang] => en_us
[html] =>
[text] =>
)
)
[pricing] => Array
(
[0] => stdClass Object
(
[id] => 2
[pricing_id] => 2
[package_id] => 1
[term] => 1
[period] => day
[price] => 1.0000
[setup_fee] => 0.0000
[cancel_fee] => 0.0000
[currency] => USD
)
[1] => stdClass Object
(
[id] => 3
[pricing_id] => 3
[package_id] => 1
[term] => 1
[period] => week
[price] => 7.0000
[setup_fee] => 0.0000
[cancel_fee] => 0.0000
[currency] => USD
)
[2] => stdClass Object
(
[id] => 1
[pricing_id] => 1
[package_id] => 1
[term] => 1
[period] => month
[price] => 15.0000
[setup_fee] => 0.5000
[cancel_fee] => 0.0000
[currency] => USD
)
)
[meta] => stdClass Object
(
)
[groups] => Array
(
[0] => stdClass Object
(
[id] => 1
[name] => My Package Group
[description] =>
[type] => standard
[company_id] => 1
)
[1] => stdClass Object
(
[id] => 2
[name] => Addon Group
[description] =>
[type] => addon
[company_id] => 1
)
)
[option_groups] => Array
(
[0] => stdClass Object
(
[id] => 1
[name] => Package Option Group
[description] => 1
)
)
) |
Code Block |
---|
language | php |
---|
title | The {service} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 35
[parent_service_id] =>
[package_group_id] => 1
[id_format] => {num}
[id_value] => 35
[pricing_id] => 2
[client_id] => 1
[module_row_id] => 1
[coupon_id] =>
[qty] => 1
[override_price] =>
[override_currency] =>
[status] => active
[date_added] => 2014-08-27 18:52:50
[date_renews] =>
[date_last_renewed] =>
[date_suspended] =>
[date_canceled] =>
[id_code] => 35
[fields] => Array
(
[0] => stdClass Object
(
[key] => service_label
[value] => My Service Field
[serialized] => 0
[encrypted] => 0
)
)
[package_pricing] => stdClass Object
(
[id] => 2
[package_id] => 1
[pricing_id] => 2
[term] => 1
[period] => day
[price] => 1.0000
[setup_fee] => 0.0000
[cancel_fee] => 0.0000
[currency] => USD
[price_formatted] => $1.00
[setup_fee_formatted] => $0.00
[cancel_fee_formatted] => $0.00
[period_formatted] => Day
)
[package] => stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1
[module_id] => 3
[name] => Test
[description] =>
[description_html] =>
[qty] =>
[module_row] => 1
[module_group] =>
[taxable] => 0
[single_term] => 0
[status] => active
[company_id] => 1
[prorata_day] => 1
[prorata_cutoff] =>
)
[options] => Array
(
)
[name] => My Service Field
[service_label] => My Service Field
) |
Code Block |
---|
language | php |
---|
title | The {pricing} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 2
[package_id] => 1
[pricing_id] => 2
[term] => 1
[period] => day
[price] => 1.0000
[setup_fee] => 0.0000
[cancel_fee] => 0.0000
[currency] => USD
[price_formatted] => $1.00
[setup_fee_formatted] => $0.00
[cancel_fee_formatted] => $0.00
[period_formatted] => Day
) |
Code Block |
---|
language | php |
---|
title | The {client} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1500
[user_id] => 2
[client_group_id] => 1
[primary_account_id] =>
[primary_account_type] =>
[status] => active
[id_code] => 1500
[contact_id] => 1
[first_name] => First
[last_name] => Last
[company] =>
[email] => first.last@domain.com
[address1] => 1 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[group_name] => General
[company_id] => 1
[username] => first.last@domain.com
[two_factor_mode] => none
[two_factor_key] =>
[two_factor_pin] =>
[date_added] => 2014-06-25 18:05:34
[settings] => Array
(
...
[language] => en_us
...
)
} |
|