public static ICrateStorage GetEnvelopePayload() { var curDocuSignEnvelopeInfo = DocuSignEventParser.GetEnvelopeInformation(EnvelopePayload); var content = DocuSignEventParser.ParseXMLintoCM(curDocuSignEnvelopeInfo); return(new CrateStorage(Crate.FromContent("DocuSign Connect Event", content))); }
private Crate ProcessConnectEvent(string curExternalEventPayload) { // Connect events come only for a single envelope var curDocuSignEnvelopeInfo = DocuSignEventParser.GetEnvelopeInformation(curExternalEventPayload); // transform XML structure into DocuSignEnvelopeCM_v2 var curDocuSingEnvelopCM = DocuSignEventParser.ParseXMLintoCM(curDocuSignEnvelopeInfo); var eventReportContent = new EventReportCM { EventNames = DocuSignEventParser.GetEventNames(curDocuSignEnvelopeInfo), EventPayload = new CrateStorage(Crate.FromContent("DocuSign Connect Event", curDocuSingEnvelopCM)), Manufacturer = "DocuSign", ExternalAccountId = curDocuSignEnvelopeInfo.EnvelopeStatus.Email }; ////prepare the event report var curEventReport = Crate.FromContent("Standard Event Report", eventReportContent); return(curEventReport); }