@nvwa-app/sdk-functions 6.32.0 → 6.34.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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,6 +32,8 @@ interface CreateOrderParams {
|
|
|
32
32
|
amount: number;
|
|
33
33
|
currency?: string;
|
|
34
34
|
providerId: string;
|
|
35
|
+
/** Unified payer identity for mini program providers (mapped by gateway). */
|
|
36
|
+
platformUserId?: string;
|
|
35
37
|
clientIp?: string;
|
|
36
38
|
returnUrl?: string;
|
|
37
39
|
successNotifyUrl: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ interface CreateOrderParams {
|
|
|
32
32
|
amount: number;
|
|
33
33
|
currency?: string;
|
|
34
34
|
providerId: string;
|
|
35
|
+
/** Unified payer identity for mini program providers (mapped by gateway). */
|
|
36
|
+
platformUserId?: string;
|
|
35
37
|
clientIp?: string;
|
|
36
38
|
returnUrl?: string;
|
|
37
39
|
successNotifyUrl: string;
|
package/dist/index.js
CHANGED
|
@@ -231,6 +231,7 @@ function createPaymentClient(options) {
|
|
|
231
231
|
amount: params.amount,
|
|
232
232
|
currency: params.currency ?? "cny",
|
|
233
233
|
providerId: params.providerId,
|
|
234
|
+
platformUserId: params.platformUserId,
|
|
234
235
|
clientIp: params.clientIp,
|
|
235
236
|
returnUrl: params.returnUrl,
|
|
236
237
|
successNotifyUrl: params.successNotifyUrl,
|
package/dist/index.mjs
CHANGED
|
@@ -183,6 +183,7 @@ function createPaymentClient(options) {
|
|
|
183
183
|
amount: params.amount,
|
|
184
184
|
currency: params.currency ?? "cny",
|
|
185
185
|
providerId: params.providerId,
|
|
186
|
+
platformUserId: params.platformUserId,
|
|
186
187
|
clientIp: params.clientIp,
|
|
187
188
|
returnUrl: params.returnUrl,
|
|
188
189
|
successNotifyUrl: params.successNotifyUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nvwa-app/sdk-functions",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.34.0",
|
|
4
4
|
"description": "NVWA Edge Functions SDK: db, payment gateway, auth, provider list. Use in Deno: import from 'npm:@nvwa-app/sdk-functions'.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|