Skip to content

Commit fb70a80

Browse files
renamed isCanceled to isCancelled to be consistent with the API
1 parent 1d94101 commit fb70a80

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

sdk/Eversign/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function deleteDocument(Document $document, $type=NULL) {
467467
if (!$document->getDocumentHash()) {
468468
throw new \Exception('Deleting the Document requires the Document Hash');
469469
}
470-
if (!$document->getIsDraft() && !$document->getIsCanceled()) {
470+
if (!$document->getIsDraft() && !$document->getIsCancelled()) {
471471
throw new \Exception('Only Drafts and cancelled Documents can be deleted');
472472
}
473473
if ($document->getIsDeleted()) {

sdk/Eversign/Document.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Document {
116116
* @var integer $isCancelled
117117
* @Type("integer")
118118
*/
119-
private $isCanceled;
119+
private $isCancelled;
120120

121121
/**
122122
*
@@ -419,8 +419,8 @@ public function getIsTrashed() {
419419
return !!$this->isTrashed;
420420
}
421421

422-
public function getIsCanceled() {
423-
return !!$this->isCanceled;
422+
public function getIsCancelled() {
423+
return !!$this->isCancelled;
424424
}
425425

426426
public function getEmbedded() {

sdk/Eversign/Test/CreateDocumentFromTemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCall()
5151
$this->assertSame($createdDocument->getIsArchived(), false);
5252
$this->assertSame($createdDocument->getIsDeleted(), false);
5353
$this->assertSame($createdDocument->getIsTrashed(), false);
54-
$this->assertSame($createdDocument->getIsCanceled(), false);
54+
$this->assertSame($createdDocument->getIsCancelled(), false);
5555
$this->assertSame($createdDocument->getEmbedded(), false);
5656
$this->assertSame($createdDocument->getTitle(), 'test_title');
5757
$this->assertSame($createdDocument->getMessage(), 'test_message');

sdk/Eversign/Test/CreateDocumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function testCall()
144144
$this->assertSame($createdDocument->getIsArchived(), false);
145145
$this->assertSame($createdDocument->getIsDeleted(), false);
146146
$this->assertSame($createdDocument->getIsTrashed(), false);
147-
$this->assertSame($createdDocument->getIsCanceled(), false);
147+
$this->assertSame($createdDocument->getIsCancelled(), false);
148148
$this->assertSame($createdDocument->getEmbedded(), false);
149149
$this->assertSame($createdDocument->getTitle(), 'test_title');
150150
$this->assertSame($createdDocument->getMessage(), 'test_message');

0 commit comments

Comments
 (0)