public static void SetOrderCustomerInfo(Guid orderId, OrderCustomerInfo info, String ApiToken, String ApiServer) { Factory.GetResponse("Orders/SetOrderCustomerInfo", "orderId=" + orderId + "&info=" + Newtonsoft.Json.JsonConvert.SerializeObject(info) + "", ApiToken, ApiServer); }
public static OrderTotalsInfo SetOrderCustomerInfo(Guid orderId, OrderCustomerInfo info, Boolean?saveToCrm, Guid ApiToken, String ApiServer) { return(Newtonsoft.Json.JsonConvert.DeserializeObject <OrderTotalsInfo>(Factory.GetResponse("Orders/SetOrderCustomerInfo", "orderId=" + orderId + "&info=" + Newtonsoft.Json.JsonConvert.SerializeObject(info, serializerSettings) + "&saveToCrm=" + Newtonsoft.Json.JsonConvert.SerializeObject(saveToCrm, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore })); }