public static void SignAllPreLoanAppSubmitDocs(string loanApplicationGuid, List <GeneratedDocumentType> docTypes = null) { var listOfDocTypes; if (docTypes == null || docTypes.Count == 0) { listOfDocTypes = new List <GeneratedDocumentType>() { GeneratedDocumentType.ESignConsent, GeneratedDocumentType.PatriotActDisclosure, GeneratedDocumentType.CreditAuthorizationDisclosure, GeneratedDocumentType.CreditScoreNotice, GeneratedDocumentType.TCPADisclosure, GeneratedDocumentType.TermsOfUse, GeneratedDocumentType.BorrowerAgreement, GeneratedDocumentType.RegisterBorrowerAuthorization, GeneratedDocumentType.PrivacyPolicy, GeneratedDocumentType.AdverseActionNotice, GeneratedDocumentType.CancelAnyTimeNotice, GeneratedDocumentType.CRBPrivacyPolicy, GeneratedDocumentType.PTIL }; } else { listOfDocTypes = docTypes; } var request = new DocumentSigningByTypeRequest(); request.GeneratedDocumentTypes = listOfDocTypes; request.IpAddress = "127.0.0.1"; var result = new LoanAppGenDocClient().SignApplicationDocs(loanApplicationGuid, request); }
public static void SignPromissoryAndFTIL(string loanApplicationGuid) { var request = new DocumentSigningByTypeRequest(); request.GeneratedDocumentTypes = new List <GeneratedDocumentType> { GeneratedDocumentType.FinalTIL, GeneratedDocumentType.PromissoryNote, GeneratedDocumentType.EFTAgreement }; request.IpAddress = "127.0.0.1"; Dictionary <string, string> headers = new Dictionary <string, string>() { { "Authorization", CLPCoreUWAuth } }; /* ResponseObject<EmptyResult> response = new VanillaRestClient(RestClientBase.environment).VanillaRequest<EmptyResult>(CLPCoreApiHost, * $"{ApiBasePath}/loanapplications/{loanApplicationGuid}/generateddocuments/signbytype", * RestSharp.Method.PUT, headers, new System.Collections.Specialized.NameValueCollection(), request);*/ var response = new LoanAppGenDocClient().SignApplicationDocs(loanApplicationGuid, request); }