Skip to content

Commit

Permalink
fix: property name is_cancelled has UK spelling
Browse files Browse the repository at this point in the history
Check https://eversign.com/api/documentation/methods#get-document-template
This fixes isCanceled() to return undefined when retrieving a Document in declined state.
  • Loading branch information
gtron authored Aug 11, 2021
1 parent 7084105 commit 0cfad35
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ function Document(newDocument = {}) {
isTrashed: undefined,

/**
* Check if the document has been canceled.
* @var {Boolean} isCanceled
* Check if the document has been cancelled.
* @var {Boolean} isCancelled
* @type {Boolean}
*/
isCanceled: undefined,
isCancelled: undefined,

/**
*
Expand Down Expand Up @@ -390,8 +390,9 @@ function Document(newDocument = {}) {
return document.isCompleted;
};

this.getIsCanceled = function () {
return document.isCanceled;
// UK Spelling. Check ApiDoc: https://eversign.com/api/documentation/methods#get-document-template
this.getIsCancelled = function () {
return document.isCancelled;
};

this.getIsDeleted = function () {
Expand Down

0 comments on commit 0cfad35

Please sign in to comment.