@voyantjs/finance-react 0.16.0 → 0.17.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function usePublicVoucherValidationMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
2
2
|
data: {
|
|
3
3
|
valid: boolean;
|
|
4
|
-
reason: "expired" | "inactive" | "
|
|
4
|
+
reason: "expired" | "inactive" | "not_found" | "not_started" | "booking_mismatch" | "currency_mismatch" | "insufficient_balance" | null;
|
|
5
5
|
voucher: {
|
|
6
6
|
id: string;
|
|
7
7
|
code: string;
|
package/dist/operations.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
|
|
|
204
204
|
export declare function validatePublicVoucher(client: FetchWithValidationOptions, input: PublicValidateVoucherInput): Promise<{
|
|
205
205
|
data: {
|
|
206
206
|
valid: boolean;
|
|
207
|
-
reason: "expired" | "inactive" | "
|
|
207
|
+
reason: "expired" | "inactive" | "not_found" | "not_started" | "booking_mismatch" | "currency_mismatch" | "insufficient_balance" | null;
|
|
208
208
|
voucher: {
|
|
209
209
|
id: string;
|
|
210
210
|
code: string;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -697,11 +697,11 @@ export declare const publicVoucherValidationResponse: z.ZodObject<{
|
|
|
697
697
|
reason: z.ZodNullable<z.ZodEnum<{
|
|
698
698
|
expired: "expired";
|
|
699
699
|
inactive: "inactive";
|
|
700
|
-
insufficient_balance: "insufficient_balance";
|
|
701
700
|
not_found: "not_found";
|
|
702
701
|
not_started: "not_started";
|
|
703
702
|
booking_mismatch: "booking_mismatch";
|
|
704
703
|
currency_mismatch: "currency_mismatch";
|
|
704
|
+
insufficient_balance: "insufficient_balance";
|
|
705
705
|
}>>;
|
|
706
706
|
voucher: z.ZodNullable<z.ZodObject<{
|
|
707
707
|
id: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/finance-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react": "^19.0.0",
|
|
37
37
|
"react-dom": "^19.0.0",
|
|
38
38
|
"zod": "^4.0.0",
|
|
39
|
-
"@voyantjs/finance": "0.
|
|
39
|
+
"@voyantjs/finance": "0.17.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"typescript": "^6.0.2",
|
|
48
48
|
"vitest": "^4.1.2",
|
|
49
49
|
"zod": "^4.3.6",
|
|
50
|
-
"@voyantjs/finance": "0.
|
|
51
|
-
"@voyantjs/react": "0.
|
|
50
|
+
"@voyantjs/finance": "0.17.0",
|
|
51
|
+
"@voyantjs/react": "0.17.0",
|
|
52
52
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@voyantjs/react": "0.
|
|
55
|
+
"@voyantjs/react": "0.17.0"
|
|
56
56
|
},
|
|
57
57
|
"files": [
|
|
58
58
|
"dist"
|