You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
/**
* Adds a file to the unclaimed draft.
*
* @param file File
* @throws HelloSignException thrown if there is a problem adding the File.
*/
public void addFile(File file) throws HelloSignException {
if (!(request instanceof SignatureRequest)) {
throw new HelloSignException("Cannot add files to this unclaimed draft");
}
((SignatureRequest) request).addFile(file);
}
/**
* Adds a file to the unclaimed draft at the given document order.
*
* @param file File
* @param order int
* @throws HelloSignException thrown if there is a problem adding the File.
*/
public void addFile(File file, int order) throws HelloSignException {
if (!(request instanceof SignatureRequest)) {
throw new HelloSignException("Cannot add files to this unclaimed draft");
}
((SignatureRequest) request).addFile(file, order);
}
/**
* Removes all files from this request.
*
* @throws HelloSignException thrown if there is a problem clearing the
* Files
*/
public void clearFiles() throws HelloSignException {
if (!(request instanceof SignatureRequest)) {
throw new HelloSignException("Cannot add files to this unclaimed draft");
}
((SignatureRequest) request).clearDocuments();
}
The text was updated successfully, but these errors were encountered:
Since we can now add files to Unclaimed Drafts with Template, we need to either remove the check for type SignatureRequest, or include TemplateSignatureRequest in these places:
https://github.com/HelloFax/hellosign-java-sdk/blob/master/src/main/java/com/hellosign/sdk/resource/UnclaimedDraft.java#L180
https://github.com/HelloFax/hellosign-java-sdk/blob/master/src/main/java/com/hellosign/sdk/resource/UnclaimedDraft.java#L193
https://github.com/HelloFax/hellosign-java-sdk/blob/master/src/main/java/com/hellosign/sdk/resource/UnclaimedDraft.java#L207
The text was updated successfully, but these errors were encountered: