Class EmbeddedRequest


  • public class EmbeddedRequest
    extends AbstractRequest
    Represents an Embedded signature request (either standard or templated). An embedded request is one that can be signed from either within HelloSign or from within an iFrame on your website.
    • Field Detail

      • EMBEDDED_CLIENT_ID

        public static final java.lang.String EMBEDDED_CLIENT_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmbeddedRequest

        public EmbeddedRequest​(java.lang.String clientId,
                               AbstractRequest request)
        Creates an Embedded signature request using the client ID and the AbstractRequest object provided. First, instantiate the request object (either a SignatureRequest or TemplateSignatureRequest) and then create your EmbeddedRequest using that object.
        Parameters:
        clientId - String client ID
        request - AbstractRequest
    • Method Detail

      • getClientId

        public java.lang.String getClientId()
        Set the client ID of the web app you're using to create this embedded signature request. See: http://app.hellosign.com/api/embedded
        Overrides:
        getClientId in class AbstractRequest
        Returns:
        String client ID
      • setClientId

        public void setClientId​(java.lang.String clientId)
        Set the client ID of the web app you're using to create this embedded signature request. See: http://app.hellosign.com/api/embedded
        Overrides:
        setClientId in class AbstractRequest
        Parameters:
        clientId - String client ID
      • getRequest

        public AbstractRequest getRequest()
        Get the AbstractRequest associated with this Embedded signature request.
        Returns:
        AbstractRequest
      • setRequest

        public void setRequest​(AbstractRequest request)
        Set the AbstractRequest associated with this Embedded signature request.
        Parameters:
        request - AbstractRequest
      • addCustomField

        public void addCustomField​(CustomField field)
        Description copied from class: AbstractRequest
        Add the custom field to this request. This is useful for specifying a pre-filled value and/or a field editor.
        Overrides:
        addCustomField in class AbstractRequest
        Parameters:
        field - CustomField
      • setCustomFieldValue

        public void setCustomFieldValue​(java.lang.String fieldNameOrApiId,
                                        java.lang.String value)
        Description copied from class: AbstractRequest
        Adds the value to fill in for a custom field with the given field name.
        Overrides:
        setCustomFieldValue in class AbstractRequest
        Parameters:
        fieldNameOrApiId - 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 value
      • getCustomFields

        public java.util.List<CustomField> getCustomFields()
        Description copied from class: AbstractRequest
        Gets the custom fields associated with this request, set when sending the request.
        Overrides:
        getCustomFields in class AbstractRequest
        Returns:
        List CustomFields
      • setCustomFields

        public void setCustomFields​(java.util.Map<java.lang.String,​java.lang.String> fields)
        Description copied from class: AbstractRequest
        Overwrites the current map of custom fields to the provided map. This is a map of String field names to String field values.
        Overrides:
        setCustomFields in class AbstractRequest
        Parameters:
        fields - Map
      • getCustomFieldsMap

        public java.util.Map<java.lang.String,​java.lang.String> getCustomFieldsMap()
        Description copied from class: AbstractRequest
        Returns the map of custom fields for the request. This is a map of String field names to String field values.
        Overrides:
        getCustomFieldsMap in class AbstractRequest
        Returns:
        Map