backprompter-server-sdk 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -379,4 +379,11 @@ export class BackprompterUser {
379
379
  body: JSON.stringify({ successUrl, cancelUrl })
380
380
  });
381
381
  }
382
+
383
+ createBillingPortalSession({ returnUrl } = {}) {
384
+ return this._fetch('billing-portal', {
385
+ method: 'POST',
386
+ body: JSON.stringify({ returnUrl })
387
+ });
388
+ }
382
389
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backprompter-server-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Backprompter server-side SDK for Node.js backends",
5
5
  "type": "module",
6
6
  "main": "index.js",