Skip to content

Commit

Permalink
Merge pull request #21 from Nathanw/master
Browse files Browse the repository at this point in the history
Added custom requester properties.
  • Loading branch information
dominikkukacka authored Jan 8, 2019
2 parents c45db3d + ce11b9c commit 10a8e6a
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions sdk/Eversign/DocumentTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,13 @@ class DocumentTemplate {
*/
private $sandbox;


/**
* Set to the Template ID of the template you would like to use
* @var string $templateId
* @Type("string")
*/
private $templateId;


/**
* Sets the title of the Document.
* @var string $title
Expand All @@ -70,7 +68,7 @@ class DocumentTemplate {
*/
private $message;

/**
/**
* This parameter is used to specify a custom completion redirect URL.
* If empty the default Post-Sign Completion URL of the current Business will be used
* @var string $redirect
Expand All @@ -94,7 +92,6 @@ class DocumentTemplate {
*/
private $client;


/**
* Expiration Time of the Document, default expiration time will be used if unset
*
Expand Down Expand Up @@ -127,14 +124,27 @@ class DocumentTemplate {
*/
private $fields;


/**
* Whether the Document is embedded signable
* @var integer $embeddedSigningEnabled
* @Type("integer")
*/
private $embeddedSigningEnabled;

/**
* Custom E-Mail address of the requester
* @var string $customRequesterEmail
* @Type("string")
*/
private $customRequesterEmail;

/**
* Custom name of the requester
* @var string $customRequesterName
* @Type("string")
*/
private $customRequesterName;

public function __construct($templateId = null) {
if (!class_exists('Doctrine\Common\Annotations\AnnotationRegistry', false) && class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
AnnotationRegistry::registerLoader('class_exists');
Expand Down Expand Up @@ -230,6 +240,14 @@ public function getFields() {
public function getEmbeddedSigningEnabled() {
return !!$this->embeddedSigningEnabled;
}

public function getCustomRequesterEmail() {
return $this->customRequesterEmail;
}

public function getCustomRequesterName() {
return $this->customRequesterName;
}

public function setSandbox($sandbox) {
$this->sandbox = !!$sandbox;
Expand Down Expand Up @@ -278,6 +296,14 @@ public function setEmbeddedSigningEnabled($embeddedSigningEnabled) {
$this->embeddedSigningEnabled = !!$embeddedSigningEnabled;
}

public function setCustomRequesterEmail($customRequesterEmail) {
$this->customRequesterEmail = $customRequesterEmail;
}

public function setCustomRequesterName($customRequesterName) {
$this->customRequesterName = $customRequesterName;
}

/**
* Converts the document to a JSON String
* @return string
Expand Down

0 comments on commit 10a8e6a

Please sign in to comment.