@lavapayments/nodejs 2.3.0 → 2.5.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 +8 -3
- package/dist/index.d.ts +8 -3
- package/package.json +1 -1
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,16 +156,17 @@ 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;
|
|
158
|
-
connection_id
|
|
159
|
-
product_id
|
|
163
|
+
connection_id?: string;
|
|
164
|
+
product_id?: string;
|
|
160
165
|
provider: string;
|
|
161
166
|
provider_key_type: "managed" | "unmanaged";
|
|
162
167
|
model: string;
|
|
163
168
|
endpoint: string;
|
|
164
|
-
response_id
|
|
169
|
+
response_id?: string;
|
|
165
170
|
model_usage: ModelUsage;
|
|
166
171
|
fee: Fee;
|
|
167
172
|
service_charge: ServiceCharge;
|
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,16 +156,17 @@ 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;
|
|
158
|
-
connection_id
|
|
159
|
-
product_id
|
|
163
|
+
connection_id?: string;
|
|
164
|
+
product_id?: string;
|
|
160
165
|
provider: string;
|
|
161
166
|
provider_key_type: "managed" | "unmanaged";
|
|
162
167
|
model: string;
|
|
163
168
|
endpoint: string;
|
|
164
|
-
response_id
|
|
169
|
+
response_id?: string;
|
|
165
170
|
model_usage: ModelUsage;
|
|
166
171
|
fee: Fee;
|
|
167
172
|
service_charge: ServiceCharge;
|