@voyantjs/finance-react 0.28.3 → 0.30.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.
@@ -8,7 +8,7 @@ export declare function useBookingGuarantees(bookingId: string | null | undefine
8
8
  bookingPaymentScheduleId: string | null;
9
9
  bookingItemId: string | null;
10
10
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
11
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
11
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
12
12
  currency: string | null;
13
13
  amountCents: number | null;
14
14
  provider: string | null;
@@ -42,7 +42,7 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
42
42
  bookingPaymentScheduleId: string | null;
43
43
  bookingItemId: string | null;
44
44
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
45
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
45
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
46
46
  currency: string | null;
47
47
  amountCents: number | null;
48
48
  provider: string | null;
@@ -60,7 +60,7 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
60
60
  bookingPaymentScheduleId: string | null;
61
61
  bookingItemId: string | null;
62
62
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
63
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
63
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
64
64
  currency: string | null;
65
65
  amountCents: number | null;
66
66
  provider: string | null;
@@ -7,7 +7,7 @@ export declare function useBookingPaymentSchedules(bookingId: string | null | un
7
7
  bookingId: string;
8
8
  bookingItemId: string | null;
9
9
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
10
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
10
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
11
11
  dueDate: string;
12
12
  currency: string;
13
13
  amountCents: number;
@@ -32,7 +32,7 @@ export declare function useBookingPaymentScheduleMutation(bookingId: string): {
32
32
  bookingId: string;
33
33
  bookingItemId: string | null;
34
34
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
35
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
35
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
36
36
  dueDate: string;
37
37
  currency: string;
38
38
  amountCents: number;
@@ -45,7 +45,7 @@ export declare function useBookingPaymentScheduleMutation(bookingId: string): {
45
45
  bookingId: string;
46
46
  bookingItemId: string | null;
47
47
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
48
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
48
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
49
49
  dueDate: string;
50
50
  currency: string;
51
51
  amountCents: number;
@@ -20,7 +20,7 @@ export declare function usePublicBookingPaymentOptions(bookingId: string | null
20
20
  schedules: {
21
21
  id: string;
22
22
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
23
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
23
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
24
24
  dueDate: string;
25
25
  currency: string;
26
26
  amountCents: number;
@@ -19,7 +19,7 @@ export declare function usePublicPaymentSessionMutation(): import("@tanstack/rea
19
19
  invoiceId: string | null;
20
20
  bookingPaymentScheduleId: string | null;
21
21
  bookingGuaranteeId: string | null;
22
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
22
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
23
23
  provider: string | null;
24
24
  providerSessionId: string | null;
25
25
  providerPaymentId: string | null;
@@ -10,7 +10,7 @@ export declare function usePublicPaymentSession(sessionId: string | null | undef
10
10
  invoiceId: string | null;
11
11
  bookingPaymentScheduleId: string | null;
12
12
  bookingGuaranteeId: string | null;
13
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
13
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
14
14
  provider: string | null;
15
15
  providerSessionId: string | null;
16
16
  providerPaymentId: string | null;
@@ -114,7 +114,7 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
114
114
  schedules: {
115
115
  id: string;
116
116
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
117
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
117
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
118
118
  dueDate: string;
119
119
  currency: string;
120
120
  amountCents: number;
@@ -147,7 +147,7 @@ export declare function getPublicPaymentSession(client: FetchWithValidationOptio
147
147
  invoiceId: string | null;
148
148
  bookingPaymentScheduleId: string | null;
149
149
  bookingGuaranteeId: string | null;
150
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
150
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
151
151
  provider: string | null;
152
152
  providerSessionId: string | null;
153
153
  providerPaymentId: string | null;
@@ -177,7 +177,7 @@ export declare function startPublicBookingSchedulePaymentSession(client: FetchWi
177
177
  invoiceId: string | null;
178
178
  bookingPaymentScheduleId: string | null;
179
179
  bookingGuaranteeId: string | null;
180
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
180
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
181
181
  provider: string | null;
182
182
  providerSessionId: string | null;
183
183
  providerPaymentId: string | null;
@@ -207,7 +207,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
207
207
  invoiceId: string | null;
208
208
  bookingPaymentScheduleId: string | null;
209
209
  bookingGuaranteeId: string | null;
210
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
210
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
211
211
  provider: string | null;
212
212
  providerSessionId: string | null;
213
213
  providerPaymentId: string | null;
@@ -23,7 +23,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
23
23
  bookingId: string;
24
24
  bookingItemId: string | null;
25
25
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
26
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
26
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
27
27
  dueDate: string;
28
28
  currency: string;
29
29
  amountCents: number;
@@ -37,7 +37,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
37
37
  bookingId: string;
38
38
  bookingItemId: string | null;
39
39
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
40
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
40
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
41
41
  dueDate: string;
42
42
  currency: string;
43
43
  amountCents: number;
@@ -52,7 +52,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
52
52
  bookingId: string;
53
53
  bookingItemId: string | null;
54
54
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
55
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
55
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
56
56
  dueDate: string;
57
57
  currency: string;
58
58
  amountCents: number;
@@ -69,7 +69,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
69
69
  bookingId: string;
70
70
  bookingItemId: string | null;
71
71
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
72
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
72
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
73
73
  dueDate: string;
74
74
  currency: string;
75
75
  amountCents: number;
@@ -88,7 +88,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
88
88
  bookingPaymentScheduleId: string | null;
89
89
  bookingItemId: string | null;
90
90
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
91
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
91
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
92
92
  currency: string | null;
93
93
  amountCents: number | null;
94
94
  provider: string | null;
@@ -107,7 +107,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
107
107
  bookingPaymentScheduleId: string | null;
108
108
  bookingItemId: string | null;
109
109
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
110
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
110
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
111
111
  currency: string | null;
112
112
  amountCents: number | null;
113
113
  provider: string | null;
@@ -127,7 +127,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
127
127
  bookingPaymentScheduleId: string | null;
128
128
  bookingItemId: string | null;
129
129
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
130
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
130
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
131
131
  currency: string | null;
132
132
  amountCents: number | null;
133
133
  provider: string | null;
@@ -149,7 +149,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
149
149
  bookingPaymentScheduleId: string | null;
150
150
  bookingItemId: string | null;
151
151
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
152
- status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
152
+ status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
153
153
  currency: string | null;
154
154
  amountCents: number | null;
155
155
  provider: string | null;
@@ -911,7 +911,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
911
911
  schedules: {
912
912
  id: string;
913
913
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
914
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
914
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
915
915
  dueDate: string;
916
916
  currency: string;
917
917
  amountCents: number;
@@ -952,7 +952,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
952
952
  schedules: {
953
953
  id: string;
954
954
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
955
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
955
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
956
956
  dueDate: string;
957
957
  currency: string;
958
958
  amountCents: number;
@@ -994,7 +994,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
994
994
  schedules: {
995
995
  id: string;
996
996
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
997
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
997
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
998
998
  dueDate: string;
999
999
  currency: string;
1000
1000
  amountCents: number;
@@ -1038,7 +1038,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
1038
1038
  schedules: {
1039
1039
  id: string;
1040
1040
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1041
- status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
1041
+ status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
1042
1042
  dueDate: string;
1043
1043
  currency: string;
1044
1044
  amountCents: number;
@@ -1426,7 +1426,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1426
1426
  invoiceId: string | null;
1427
1427
  bookingPaymentScheduleId: string | null;
1428
1428
  bookingGuaranteeId: string | null;
1429
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1429
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1430
1430
  provider: string | null;
1431
1431
  providerSessionId: string | null;
1432
1432
  providerPaymentId: string | null;
@@ -1455,7 +1455,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1455
1455
  invoiceId: string | null;
1456
1456
  bookingPaymentScheduleId: string | null;
1457
1457
  bookingGuaranteeId: string | null;
1458
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1458
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1459
1459
  provider: string | null;
1460
1460
  providerSessionId: string | null;
1461
1461
  providerPaymentId: string | null;
@@ -1485,7 +1485,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1485
1485
  invoiceId: string | null;
1486
1486
  bookingPaymentScheduleId: string | null;
1487
1487
  bookingGuaranteeId: string | null;
1488
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1488
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1489
1489
  provider: string | null;
1490
1490
  providerSessionId: string | null;
1491
1491
  providerPaymentId: string | null;
@@ -1517,7 +1517,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1517
1517
  invoiceId: string | null;
1518
1518
  bookingPaymentScheduleId: string | null;
1519
1519
  bookingGuaranteeId: string | null;
1520
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1520
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1521
1521
  provider: string | null;
1522
1522
  providerSessionId: string | null;
1523
1523
  providerPaymentId: string | null;
package/dist/schemas.d.ts CHANGED
@@ -191,8 +191,8 @@ export declare const paymentScheduleTypeSchema: z.ZodEnum<{
191
191
  }>;
192
192
  export declare const paymentScheduleStatusSchema: z.ZodEnum<{
193
193
  pending: "pending";
194
- expired: "expired";
195
194
  cancelled: "cancelled";
195
+ expired: "expired";
196
196
  paid: "paid";
197
197
  due: "due";
198
198
  waived: "waived";
@@ -210,8 +210,8 @@ export declare const bookingPaymentScheduleRecordSchema: z.ZodObject<{
210
210
  }>;
211
211
  status: z.ZodEnum<{
212
212
  pending: "pending";
213
- expired: "expired";
214
213
  cancelled: "cancelled";
214
+ expired: "expired";
215
215
  paid: "paid";
216
216
  due: "due";
217
217
  waived: "waived";
@@ -238,8 +238,8 @@ export declare const bookingPaymentSchedulesResponse: z.ZodObject<{
238
238
  }>;
239
239
  status: z.ZodEnum<{
240
240
  pending: "pending";
241
- expired: "expired";
242
241
  cancelled: "cancelled";
242
+ expired: "expired";
243
243
  paid: "paid";
244
244
  due: "due";
245
245
  waived: "waived";
@@ -265,9 +265,9 @@ export declare const guaranteeTypeSchema: z.ZodEnum<{
265
265
  export declare const guaranteeStatusSchema: z.ZodEnum<{
266
266
  pending: "pending";
267
267
  failed: "failed";
268
+ cancelled: "cancelled";
268
269
  active: "active";
269
270
  expired: "expired";
270
- cancelled: "cancelled";
271
271
  released: "released";
272
272
  }>;
273
273
  export declare const bookingGuaranteeRecordSchema: z.ZodObject<{
@@ -288,9 +288,9 @@ export declare const bookingGuaranteeRecordSchema: z.ZodObject<{
288
288
  status: z.ZodEnum<{
289
289
  pending: "pending";
290
290
  failed: "failed";
291
+ cancelled: "cancelled";
291
292
  active: "active";
292
293
  expired: "expired";
293
- cancelled: "cancelled";
294
294
  released: "released";
295
295
  }>;
296
296
  currency: z.ZodNullable<z.ZodString>;
@@ -324,9 +324,9 @@ export declare const bookingGuaranteesResponse: z.ZodObject<{
324
324
  status: z.ZodEnum<{
325
325
  pending: "pending";
326
326
  failed: "failed";
327
+ cancelled: "cancelled";
327
328
  active: "active";
328
329
  expired: "expired";
329
- cancelled: "cancelled";
330
330
  released: "released";
331
331
  }>;
332
332
  currency: z.ZodNullable<z.ZodString>;
@@ -606,8 +606,8 @@ export declare const publicBookingPaymentOptionsResponse: z.ZodObject<{
606
606
  }>;
607
607
  status: z.ZodEnum<{
608
608
  pending: "pending";
609
- expired: "expired";
610
609
  cancelled: "cancelled";
610
+ expired: "expired";
611
611
  paid: "paid";
612
612
  due: "due";
613
613
  waived: "waived";
@@ -787,8 +787,8 @@ export declare const publicPaymentSessionResponse: z.ZodObject<{
787
787
  status: z.ZodEnum<{
788
788
  pending: "pending";
789
789
  failed: "failed";
790
- expired: "expired";
791
790
  cancelled: "cancelled";
791
+ expired: "expired";
792
792
  paid: "paid";
793
793
  requires_redirect: "requires_redirect";
794
794
  processing: "processing";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/finance-react",
3
- "version": "0.28.3",
3
+ "version": "0.30.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "zod": "^4.0.0",
44
- "@voyantjs/finance": "0.28.3"
44
+ "@voyantjs/finance": "0.30.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@tanstack/react-query": "^5.96.2",
@@ -52,12 +52,12 @@
52
52
  "typescript": "^6.0.2",
53
53
  "vitest": "^4.1.2",
54
54
  "zod": "^4.3.6",
55
- "@voyantjs/finance": "0.28.3",
56
- "@voyantjs/react": "0.28.3",
55
+ "@voyantjs/finance": "0.30.0",
56
+ "@voyantjs/react": "0.30.0",
57
57
  "@voyantjs/voyant-typescript-config": "0.1.0"
58
58
  },
59
59
  "dependencies": {
60
- "@voyantjs/react": "0.28.3"
60
+ "@voyantjs/react": "0.30.0"
61
61
  },
62
62
  "files": [
63
63
  "dist"