Reputation: 25
In the VirtoCommerce Storefront the order paid notification has access to customer_order object. We cannot find any documentation on what fields are available on that object. We need the last 4 of the credit card as well as time (with time zone) the charge was made as well as the authorization number.
It would also be great if we could have a complete property/field list and description of each of the objects listed as available in each notification.
Upvotes: 0
Views: 29
Reputation: 113
All order notification data templates inherited from OrderEmailNotificationBase.
The customer_order object is VirtoCommerce.Domain.Order.Model.CustomerOrder type.
Notice that the property should be converted from Camel notation to lowercase and underscores, because of the DotLiquid engine we use in this template and because it uses Ruby notation for all the properties.
So, the complete liquid example of the customer model. Unfortunately, I could not post the complete document here:
{
"customer_id": "string",
"customer_name": "string",
"channel_id": "string",
"store_id": "string",
"store_name": "string",
"organization_id": "string",
"organization_name": "string",
"employee_id": "string",
"employee_name": "string",
"outer_id": "string",
"shopping_cart_id": "string",
"is_prototype": true,
"subscription_number": "string",
"subscription_id": "string",
"addresses": [
{
"key": "string",
"address_type": "Billing",
"name": "string",
...
Upvotes: 1