bkper-js 2.27.0 → 2.28.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/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ See what's new and what has changed in bkper-js
4
4
 
5
5
  ## 2026
6
6
 
7
+ **February 2026**
8
+ - Added `User.getGivenName`
9
+
7
10
  **January 2026**
8
11
  - Added `App.setUsers`
9
12
  - Added `App.getUsers`
package/lib/index.d.ts CHANGED
@@ -1248,6 +1248,8 @@ export declare class Billing extends Resource<bkper.Billing> {
1248
1248
  * Gets the URL to redirect the User to the billing checkout.
1249
1249
  *
1250
1250
  * @param plan - The plan to checkout
1251
+ * @param successUrl - The URL to redirect to after the User has successfully checked out
1252
+ * @param cancelUrl - The URL to redirect to in case the checkout is cancelled
1251
1253
  *
1252
1254
  * @returns The URL to redirect the User to the billing checkout
1253
1255
  */
@@ -3753,6 +3755,12 @@ export declare class User extends Resource<bkper.User> {
3753
3755
  * @returns The User's id
3754
3756
  */
3755
3757
  getId(): string | undefined;
3758
+ /**
3759
+ * Gets the given name of the User.
3760
+ *
3761
+ * @returns The User's given name
3762
+ */
3763
+ getGivenName(): string | undefined;
3756
3764
  /**
3757
3765
  * Gets the name of the User.
3758
3766
  *
@@ -134,6 +134,8 @@ export class Billing extends Resource {
134
134
  * Gets the URL to redirect the User to the billing checkout.
135
135
  *
136
136
  * @param plan - The plan to checkout
137
+ * @param successUrl - The URL to redirect to after the User has successfully checked out
138
+ * @param cancelUrl - The URL to redirect to in case the checkout is cancelled
137
139
  *
138
140
  * @returns The URL to redirect the User to the billing checkout
139
141
  */
package/lib/model/User.js CHANGED
@@ -39,6 +39,14 @@ export class User extends Resource {
39
39
  getId() {
40
40
  return this.payload.id;
41
41
  }
42
+ /**
43
+ * Gets the given name of the User.
44
+ *
45
+ * @returns The User's given name
46
+ */
47
+ getGivenName() {
48
+ return this.payload.givenName;
49
+ }
42
50
  /**
43
51
  * Gets the name of the User.
44
52
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "2.27.0",
3
+ "version": "2.28.0",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",