@lavapayments/nodejs 2.3.0 → 2.4.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/dist/index.d.mts CHANGED
@@ -11,6 +11,10 @@ type ForwardTokenOptions = {
11
11
  connection_secret: string;
12
12
  product_secret: string;
13
13
  provider_key?: string;
14
+ } | {
15
+ connection_secret: null;
16
+ product_secret: null;
17
+ provider_key: string;
14
18
  };
15
19
  declare class Lava {
16
20
  private readonly secretKey;
@@ -152,6 +156,7 @@ interface Fee {
152
156
  }
153
157
  interface ServiceCharge {
154
158
  amount: string;
159
+ payer: "wallet" | "merchant";
155
160
  }
156
161
  interface Request {
157
162
  request_id: string;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,10 @@ type ForwardTokenOptions = {
11
11
  connection_secret: string;
12
12
  product_secret: string;
13
13
  provider_key?: string;
14
+ } | {
15
+ connection_secret: null;
16
+ product_secret: null;
17
+ provider_key: string;
14
18
  };
15
19
  declare class Lava {
16
20
  private readonly secretKey;
@@ -152,6 +156,7 @@ interface Fee {
152
156
  }
153
157
  interface ServiceCharge {
154
158
  amount: string;
159
+ payer: "wallet" | "merchant";
155
160
  }
156
161
  interface Request {
157
162
  request_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavapayments/nodejs",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Backend SDK for Lava Payments API - enabling usage-based billing for AI services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",