Closed PixelDevelopers closed 3 years ago
Add this method to the OrderMethod Class:
public static List SetExtendedProperties(Guid orderId, ExtendedProperty[] extendedProperties, String ApiToken, String ApiServer) { return Newtonsoft.Json.JsonConvert.DeserializeObject<List>(Factory.GetResponse("Orders/SetExtendedProperties", "orderId=" + orderId + "&extendedProperties=" + Newtonsoft.Json.JsonConvert.SerializeObject(extendedProperties) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); }
Self Solved.
Add this method to the OrderMethod Class:
public static List SetExtendedProperties(Guid orderId, ExtendedProperty[] extendedProperties, String ApiToken, String ApiServer)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<List>(Factory.GetResponse("Orders/SetExtendedProperties", "orderId=" + orderId + "&extendedProperties=" + Newtonsoft.Json.JsonConvert.SerializeObject(extendedProperties) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
}