public class SignatureRequest extends AbstractRequest
Modifier and Type | Field and Description |
---|---|
static String |
SIGREQ_CCS |
static String |
SIGREQ_CUSTOM_FIELDS |
static String |
SIGREQ_DETAILS_URL |
static String |
SIGREQ_FILES |
static String |
SIGREQ_FILES_URL |
static String |
SIGREQ_FINAL_COPY_URL |
static String |
SIGREQ_FORM_FIELDS |
static String |
SIGREQ_FORMAT_PDF |
static String |
SIGREQ_FORMAT_ZIP |
static String |
SIGREQ_HAS_ERROR |
static String |
SIGREQ_ID |
static String |
SIGREQ_IS_COMPLETE |
static String |
SIGREQ_IS_DECLINED |
static String |
SIGREQ_KEY |
static String |
SIGREQ_RESPONSE_DATA |
static String |
SIGREQ_SIGNER_EMAIL |
static String |
SIGREQ_SIGNER_NAME |
static String |
SIGREQ_SIGNER_ORDER |
static String |
SIGREQ_SIGNER_PIN |
static String |
SIGREQ_SIGNERS |
static String |
SIGREQ_SIGNING_URL |
REQUEST_ALLOW_DECLINE, REQUEST_CLIENT_ID, 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_2
dataObj, warnings
Constructor and Description |
---|
SignatureRequest() |
SignatureRequest(org.json.JSONObject json) |
SignatureRequest(org.json.JSONObject json,
String key) |
Modifier and Type | Method and Description |
---|---|
void |
addCC(String email)
Adds a CC'd email address to this request.
|
void |
addSigner(Signer signer)
Adds the signer to the list of signers for this request.
|
void |
addSigner(String email,
String name)
Adds the signer to the list of signers for this request.
|
void |
addSigner(String email,
String name,
int order)
Adds the signer with the given order to the list of signers for this
request.
|
List<String> |
getCCs()
Returns the CC email addresses for this request.
|
List<CustomField> |
getCustomFields()
Gets the custom fields associated with this request, set when sending the
request from a template.
|
String |
getDetailsUrl() |
String |
getFilesUrl()
Returns the API URL to retrieve the PDF copy of this signature request.
|
String |
getFinalCopyUrl()
Deprecated.
use getFilesUrl()
|
String |
getId()
Returns the ID for this request.
|
Map<String,Serializable> |
getPostFields()
Internal method used to retrieve the necessary POST fields to submit the
signature request.
|
List<ResponseData> |
getResponseData() |
Signature |
getSignature(String email,
String name)
Returns the signature for the given email/name combination, or null if
not found on this request.
|
Signature |
getSignatureBySigner(String email,
String name)
Deprecated.
Use getSignature(email, name)
|
List<Signature> |
getSignatures()
Returns a list of signatures for this request.
|
List<Signer> |
getSigners()
Returns a reference to the signers list.
|
String |
getSigningUrl() |
boolean |
hasError() |
boolean |
hasId()
Returns true if this request has an ID.
|
boolean |
isComplete()
Returns the HelloSign-designated signature status, indicating whether all
signers have signed the document.
|
boolean |
isDeclined() |
void |
removeSigner(String email)
Removes the signer from the list.
|
void |
setSigners(List<Signer> signers)
Overwrites the current list of signers for this request with the given
list.
|
addDocument, addDocument, addFile, addFile, addFileUrl, addMetadata, clearDocuments, getClientId, getDocuments, getFileUrls, getIsDeclinable, getMessage, getMetadata, getMetadata, getOrderMatters, getRedirectUrl, getSubject, getTitle, getUxVersion, hasHideTextTags, hasMessage, hasRedirectUrl, hasSubject, hasTitle, hasUsePreexistingFields, hasUseTextTags, isHidingTextTags, isTestMode, isUsingPreexistingFields, isUsingTextTags, setClientId, setDocuments, setFileUrls, setHideTextTags, setIsDeclinable, setMessage, setOrderMatters, setRedirectUrl, setSubject, setTestMode, setTitle, setUsePreexistingFields, setUseTextTags, setUxVersion
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toString
public static final String SIGREQ_KEY
public static final String SIGREQ_ID
public static final String SIGREQ_SIGNERS
public static final String SIGREQ_SIGNER_EMAIL
public static final String SIGREQ_SIGNER_NAME
public static final String SIGREQ_SIGNER_ORDER
public static final String SIGREQ_SIGNER_PIN
public static final String SIGREQ_CCS
public static final String SIGREQ_FILES
public static final String SIGREQ_FORM_FIELDS
public static final String SIGREQ_IS_COMPLETE
public static final String SIGREQ_HAS_ERROR
public static final String SIGREQ_RESPONSE_DATA
public static final String SIGREQ_FINAL_COPY_URL
public static final String SIGREQ_FILES_URL
public static final String SIGREQ_SIGNING_URL
public static final String SIGREQ_DETAILS_URL
public static final String SIGREQ_IS_DECLINED
public static final String SIGREQ_CUSTOM_FIELDS
public static final String SIGREQ_FORMAT_ZIP
public static final String SIGREQ_FORMAT_PDF
public SignatureRequest()
public SignatureRequest(org.json.JSONObject json) throws HelloSignException
HelloSignException
public SignatureRequest(org.json.JSONObject json, String key) throws HelloSignException
HelloSignException
public String getId()
getId
in class AbstractRequest
public boolean hasId()
public void addCC(String email)
email
- String email addresspublic List<Signature> getSignatures()
public Signature getSignature(String email, String name) throws HelloSignException
email
- String email addressname
- String nameHelloSignException
- if the email or name are emptypublic void addSigner(Signer signer) throws HelloSignException
signer
- SignerHelloSignException
- thrown if there is a problem adding the
signer.public void addSigner(String email, String name) throws HelloSignException
email
- Stringname
- StringHelloSignException
- thrown if there is a problem adding the
signer.public void addSigner(String email, String name, int order) throws HelloSignException
email
- Stringname
- Stringorder
- intHelloSignException
- thrown if there is a problem adding the
signer.public List<Signer> getSigners()
public void setSigners(List<Signer> signers)
signers
- Listpublic void removeSigner(String email) throws HelloSignException
email
- StringHelloSignException
- thrown if there is a problem removing the
signer.public Signature getSignatureBySigner(String email, String name)
email
- Stringname
- Stringpublic Map<String,Serializable> getPostFields() throws HelloSignException
getPostFields
in class AbstractRequest
HelloSignException
- thrown if there is a problem serializing the
POST fields.public boolean isComplete()
public boolean hasError()
public List<ResponseData> getResponseData()
public String getFinalCopyUrl()
public String getFilesUrl()
public String getSigningUrl()
public String getDetailsUrl()
public boolean isDeclined()
public List<CustomField> getCustomFields()
Copyright © 2017 HelloSign. All rights reserved.