@vulog/aima-payment 1.2.38 → 1.2.40
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.cts +10 -34
- package/dist/index.d.mts +10 -34
- package/package.json +5 -5
- package/tsconfig.json +1 -8
- package/vitest.config.ts +1 -8
package/dist/index.d.cts
CHANGED
|
@@ -157,42 +157,18 @@ declare const schema: z.ZodObject<{
|
|
|
157
157
|
tripId: z.ZodString;
|
|
158
158
|
body: z.ZodObject<{
|
|
159
159
|
online: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
-
scope: z.ZodOptional<z.ZodEnum<
|
|
161
|
-
|
|
160
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
RENTAL: "RENTAL";
|
|
162
|
+
DEPOSIT: "DEPOSIT";
|
|
163
|
+
}>>;
|
|
164
|
+
amountType: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
FIXED: "FIXED";
|
|
166
|
+
PERCENTAGE: "PERCENTAGE";
|
|
167
|
+
}>>;
|
|
162
168
|
amountValue: z.ZodNumber;
|
|
163
169
|
useSystemCredit: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
online?: boolean | undefined;
|
|
167
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
168
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
169
|
-
useSystemCredit?: boolean | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
amountValue: number;
|
|
172
|
-
online?: boolean | undefined;
|
|
173
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
174
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
175
|
-
useSystemCredit?: boolean | undefined;
|
|
176
|
-
}>;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
tripId: string;
|
|
179
|
-
body: {
|
|
180
|
-
amountValue: number;
|
|
181
|
-
online?: boolean | undefined;
|
|
182
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
183
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
184
|
-
useSystemCredit?: boolean | undefined;
|
|
185
|
-
};
|
|
186
|
-
}, {
|
|
187
|
-
tripId: string;
|
|
188
|
-
body: {
|
|
189
|
-
amountValue: number;
|
|
190
|
-
online?: boolean | undefined;
|
|
191
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
192
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
193
|
-
useSystemCredit?: boolean | undefined;
|
|
194
|
-
};
|
|
195
|
-
}>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
}, z.core.$strip>;
|
|
196
172
|
declare const payATrip: (client: Client, tripId: string, body: z.infer<typeof schema>["body"]) => Promise<TripPayment>;
|
|
197
173
|
//#endregion
|
|
198
174
|
export { BrowserInfos, PaymentDetail, SetupIntent, SynchronizeResponse, TripPayment, getPaymentMethodDetailsForUser, getSetupIntent, getSynchronize, payATrip };
|
package/dist/index.d.mts
CHANGED
|
@@ -157,42 +157,18 @@ declare const schema: z.ZodObject<{
|
|
|
157
157
|
tripId: z.ZodString;
|
|
158
158
|
body: z.ZodObject<{
|
|
159
159
|
online: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
-
scope: z.ZodOptional<z.ZodEnum<
|
|
161
|
-
|
|
160
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
RENTAL: "RENTAL";
|
|
162
|
+
DEPOSIT: "DEPOSIT";
|
|
163
|
+
}>>;
|
|
164
|
+
amountType: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
FIXED: "FIXED";
|
|
166
|
+
PERCENTAGE: "PERCENTAGE";
|
|
167
|
+
}>>;
|
|
162
168
|
amountValue: z.ZodNumber;
|
|
163
169
|
useSystemCredit: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
online?: boolean | undefined;
|
|
167
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
168
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
169
|
-
useSystemCredit?: boolean | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
amountValue: number;
|
|
172
|
-
online?: boolean | undefined;
|
|
173
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
174
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
175
|
-
useSystemCredit?: boolean | undefined;
|
|
176
|
-
}>;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
tripId: string;
|
|
179
|
-
body: {
|
|
180
|
-
amountValue: number;
|
|
181
|
-
online?: boolean | undefined;
|
|
182
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
183
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
184
|
-
useSystemCredit?: boolean | undefined;
|
|
185
|
-
};
|
|
186
|
-
}, {
|
|
187
|
-
tripId: string;
|
|
188
|
-
body: {
|
|
189
|
-
amountValue: number;
|
|
190
|
-
online?: boolean | undefined;
|
|
191
|
-
scope?: "RENTAL" | "DEPOSIT" | undefined;
|
|
192
|
-
amountType?: "FIXED" | "PERCENTAGE" | undefined;
|
|
193
|
-
useSystemCredit?: boolean | undefined;
|
|
194
|
-
};
|
|
195
|
-
}>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
}, z.core.$strip>;
|
|
196
172
|
declare const payATrip: (client: Client, tripId: string, body: z.infer<typeof schema>["body"]) => Promise<TripPayment>;
|
|
197
173
|
//#endregion
|
|
198
174
|
export { BrowserInfos, PaymentDetail, SetupIntent, SynchronizeResponse, TripPayment, getPaymentMethodDetailsForUser, getSetupIntent, getSynchronize, payATrip };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulog/aima-payment",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.40",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.cts",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"author": "Vulog",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vulog/aima-client": "1.2.
|
|
36
|
-
"@vulog/aima-core": "1.2.
|
|
35
|
+
"@vulog/aima-client": "1.2.40",
|
|
36
|
+
"@vulog/aima-core": "1.2.40"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"zod": "^3.
|
|
39
|
+
"zod": "^4.3.6"
|
|
40
40
|
},
|
|
41
41
|
"description": ""
|
|
42
|
-
}
|
|
42
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
2
3
|
"include": ["src"],
|
|
3
4
|
"exclude": ["**/*.test.ts"],
|
|
4
5
|
"compilerOptions": {
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"target": "esnext",
|
|
7
|
-
"lib": ["esnext"],
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
6
|
"outDir": "dist",
|
|
14
7
|
"rootDir": "src"
|
|
15
8
|
}
|