package org.innovateuk.ifs.docusign.transactional;

import com.docusign.esign.client.ApiException;
import org.innovateuk.ifs.commons.service.ServiceResult;
import org.innovateuk.ifs.docusign.domain.DocusignDocument;
import org.innovateuk.ifs.docusign.resource.DocusignRequest;
import org.springframework.security.access.prepost.PreAuthorize;

import java.io.IOException;

public interface DocusignService {

    ServiceResult<DocusignDocument> send(DocusignRequest request);
    ServiceResult<DocusignDocument> resend(long docusignDocumentId, DocusignRequest request);

    void downloadFileIfSigned() throws ApiException, IOException;

    String getDocusignUrl(String envelopeId, long userId, String name, String email, String redirect);

    @PreAuthorize("hasAnyAuthority('applicant')")
    ServiceResult<Void> importDocument(String envelopeId);
}

@@ -559,24 +559,79 @@
  request);%0A%0A
+    @PreAuthorize(%22hasAuthority('system_maintainer')%22)%0A
     void dow
@@ -816,11 +816,8 @@
 hasA
-nyA
 utho

Fix schedule.