/// <summary>
        /// Marks the attachment as printed, reprints document if its not available anymore and returns the URL of the document to be downloaded
        /// </summary>
        /// <param name="request"></param>
        public GetPrintAttachmentResponse GetPrintAttachment(GetPrintAttachmentRequest request)
        {
            var response = GetResponse("OrderWorkflow/GetPrintAttachment", "request=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(request)) + "");

            return(JsonFormatter.ConvertFromJson <GetPrintAttachmentResponse>(response));
        }
 public static GetPrintAttachmentResponse GetPrintAttachment(GetPrintAttachmentRequest request, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <GetPrintAttachmentResponse>(Factory.GetResponse("OrderWorkflow/GetPrintAttachment", "request=" + Newtonsoft.Json.JsonConvert.SerializeObject(request, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
        /// <summary>
        /// Marks the attachment as printed, reprints document if its not available anymore and returns the URL of the document to be downloaded
        /// </summary>
        /// <param name="request"></param>
        public GetPrintAttachmentResponse GetPrintAttachment(GetPrintAttachmentRequest request)
        {
            var response = GetResponse("OrderWorkflow/GetPrintAttachment", "request=" + JsonFormatter.ConvertToJson(request) + "");

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