public class UnclaimedDraft extends AbstractRequest
addFile(File) and addFile(File, int) methods to add
files to be claimed.| Modifier and Type | Field and Description |
|---|---|
static String |
UNCLAIMED_DRAFT_CLAIM_URL |
static String |
UNCLAIMED_DRAFT_EXPIRES_AT |
static String |
UNCLAIMED_DRAFT_IS_FOR_EMBEDDED_SIGNING |
static String |
UNCLAIMED_DRAFT_KEY |
static String |
UNCLAIMED_DRAFT_REQUESTER_EMAIL |
static String |
UNCLAIMED_DRAFT_SIGNATURE_REQUEST_ID |
static String |
UNCLAIMED_DRAFT_TEST_MODE |
static String |
UNCLAIMED_DRAFT_TYPE |
REQUEST_ALLOW_DECLINE, REQUEST_ALLOW_REASSIGN, REQUEST_CLIENT_ID, REQUEST_CUSTOM_FIELDS, REQUEST_HIDE_TEXT_TAGS, REQUEST_MESSAGE, REQUEST_METADATA, REQUEST_REDIRECT_URL, REQUEST_SUBJECT, REQUEST_TEST_MODE, REQUEST_TITLE, REQUEST_USE_PREEXISTING_FIELDS, REQUEST_USE_TEXT_TAGS, REQUEST_UX_VERSION, UX_VERSION_1, UX_VERSION_2dataObj, warnings| Constructor and Description |
|---|
UnclaimedDraft()
Default constructor.
|
UnclaimedDraft(AbstractRequest request)
Creates an unclaimed draft with the provided AbstractRequest, and
defaults the type to
UnclaimedDraftType.send_document. |
UnclaimedDraft(AbstractRequest request,
UnclaimedDraftType type)
Creates an unclaimed draft with the provided AbstractRequest and
UnclaimedDraftType.
|
UnclaimedDraft(org.json.JSONObject json)
Constructor to provide a way to store the API response JSON information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomField(CustomField field)
Add the custom field to this request.
|
void |
addFile(File file)
Adds a file to the unclaimed draft.
|
void |
addFile(File file,
int order)
Adds a file to the unclaimed draft at the given document order.
|
void |
clearCustomFields()
Clears the current custom fields for this request.
|
void |
clearFiles()
Removes all files from this request.
|
String |
getClaimUrl()
Gets the claim URL if the draft has been created.
|
List<CustomField> |
getCustomFields()
Gets the custom fields associated with this request, set when sending the
request.
|
Map<String,String> |
getCustomFieldsMap()
Returns the map of custom fields for the request.
|
Date |
getExpiresAt() |
String |
getId() |
String |
getMessage() |
Map<String,Serializable> |
getPostFields() |
String |
getRedirectUrl() |
AbstractRequest |
getRequest()
Gets the associated request object.
|
String |
getRequesterEmail() |
String |
getSignatureRequestId() |
String |
getSubject() |
String |
getTitle() |
UnclaimedDraftType |
getType()
Gets the unclaimed draft type.
|
String |
getTypeString()
Gets the string value of the unclaimed draft type.
|
boolean |
hasClaimUrl()
Returns true if the draft has been created and a claim URL exists.
|
boolean |
hasMessage() |
boolean |
hasRedirectUrl() |
boolean |
hasRequesterEmail() |
boolean |
hasSignatureRequestId() |
boolean |
hasSubject() |
boolean |
hasTitle() |
boolean |
isForEmbeddedSigning()
Returns true if this Unclaimed Draft is to be embedded.
|
boolean |
isTestMode() |
void |
setCustomFields(Map<String,String> fields)
Overwrites the current map of custom fields to the provided map.
|
void |
setCustomFieldValue(String fieldNameOrApiId,
String value)
Adds the value to fill in for a custom field with the given field name.
|
void |
setIsForEmbeddedSigning(boolean b)
Sets whether this Unclaimed Draft is to be embedded.
|
void |
setMessage(String message) |
void |
setRedirectUrl(String url) |
void |
setRequest(AbstractRequest request)
Sets the associated request object from which this unclaimed draft will
be created.
|
void |
setRequesterEmail(String email) |
void |
setSubject(String subject) |
void |
setTestMode(boolean testMode) |
void |
setTitle(String title) |
void |
setType(UnclaimedDraftType type)
Sets the unclaimed draft type.
|
addDocument, addDocument, addFile, addFileUrl, addMetadata, clearDocuments, getClientId, getCustomFieldsList, getDocuments, getFileUrls, getIsDeclinable, getMetadata, getMetadata, getOrderMatters, getUxVersion, hasAllowReassign, hasHideTextTags, hasUsePreexistingFields, hasUseTextTags, isAllowReassign, isHidingTextTags, isUsingPreexistingFields, isUsingTextTags, setAllowReassign, setClientId, setDocuments, setFileUrls, setHideTextTags, setIsDeclinable, setOrderMatters, setUsePreexistingFields, setUseTextTags, setUxVersionadd, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toStringpublic static final String UNCLAIMED_DRAFT_KEY
public static final String UNCLAIMED_DRAFT_CLAIM_URL
public static final String UNCLAIMED_DRAFT_TYPE
public static final String UNCLAIMED_DRAFT_REQUESTER_EMAIL
public static final String UNCLAIMED_DRAFT_IS_FOR_EMBEDDED_SIGNING
public static final String UNCLAIMED_DRAFT_SIGNATURE_REQUEST_ID
public static final String UNCLAIMED_DRAFT_EXPIRES_AT
public static final String UNCLAIMED_DRAFT_TEST_MODE
public UnclaimedDraft()
public UnclaimedDraft(AbstractRequest request)
UnclaimedDraftType.send_document.request - AbstractRequestpublic UnclaimedDraft(AbstractRequest request, UnclaimedDraftType type)
request - AbstractRequesttype - UnclaimedDraftTypepublic UnclaimedDraft(org.json.JSONObject json)
throws HelloSignException
json - JSONObject API response objectHelloSignException - thrown if there is a problem parsing the
JSONObject.public void setType(UnclaimedDraftType type)
type - UnclaimedDraft.UNCLAIMED_DRAFT_TYPEpublic String getTypeString()
public UnclaimedDraftType getType()
public void setRequest(AbstractRequest request)
request - AbstractRequestpublic AbstractRequest getRequest()
public String getClaimUrl()
public boolean hasClaimUrl()
public void addFile(File file) throws HelloSignException
addFile in class AbstractRequestfile - FileHelloSignException - thrown if there is a problem adding the File.public void addFile(File file, int order) throws HelloSignException
file - Fileorder - intHelloSignException - thrown if there is a problem adding the File.public void clearFiles()
throws HelloSignException
HelloSignException - thrown if there is a problem clearing the
Filespublic boolean isForEmbeddedSigning()
public void setIsForEmbeddedSigning(boolean b)
b - booleanpublic boolean hasSignatureRequestId()
public String getSignatureRequestId()
public Map<String,Serializable> getPostFields() throws HelloSignException
getPostFields in class AbstractRequestHelloSignExceptionpublic String getRequesterEmail()
public boolean hasRequesterEmail()
public void setRequesterEmail(String email)
public String getTitle()
getTitle in class AbstractRequestpublic void setTitle(String title)
setTitle in class AbstractRequestpublic boolean hasTitle()
hasTitle in class AbstractRequestpublic String getSubject()
getSubject in class AbstractRequestpublic void setSubject(String subject)
setSubject in class AbstractRequestpublic boolean hasSubject()
hasSubject in class AbstractRequestpublic String getMessage()
getMessage in class AbstractRequestpublic void setMessage(String message)
setMessage in class AbstractRequestpublic boolean hasMessage()
hasMessage in class AbstractRequestpublic void setTestMode(boolean testMode)
setTestMode in class AbstractRequestpublic boolean isTestMode()
isTestMode in class AbstractRequestpublic String getRedirectUrl()
getRedirectUrl in class AbstractRequestpublic void setRedirectUrl(String url)
setRedirectUrl in class AbstractRequestpublic boolean hasRedirectUrl()
hasRedirectUrl in class AbstractRequestpublic String getId()
getId in class AbstractRequestpublic void addCustomField(CustomField field)
AbstractRequestaddCustomField in class AbstractRequestfield - CustomFieldpublic void setCustomFieldValue(String fieldNameOrApiId, String value)
AbstractRequestsetCustomFieldValue in class AbstractRequestfieldNameOrApiId - String name (or "Field Label") of the custom field
to be filled in. The "api_id" can also be used instead of the name.value - String valuepublic List<CustomField> getCustomFields()
AbstractRequestgetCustomFields in class AbstractRequestpublic Map<String,String> getCustomFieldsMap()
AbstractRequestgetCustomFieldsMap in class AbstractRequestpublic void setCustomFields(Map<String,String> fields)
AbstractRequestsetCustomFields in class AbstractRequestfields - Mappublic void clearCustomFields()
AbstractRequestclearCustomFields in class AbstractRequestpublic Date getExpiresAt()
Copyright © 2019 HelloSign. All rights reserved.