Пример #1
0
        /// <summary>
        /// Remove order from a job
        /// </summary>
        /// <param name="request"></param>
        public DeallocateOrderFromJobResponse DeallocateOrderFromJob(DeallocateOrderFromJobRequest request)
        {
            var response = GetResponse("OrderWorkflow/DeallocateOrderFromJob", "request=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(request)) + "");

            return(JsonFormatter.ConvertFromJson <DeallocateOrderFromJobResponse>(response));
        }
Пример #2
0
 public static DeallocateOrderFromJobResponse DeallocateOrderFromJob(DeallocateOrderFromJobRequest request, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <DeallocateOrderFromJobResponse>(Factory.GetResponse("OrderWorkflow/DeallocateOrderFromJob", "request=" + Newtonsoft.Json.JsonConvert.SerializeObject(request, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
Пример #3
0
        /// <summary>
        /// Remove order from a job
        /// </summary>
        /// <param name="request"></param>
        public DeallocateOrderFromJobResponse DeallocateOrderFromJob(DeallocateOrderFromJobRequest request)
        {
            var response = GetResponse("OrderWorkflow/DeallocateOrderFromJob", "request=" + JsonFormatter.ConvertToJson(request) + "");

            return(JsonFormatter.ConvertFromJson <DeallocateOrderFromJobResponse>(response));
        }