bkper-js 1.19.4 → 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 CHANGED
@@ -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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.19.4",
3
+ "version": "1.20.0",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",