Moderator: Phil Barton
or is this a collection (probably, as there is more than one tax) with an interface that must be that must be instanciated?.
Need advice please. The sdk is great for the information that is there, but is missing lots of information.
If you want to set the county tax amount, you should navigate to the property taxes collection then search for the "CountyTax" object.
Code: Select all
// Get taxes collection for first property. IOrderItem prop1 = (IOrderItem)((IList)order.GetProperty("Properties")); IList taxes = (IList)prop1.GetProperty("Taxes"); // Find the county tax object. IOrderItem countyTax = taxes.Cast<IOrderItem>() .Where(t => t.GetType().Name == "CountyTax") .FirstOrDefault();