bkper-js 1.19.3 → 1.20.0
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 +8 -2
- package/lib/model/User.js +8 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -740,7 +740,7 @@ export declare class Book {
|
|
|
740
740
|
*
|
|
741
741
|
* @returns This Book, for chainning.
|
|
742
742
|
*/
|
|
743
|
-
setLockDate(lockDate: string): Book;
|
|
743
|
+
setLockDate(lockDate: string | null): Book;
|
|
744
744
|
/**
|
|
745
745
|
* @returns The closing date of the Book in ISO format yyyy-MM-dd
|
|
746
746
|
*/
|
|
@@ -751,7 +751,7 @@ export declare class Book {
|
|
|
751
751
|
*
|
|
752
752
|
* @returns This Book, for chainning.
|
|
753
753
|
*/
|
|
754
|
-
setClosingDate(closingDate: string): Book;
|
|
754
|
+
setClosingDate(closingDate: string | null): Book;
|
|
755
755
|
/**
|
|
756
756
|
* @returns The decimal separator of the Book
|
|
757
757
|
*/
|
|
@@ -2311,6 +2311,12 @@ export declare class User {
|
|
|
2311
2311
|
* @returns True if the User is in the free plan
|
|
2312
2312
|
*/
|
|
2313
2313
|
isFree(): boolean | undefined;
|
|
2314
|
+
/**
|
|
2315
|
+
* Tells if billing is enabled for the User.
|
|
2316
|
+
*
|
|
2317
|
+
* @returns True if billing is enabled for the User
|
|
2318
|
+
*/
|
|
2319
|
+
hasBillingEnabled(): boolean | undefined;
|
|
2314
2320
|
/**
|
|
2315
2321
|
* Tells if the User has started the trial.
|
|
2316
2322
|
*
|
package/lib/model/User.js
CHANGED
|
@@ -73,6 +73,14 @@ export class User {
|
|
|
73
73
|
isFree() {
|
|
74
74
|
return this.payload.free;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Tells if billing is enabled for the User.
|
|
78
|
+
*
|
|
79
|
+
* @returns True if billing is enabled for the User
|
|
80
|
+
*/
|
|
81
|
+
hasBillingEnabled() {
|
|
82
|
+
return this.payload.billingEnabled;
|
|
83
|
+
}
|
|
76
84
|
/**
|
|
77
85
|
* Tells if the User has started the trial.
|
|
78
86
|
*
|