Skip to content

Commit 9061435

Browse files
author
Milan Latinovic
committed
ver 1.8.5, isCancelled additional fixes
1 parent d764d6c commit 9061435

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function Client(accessKey, businessId){
256256
if (!document.getDocumentHash()) {
257257
throw new Error('Deleting the Document requires the Document Hash');
258258
}
259-
if (!document.getIsDraft() && !document.getIsCanceled()) {
259+
if (!document.getIsDraft() && !document.getIsCancelled()) {
260260
throw new Error('Only Drafts and cancelled Documents can be deleted');
261261
}
262262
if (document.getIsDeleted()) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eversign",
3-
"version": "1.8.3",
3+
"version": "1.8.5",
44
"description": "Nodejs client for eversign api",
55
"main": "index.js",
66
"typings": "typings/index.d.ts",

typings/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ declare module 'eversign/lib/Document' {
148148
public getExpires(): Date
149149
public getFields(): FormField[]
150150
public getFiles(): File[]
151-
public getIsCanceled(): boolean
151+
public getIsCancelled(): boolean
152152
public getIsCompleted(): boolean
153153
public getIsDeleted(): boolean
154154
public getIsDraft(): boolean
@@ -233,7 +233,7 @@ declare module 'eversign/lib/Document' {
233233
/**
234234
* Check if the document has been canceled.
235235
*/
236-
isCanceled: boolean,
236+
isCancelled: boolean,
237237

238238
/**
239239
*

0 commit comments

Comments
 (0)