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 +3 -0
- package/lib/index.d.ts +8 -0
- package/lib/model/Billing.js +2 -0
- package/lib/model/User.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
*
|
package/lib/model/Billing.js
CHANGED
|
@@ -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
|
*
|