private PostDocumentRequest PopulatePostDocumentRequest(Attachment attachment, WCMDisclosurePackage package) { var loan = this.Loan; var result = new PostDocumentRequest() { PortalId = loan.Fields["CX.BLEND.LOANID"].ToString(), BorrowerPartyId = BlendUtility.GetCurrentBorrowerPairBorrowerBlendId(loan), CoBorrowerPartyId = BlendUtility.GetCurrentBorrowerPairCoBorrowerBlendId(loan), LosLoanNumber = loan.LoanNumber, FileName = attachment.Title, DisplayNameAndLosType = attachment.Title, DocumentDeliveryType = MapDocDeliveryType(package) }; return(result); }
private PostDocumentRequest PopulatePostDocumentRequest( EllieMae.EMLite.LoanServices.BamObjects.PdfDocument disclosure, DeliveryTypeEnum packageDeliveryType) { var loan = EncompassApplication.CurrentLoan; var result = new PostDocumentRequest() { PortalId = loan.Fields["CX.BLEND.LOANID"].ToString(), BorrowerPartyId = BlendUtility.GetCurrentBorrowerPairBorrowerBlendId(loan), CoBorrowerPartyId = BlendUtility.GetCurrentBorrowerPairCoBorrowerBlendId(loan), LosLoanNumber = loan.LoanNumber, FileName = disclosure.Title, DisplayNameAndLosType = disclosure.Title, DocumentDeliveryType = MapDocDeliveryType(disclosure.SignatureType, packageDeliveryType) }; return(result); }