lark-billing 0.1.3 → 0.1.4

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.
@@ -53,8 +53,8 @@ class LarkClient {
53
53
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "lark-billing",
56
- "X-Fern-SDK-Version": "0.1.3",
57
- "User-Agent": "lark-billing/0.1.3",
56
+ "X-Fern-SDK-Version": "0.1.4",
57
+ "User-Agent": "lark-billing/0.1.4",
58
58
  "X-Fern-Runtime": core.RUNTIME.type,
59
59
  "X-Fern-Runtime-Version": core.RUNTIME.version,
60
60
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -37,7 +37,8 @@ export declare class CustomerPortal {
37
37
  *
38
38
  * @example
39
39
  * await client.customerPortal.createCustomerPortalSession({
40
- * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
40
+ * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
41
+ * return_url: "https://example.com/dashboard"
41
42
  * })
42
43
  */
43
44
  createCustomerPortalSession(request: Lark.CreateCustomerPortalSessionRequest, requestOptions?: CustomerPortal.RequestOptions): core.HttpResponsePromise<Lark.CreateCustomerPortalSessionResponse>;
@@ -63,7 +63,8 @@ class CustomerPortal {
63
63
  *
64
64
  * @example
65
65
  * await client.customerPortal.createCustomerPortalSession({
66
- * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
66
+ * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
67
+ * return_url: "https://example.com/dashboard"
67
68
  * })
68
69
  */
69
70
  createCustomerPortalSession(request, requestOptions) {
@@ -4,10 +4,13 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
7
+ * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
8
+ * return_url: "https://example.com/dashboard"
8
9
  * }
9
10
  */
10
11
  export interface CreateCustomerPortalSessionRequest {
11
12
  /** The ID or external ID of the subject to create the customer portal session for. */
12
13
  subject_id: string;
14
+ /** The URL to redirect customers to if they click the back button on the customer portal. */
15
+ return_url: string;
13
16
  }
@@ -37,10 +37,10 @@ export declare class UsageEvents {
37
37
  *
38
38
  * @example
39
39
  * await client.usageEvents.createUsageEvent({
40
- * idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
40
+ * idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
41
41
  * event_name: "compute_hours",
42
42
  * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
43
- * timestamp: "2025-11-06T20:22:47Z",
43
+ * timestamp: "2025-11-06T21:43:48Z",
44
44
  * data: {
45
45
  * "compute_hours": 100,
46
46
  * "instance_type": "t2.micro",
@@ -63,10 +63,10 @@ class UsageEvents {
63
63
  *
64
64
  * @example
65
65
  * await client.usageEvents.createUsageEvent({
66
- * idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
66
+ * idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
67
67
  * event_name: "compute_hours",
68
68
  * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
69
- * timestamp: "2025-11-06T20:22:47Z",
69
+ * timestamp: "2025-11-06T21:43:48Z",
70
70
  * data: {
71
71
  * "compute_hours": 100,
72
72
  * "instance_type": "t2.micro",
@@ -4,10 +4,10 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
7
+ * idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
8
8
  * event_name: "compute_hours",
9
9
  * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
10
- * timestamp: "2025-11-06T20:22:47Z",
10
+ * timestamp: "2025-11-06T21:43:48Z",
11
11
  * data: {
12
12
  * "compute_hours": 100,
13
13
  * "instance_type": "t2.micro",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.3";
1
+ export declare const SDK_VERSION = "0.1.4";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.3";
4
+ exports.SDK_VERSION = "0.1.4";
@@ -17,8 +17,8 @@ export class LarkClient {
17
17
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
18
18
  "X-Fern-Language": "JavaScript",
19
19
  "X-Fern-SDK-Name": "lark-billing",
20
- "X-Fern-SDK-Version": "0.1.3",
21
- "User-Agent": "lark-billing/0.1.3",
20
+ "X-Fern-SDK-Version": "0.1.4",
21
+ "User-Agent": "lark-billing/0.1.4",
22
22
  "X-Fern-Runtime": core.RUNTIME.type,
23
23
  "X-Fern-Runtime-Version": core.RUNTIME.version,
24
24
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -37,7 +37,8 @@ export declare class CustomerPortal {
37
37
  *
38
38
  * @example
39
39
  * await client.customerPortal.createCustomerPortalSession({
40
- * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
40
+ * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
41
+ * return_url: "https://example.com/dashboard"
41
42
  * })
42
43
  */
43
44
  createCustomerPortalSession(request: Lark.CreateCustomerPortalSessionRequest, requestOptions?: CustomerPortal.RequestOptions): core.HttpResponsePromise<Lark.CreateCustomerPortalSessionResponse>;
@@ -27,7 +27,8 @@ export class CustomerPortal {
27
27
  *
28
28
  * @example
29
29
  * await client.customerPortal.createCustomerPortalSession({
30
- * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
30
+ * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
31
+ * return_url: "https://example.com/dashboard"
31
32
  * })
32
33
  */
33
34
  createCustomerPortalSession(request, requestOptions) {
@@ -4,10 +4,13 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
7
+ * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
8
+ * return_url: "https://example.com/dashboard"
8
9
  * }
9
10
  */
10
11
  export interface CreateCustomerPortalSessionRequest {
11
12
  /** The ID or external ID of the subject to create the customer portal session for. */
12
13
  subject_id: string;
14
+ /** The URL to redirect customers to if they click the back button on the customer portal. */
15
+ return_url: string;
13
16
  }
@@ -37,10 +37,10 @@ export declare class UsageEvents {
37
37
  *
38
38
  * @example
39
39
  * await client.usageEvents.createUsageEvent({
40
- * idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
40
+ * idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
41
41
  * event_name: "compute_hours",
42
42
  * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
43
- * timestamp: "2025-11-06T20:22:47Z",
43
+ * timestamp: "2025-11-06T21:43:48Z",
44
44
  * data: {
45
45
  * "compute_hours": 100,
46
46
  * "instance_type": "t2.micro",
@@ -27,10 +27,10 @@ export class UsageEvents {
27
27
  *
28
28
  * @example
29
29
  * await client.usageEvents.createUsageEvent({
30
- * idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
30
+ * idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
31
31
  * event_name: "compute_hours",
32
32
  * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
33
- * timestamp: "2025-11-06T20:22:47Z",
33
+ * timestamp: "2025-11-06T21:43:48Z",
34
34
  * data: {
35
35
  * "compute_hours": 100,
36
36
  * "instance_type": "t2.micro",
@@ -4,10 +4,10 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
7
+ * idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
8
8
  * event_name: "compute_hours",
9
9
  * subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
10
- * timestamp: "2025-11-06T20:22:47Z",
10
+ * timestamp: "2025-11-06T21:43:48Z",
11
11
  * data: {
12
12
  * "compute_hours": 100,
13
13
  * "instance_type": "t2.micro",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.3";
1
+ export declare const SDK_VERSION = "0.1.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.3";
1
+ export const SDK_VERSION = "0.1.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lark-billing",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "repository": "github:fern-demo/lark-ts-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -74,6 +74,7 @@ await client.checkout.createSubscriptionCheckoutSession({
74
74
  ```typescript
75
75
  await client.customerPortal.createCustomerPortalSession({
76
76
  subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
77
+ return_url: "https://example.com/dashboard",
77
78
  });
78
79
  ```
79
80
 
@@ -306,10 +307,10 @@ await client.rateCards.getRateCard("rate_card_id");
306
307
 
307
308
  ```typescript
308
309
  await client.usageEvents.createUsageEvent({
309
- idempotency_key: "cdd158d3-c865-4dc3-a652-053d81906a30",
310
+ idempotency_key: "4a1d819c-7d3e-47cf-bc06-ecb185702540",
310
311
  event_name: "compute_hours",
311
312
  subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
312
- timestamp: "2025-11-06T20:22:47Z",
313
+ timestamp: "2025-11-06T21:43:48Z",
313
314
  data: {
314
315
  compute_hours: 100,
315
316
  instance_type: "t2.micro",