bkper-js 2.40.0 → 2.40.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 CHANGED
@@ -4368,6 +4368,12 @@ export declare class User extends Resource<bkper.User> {
4368
4368
  * @returns The User's hosted domain
4369
4369
  */
4370
4370
  getHostedDomain(): string | undefined;
4371
+ /**
4372
+ * Gets the billing cycle of the User's current plan.
4373
+ *
4374
+ * @returns The User's plan billing cycle
4375
+ */
4376
+ getPlanCycle(): 'MONTHLY' | 'YEARLY' | undefined;
4371
4377
  /**
4372
4378
  * Gets the username of the User.
4373
4379
  *
package/lib/model/User.js CHANGED
@@ -87,6 +87,14 @@ export class User extends Resource {
87
87
  getHostedDomain() {
88
88
  return this.payload.hostedDomain;
89
89
  }
90
+ /**
91
+ * Gets the billing cycle of the User's current plan.
92
+ *
93
+ * @returns The User's plan billing cycle
94
+ */
95
+ getPlanCycle() {
96
+ return this.payload.planCycle;
97
+ }
90
98
  /**
91
99
  * Gets the username of the User.
92
100
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "2.40.0",
3
+ "version": "2.40.2",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -38,7 +38,7 @@
38
38
  "release:major": "npm version major -m \"chore(release): v%s\""
39
39
  },
40
40
  "dependencies": {
41
- "@bkper/bkper-api-types": "^5.42.0",
41
+ "@bkper/bkper-api-types": "^5.43.1",
42
42
  "big.js": "^6.0.3",
43
43
  "dayjs": "^1.10.3",
44
44
  "luxon": "^1.25.0",