@lavapayments/nodejs 2.2.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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,11 @@ interface Config {
|
|
|
10
10
|
type ForwardTokenOptions = {
|
|
11
11
|
connection_secret: string;
|
|
12
12
|
product_secret: string;
|
|
13
|
+
provider_key?: string;
|
|
14
|
+
} | {
|
|
15
|
+
connection_secret: null;
|
|
16
|
+
product_secret: null;
|
|
17
|
+
provider_key: string;
|
|
13
18
|
};
|
|
14
19
|
declare class Lava {
|
|
15
20
|
private readonly secretKey;
|
|
@@ -151,6 +156,7 @@ interface Fee {
|
|
|
151
156
|
}
|
|
152
157
|
interface ServiceCharge {
|
|
153
158
|
amount: string;
|
|
159
|
+
payer: "wallet" | "merchant";
|
|
154
160
|
}
|
|
155
161
|
interface Request {
|
|
156
162
|
request_id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ interface Config {
|
|
|
10
10
|
type ForwardTokenOptions = {
|
|
11
11
|
connection_secret: string;
|
|
12
12
|
product_secret: string;
|
|
13
|
+
provider_key?: string;
|
|
14
|
+
} | {
|
|
15
|
+
connection_secret: null;
|
|
16
|
+
product_secret: null;
|
|
17
|
+
provider_key: string;
|
|
13
18
|
};
|
|
14
19
|
declare class Lava {
|
|
15
20
|
private readonly secretKey;
|
|
@@ -151,6 +156,7 @@ interface Fee {
|
|
|
151
156
|
}
|
|
152
157
|
interface ServiceCharge {
|
|
153
158
|
amount: string;
|
|
159
|
+
payer: "wallet" | "merchant";
|
|
154
160
|
}
|
|
155
161
|
interface Request {
|
|
156
162
|
request_id: string;
|
package/dist/index.js
CHANGED
|
@@ -226,7 +226,8 @@ var Lava = class {
|
|
|
226
226
|
const tokenData = {
|
|
227
227
|
secret_key: this.secretKey,
|
|
228
228
|
connection_secret: options.connection_secret,
|
|
229
|
-
product_secret: options.product_secret
|
|
229
|
+
product_secret: options.product_secret,
|
|
230
|
+
provider_key: options.provider_key
|
|
230
231
|
};
|
|
231
232
|
return Buffer.from(JSON.stringify(tokenData)).toString("base64");
|
|
232
233
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -199,7 +199,8 @@ var Lava = class {
|
|
|
199
199
|
const tokenData = {
|
|
200
200
|
secret_key: this.secretKey,
|
|
201
201
|
connection_secret: options.connection_secret,
|
|
202
|
-
product_secret: options.product_secret
|
|
202
|
+
product_secret: options.product_secret,
|
|
203
|
+
provider_key: options.provider_key
|
|
203
204
|
};
|
|
204
205
|
return Buffer.from(JSON.stringify(tokenData)).toString("base64");
|
|
205
206
|
}
|