Do you have the order properties that are 'expected' such as billing and shipping fields defined as constants? I've had a look but don't see them. Just want to avoid duplicating these and typos etc.
However things like the billing address / shipping address aren't explicitly required to be named anything specific as far as Vendr is concerned and so we don't have constants for them.
Order property constants
Hi Matt
Do you have the order properties that are 'expected' such as billing and shipping fields defined as constants? I've had a look but don't see them. Just want to avoid duplicating these and typos etc.
Thanks.
Hi Sean,
There are curently only constants for the properties that are absolutely required to be known by Vendr which are all in the namespace
Vendr.Core.Constants.Properties.Customer
https://vendr.net/docs/core/1-2-0/reference/vendr-core/constants/#constantspropertiescustomerHowever things like the billing address / shipping address aren't explicitly required to be named anything specific as far as Vendr is concerned and so we don't have constants for them.
For minimum friction though, you can review the default Order Editor Config to see what property aliases the default editor view looks for https://vendr.net/docs/core/1-2-0/key-concepts/order-editor-config/
/Matt
Ok cool thats what I'm looking for.
Thanks.
is working on a reply...