bkper 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +11 -0
- package/lib/model/Book.js +19 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -490,6 +490,17 @@ export declare class Book {
|
|
|
490
490
|
* @returns This Book, for chainning.
|
|
491
491
|
*/
|
|
492
492
|
setLockDate(lockDate: string): Book;
|
|
493
|
+
/**
|
|
494
|
+
* @returns The closing date of the Book in ISO format yyyy-MM-dd
|
|
495
|
+
*/
|
|
496
|
+
getClosingDate(): string;
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* Sets the closing date of the Book in ISO format yyyy-MM-dd.
|
|
500
|
+
*
|
|
501
|
+
* @returns This Book, for chainning.
|
|
502
|
+
*/
|
|
503
|
+
setClosingDate(closingDate: string): Book;
|
|
493
504
|
/**
|
|
494
505
|
* @returns The decimal separator of the Book
|
|
495
506
|
*/
|
package/lib/model/Book.js
CHANGED
|
@@ -206,6 +206,25 @@ class Book {
|
|
|
206
206
|
this.wrapped.lockDate = lockDate;
|
|
207
207
|
return this;
|
|
208
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* @returns The closing date of the Book in ISO format yyyy-MM-dd
|
|
211
|
+
*/
|
|
212
|
+
getClosingDate() {
|
|
213
|
+
return this.wrapped.closingDate;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* Sets the closing date of the Book in ISO format yyyy-MM-dd.
|
|
218
|
+
*
|
|
219
|
+
* @returns This Book, for chainning.
|
|
220
|
+
*/
|
|
221
|
+
setClosingDate(closingDate) {
|
|
222
|
+
if (closingDate == null) {
|
|
223
|
+
closingDate = "1900-00-00";
|
|
224
|
+
}
|
|
225
|
+
this.wrapped.closingDate = closingDate;
|
|
226
|
+
return this;
|
|
227
|
+
}
|
|
209
228
|
/**
|
|
210
229
|
* @returns The decimal separator of the Book
|
|
211
230
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Node.js client for Bkper REST API",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"open": "^7.3.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@bkper/bkper-api-types": "^5.
|
|
49
|
+
"@bkper/bkper-api-types": "^5.1.4",
|
|
50
50
|
"@microsoft/api-extractor": "^7.12.1",
|
|
51
51
|
"@types/big.js": "^6.0.2",
|
|
52
52
|
"@types/chai": "^4.2.14",
|