Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We're excited you're considering contributing to our project! Your patches are e

* Make sure you have a [GitHub account](https://github.com/signup/free)
* Make sure you have a [HelloSign account](http://www.hellosign.com)
* Submit a new [issue ticket](https://github.com/HelloFax/hellosign-java-sdk/issues), assuming one does not already exist.
* Submit a new [issue ticket](https://github.com/hellosign/hellosign-java-sdk/issues), assuming one does not already exist.
* Clearly describe the issue including steps to reproduce when it is a bug.
* Make sure to include the version you are using which has the issue (and confirm that the issue you are having has not been fixed in a later version)
* Fork the repository on GitHub
Expand All @@ -27,7 +27,7 @@ always necessary to create a new issue ticket.
## Submitting Changes

* Push your changes to your fork of the repository.
* Submit a pull request to the repository in the HelloFax organization.
* Submit a pull request to the repository in the hellosign organization.
* Update your issue ticket to mark that you have submitted code and are ready for it to be reviewed (Status: Ready for Merge).
* Include a link to the pull request in the ticket.
* The HelloSign dev team looks at Pull Requests on a regular basis.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# HelloSign Java SDK
[![Build Status](https://travis-ci.org/HelloFax/hellosign-java-sdk.svg?branch=v3)](https://travis-ci.org/HelloFax/hellosign-java-sdk) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.hellosign/hellosign-java-sdk/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.hellosign/hellosign-java-sdk/) [![Javadocs](http://javadoc.io/badge/com.hellosign/hellosign-java-sdk.svg)](http://javadoc.io/doc/com.hellosign/hellosign-java-sdk)
[![Build Status](https://travis-ci.org/hellosign/hellosign-java-sdk.svg?branch=v3)](https://travis-ci.org/hellosign/hellosign-java-sdk) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.hellosign/hellosign-java-sdk/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.hellosign/hellosign-java-sdk/) [![Javadocs](http://javadoc.io/badge/com.hellosign/hellosign-java-sdk.svg)](http://javadoc.io/doc/com.hellosign/hellosign-java-sdk)

Get your Java app connected to HelloSign's API in jiffy.

Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<groupId>com.hellosign</groupId>
<artifactId>hellosign-java-sdk</artifactId>
<packaging>jar</packaging>
<version>4.0.11</version>
<version>4.0.12</version>
<name>HelloSign Java SDK</name>
<url>https://github.com/HelloFax/hellosign-java-sdk</url>
<url>https://github.com/hellosign/hellosign-java-sdk</url>
<properties>
<user.name>HelloSign API Support ([email protected])</user.name>
<slf4jVersion>1.7.22</slf4jVersion>
Expand Down Expand Up @@ -189,9 +189,9 @@
<url>https://www.hellosign.com/</url>
</organization>
<scm>
<url>https://github.com/HelloFax/hellosign-java-sdk</url>
<developerConnection>scm:git:[email protected]:HelloFax/hellosign-java-sdk.git</developerConnection>
<connection>scm:git:git://github.com/HelloFax/hellosign-java-sdk.git</connection>
<url>https://github.com/hellosign/hellosign-java-sdk</url>
<developerConnection>scm:git:[email protected]:hellosign/hellosign-java-sdk.git</developerConnection>
<connection>scm:git:git://github.com/hellosign/hellosign-java-sdk.git</connection>
</scm>
<licenses>
<license>
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/hellosign/sdk/resource/AbstractRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public abstract class AbstractRequest extends AbstractResource {
public static final String REQUEST_UX_VERSION = "ux_version";
public static final String REQUEST_CLIENT_ID = "client_id";
public static final String REQUEST_ALLOW_DECLINE = "allow_decline";
public static final String REQUEST_ALLOW_REASSIGN = "allow_reassign";

// UX Version 1 = Original, non-responsive signer page is used
public static final int UX_VERSION_1 = 1;
Expand Down Expand Up @@ -113,6 +114,9 @@ protected Map<String, Serializable> getPostFields() throws HelloSignException {
if (isDeclinable != null) {
fields.put(REQUEST_ALLOW_DECLINE, (isDeclinable ? "1" : "0"));
}
if (hasAllowReassign()) {
fields.put(REQUEST_ALLOW_REASSIGN, isAllowReassign());
}
return fields;
}

Expand Down Expand Up @@ -425,4 +429,19 @@ public void setIsDeclinable(Boolean isDeclinable) {
public Boolean getIsDeclinable() {
return this.isDeclinable;
}

public boolean hasAllowReassign() {
return has(REQUEST_ALLOW_REASSIGN);
}

public boolean isAllowReassign() {
if (has(REQUEST_ALLOW_REASSIGN)) {
return getBoolean(REQUEST_ALLOW_REASSIGN);
}
return false;
}

public void setAllowReassign(boolean b) {
set(REQUEST_ALLOW_REASSIGN, b);
}
}