Skip to content

Commit 10a8e6a

Browse files
Merge pull request #21 from Nathanw/master
Added custom requester properties.
2 parents c45db3d + ce11b9c commit 10a8e6a

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

sdk/Eversign/DocumentTemplate.php

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@ class DocumentTemplate {
4747
*/
4848
private $sandbox;
4949

50-
5150
/**
5251
* Set to the Template ID of the template you would like to use
5352
* @var string $templateId
5453
* @Type("string")
5554
*/
5655
private $templateId;
5756

58-
5957
/**
6058
* Sets the title of the Document.
6159
* @var string $title
@@ -70,7 +68,7 @@ class DocumentTemplate {
7068
*/
7169
private $message;
7270

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

97-
9895
/**
9996
* Expiration Time of the Document, default expiration time will be used if unset
10097
*
@@ -127,14 +124,27 @@ class DocumentTemplate {
127124
*/
128125
private $fields;
129126

130-
131127
/**
132128
* Whether the Document is embedded signable
133129
* @var integer $embeddedSigningEnabled
134130
* @Type("integer")
135131
*/
136132
private $embeddedSigningEnabled;
137133

134+
/**
135+
* Custom E-Mail address of the requester
136+
* @var string $customRequesterEmail
137+
* @Type("string")
138+
*/
139+
private $customRequesterEmail;
140+
141+
/**
142+
* Custom name of the requester
143+
* @var string $customRequesterName
144+
* @Type("string")
145+
*/
146+
private $customRequesterName;
147+
138148
public function __construct($templateId = null) {
139149
if (!class_exists('Doctrine\Common\Annotations\AnnotationRegistry', false) && class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
140150
AnnotationRegistry::registerLoader('class_exists');
@@ -230,6 +240,14 @@ public function getFields() {
230240
public function getEmbeddedSigningEnabled() {
231241
return !!$this->embeddedSigningEnabled;
232242
}
243+
244+
public function getCustomRequesterEmail() {
245+
return $this->customRequesterEmail;
246+
}
247+
248+
public function getCustomRequesterName() {
249+
return $this->customRequesterName;
250+
}
233251

234252
public function setSandbox($sandbox) {
235253
$this->sandbox = !!$sandbox;
@@ -278,6 +296,14 @@ public function setEmbeddedSigningEnabled($embeddedSigningEnabled) {
278296
$this->embeddedSigningEnabled = !!$embeddedSigningEnabled;
279297
}
280298

299+
public function setCustomRequesterEmail($customRequesterEmail) {
300+
$this->customRequesterEmail = $customRequesterEmail;
301+
}
302+
303+
public function setCustomRequesterName($customRequesterName) {
304+
$this->customRequesterName = $customRequesterName;
305+
}
306+
281307
/**
282308
* Converts the document to a JSON String
283309
* @return string

0 commit comments

Comments
 (0)