@voyantjs/finance-react 0.4.4 → 0.5.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.
Files changed (37) hide show
  1. package/dist/hooks/index.d.ts +2 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +2 -0
  4. package/dist/hooks/use-booking-guarantees.d.ts +82 -0
  5. package/dist/hooks/use-booking-guarantees.d.ts.map +1 -0
  6. package/dist/hooks/use-booking-guarantees.js +46 -0
  7. package/dist/hooks/use-booking-payment-schedules.d.ts +63 -0
  8. package/dist/hooks/use-booking-payment-schedules.d.ts.map +1 -0
  9. package/dist/hooks/use-booking-payment-schedules.js +46 -0
  10. package/dist/hooks/use-invoice-mutation.d.ts +2 -2
  11. package/dist/hooks/use-invoice-payment-mutation.d.ts +1 -1
  12. package/dist/hooks/use-invoice-payments.d.ts +1 -1
  13. package/dist/hooks/use-invoice.d.ts +1 -1
  14. package/dist/hooks/use-invoices.d.ts +1 -1
  15. package/dist/hooks/use-public-booking-documents.d.ts +3 -3
  16. package/dist/hooks/use-public-booking-payment-options.d.ts +3 -3
  17. package/dist/hooks/use-public-booking-payments.d.ts +2 -2
  18. package/dist/hooks/use-public-finance-document-by-reference.d.ts +3 -3
  19. package/dist/hooks/use-public-payment-session-mutation.d.ts +3 -3
  20. package/dist/hooks/use-public-payment-session.d.ts +3 -3
  21. package/dist/hooks/use-public-voucher-validation-mutation.d.ts +1 -1
  22. package/dist/hooks/use-supplier-payment-mutation.d.ts +2 -2
  23. package/dist/hooks/use-supplier-payments.d.ts +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/operations.d.ts +21 -21
  28. package/dist/query-keys.d.ts +2 -0
  29. package/dist/query-keys.d.ts.map +1 -1
  30. package/dist/query-keys.js +2 -0
  31. package/dist/query-options.d.ts +222 -72
  32. package/dist/query-options.d.ts.map +1 -1
  33. package/dist/query-options.js +15 -1
  34. package/dist/schemas.d.ts +202 -43
  35. package/dist/schemas.d.ts.map +1 -1
  36. package/dist/schemas.js +66 -0
  37. package/package.json +5 -5
@@ -1,4 +1,6 @@
1
1
  import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseBookingGuaranteesOptions } from "./hooks/use-booking-guarantees.js";
3
+ import type { UseBookingPaymentSchedulesOptions } from "./hooks/use-booking-payment-schedules.js";
2
4
  import type { UseInvoiceOptions } from "./hooks/use-invoice.js";
3
5
  import type { UseInvoiceCreditNotesOptions } from "./hooks/use-invoice-credit-notes.js";
4
6
  import type { UseInvoiceLineItemsOptions } from "./hooks/use-invoice-line-items.js";
@@ -11,6 +13,154 @@ import type { UsePublicBookingPaymentsOptions } from "./hooks/use-public-booking
11
13
  import type { UsePublicFinanceDocumentByReferenceOptions } from "./hooks/use-public-finance-document-by-reference.js";
12
14
  import type { UsePublicPaymentSessionOptions } from "./hooks/use-public-payment-session.js";
13
15
  import type { UseSupplierPaymentsOptions } from "./hooks/use-supplier-payments.js";
16
+ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWithValidationOptions, bookingId: string | null | undefined, options?: UseBookingPaymentSchedulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
17
+ data: {
18
+ id: string;
19
+ bookingId: string;
20
+ bookingItemId: string | null;
21
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
22
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
23
+ dueDate: string;
24
+ currency: string;
25
+ amountCents: number;
26
+ notes: string | null;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ }[];
30
+ }, Error, {
31
+ data: {
32
+ id: string;
33
+ bookingId: string;
34
+ bookingItemId: string | null;
35
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
36
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
37
+ dueDate: string;
38
+ currency: string;
39
+ amountCents: number;
40
+ notes: string | null;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+ }[];
44
+ }, readonly ["voyant", "finance", "booking-payment-schedules", string]>, "queryFn"> & {
45
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
46
+ data: {
47
+ id: string;
48
+ bookingId: string;
49
+ bookingItemId: string | null;
50
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
51
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
52
+ dueDate: string;
53
+ currency: string;
54
+ amountCents: number;
55
+ notes: string | null;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ }[];
59
+ }, readonly ["voyant", "finance", "booking-payment-schedules", string], never> | undefined;
60
+ } & {
61
+ queryKey: readonly ["voyant", "finance", "booking-payment-schedules", string] & {
62
+ [dataTagSymbol]: {
63
+ data: {
64
+ id: string;
65
+ bookingId: string;
66
+ bookingItemId: string | null;
67
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
68
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
69
+ dueDate: string;
70
+ currency: string;
71
+ amountCents: number;
72
+ notes: string | null;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ }[];
76
+ };
77
+ [dataTagErrorSymbol]: Error;
78
+ };
79
+ };
80
+ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValidationOptions, bookingId: string | null | undefined, options?: UseBookingGuaranteesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
81
+ data: {
82
+ id: string;
83
+ bookingId: string;
84
+ bookingPaymentScheduleId: string | null;
85
+ bookingItemId: string | null;
86
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
87
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
88
+ currency: string | null;
89
+ amountCents: number | null;
90
+ provider: string | null;
91
+ referenceNumber: string | null;
92
+ guaranteedAt: string | null;
93
+ expiresAt: string | null;
94
+ releasedAt: string | null;
95
+ notes: string | null;
96
+ createdAt: string;
97
+ updatedAt: string;
98
+ }[];
99
+ }, Error, {
100
+ data: {
101
+ id: string;
102
+ bookingId: string;
103
+ bookingPaymentScheduleId: string | null;
104
+ bookingItemId: string | null;
105
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
106
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
107
+ currency: string | null;
108
+ amountCents: number | null;
109
+ provider: string | null;
110
+ referenceNumber: string | null;
111
+ guaranteedAt: string | null;
112
+ expiresAt: string | null;
113
+ releasedAt: string | null;
114
+ notes: string | null;
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ }[];
118
+ }, readonly ["voyant", "finance", "booking-guarantees", string]>, "queryFn"> & {
119
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
120
+ data: {
121
+ id: string;
122
+ bookingId: string;
123
+ bookingPaymentScheduleId: string | null;
124
+ bookingItemId: string | null;
125
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
126
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
127
+ currency: string | null;
128
+ amountCents: number | null;
129
+ provider: string | null;
130
+ referenceNumber: string | null;
131
+ guaranteedAt: string | null;
132
+ expiresAt: string | null;
133
+ releasedAt: string | null;
134
+ notes: string | null;
135
+ createdAt: string;
136
+ updatedAt: string;
137
+ }[];
138
+ }, readonly ["voyant", "finance", "booking-guarantees", string], never> | undefined;
139
+ } & {
140
+ queryKey: readonly ["voyant", "finance", "booking-guarantees", string] & {
141
+ [dataTagSymbol]: {
142
+ data: {
143
+ id: string;
144
+ bookingId: string;
145
+ bookingPaymentScheduleId: string | null;
146
+ bookingItemId: string | null;
147
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
148
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
149
+ currency: string | null;
150
+ amountCents: number | null;
151
+ provider: string | null;
152
+ referenceNumber: string | null;
153
+ guaranteedAt: string | null;
154
+ expiresAt: string | null;
155
+ releasedAt: string | null;
156
+ notes: string | null;
157
+ createdAt: string;
158
+ updatedAt: string;
159
+ }[];
160
+ };
161
+ [dataTagErrorSymbol]: Error;
162
+ };
163
+ };
14
164
  export declare function getInvoicesQueryOptions(client: FetchWithValidationOptions, options?: UseInvoicesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
15
165
  data: {
16
166
  id: string;
@@ -18,7 +168,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
18
168
  bookingId: string;
19
169
  personId: string | null;
20
170
  organizationId: string | null;
21
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
171
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
22
172
  currency: string;
23
173
  subtotalCents: number;
24
174
  taxCents: number;
@@ -41,7 +191,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
41
191
  bookingId: string;
42
192
  personId: string | null;
43
193
  organizationId: string | null;
44
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
194
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
45
195
  currency: string;
46
196
  subtotalCents: number;
47
197
  taxCents: number;
@@ -65,7 +215,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
65
215
  bookingId: string;
66
216
  personId: string | null;
67
217
  organizationId: string | null;
68
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
218
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
69
219
  currency: string;
70
220
  subtotalCents: number;
71
221
  taxCents: number;
@@ -91,7 +241,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
91
241
  bookingId: string;
92
242
  personId: string | null;
93
243
  organizationId: string | null;
94
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
244
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
95
245
  currency: string;
96
246
  subtotalCents: number;
97
247
  taxCents: number;
@@ -119,7 +269,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
119
269
  amountCents: number;
120
270
  currency: string;
121
271
  paymentMethod: string;
122
- status: "pending" | "completed" | "failed" | "refunded";
272
+ status: "completed" | "pending" | "failed" | "refunded";
123
273
  referenceNumber: string | null;
124
274
  paymentDate: string;
125
275
  createdAt: string;
@@ -136,7 +286,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
136
286
  amountCents: number;
137
287
  currency: string;
138
288
  paymentMethod: string;
139
- status: "pending" | "completed" | "failed" | "refunded";
289
+ status: "completed" | "pending" | "failed" | "refunded";
140
290
  referenceNumber: string | null;
141
291
  paymentDate: string;
142
292
  createdAt: string;
@@ -154,7 +304,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
154
304
  amountCents: number;
155
305
  currency: string;
156
306
  paymentMethod: string;
157
- status: "pending" | "completed" | "failed" | "refunded";
307
+ status: "completed" | "pending" | "failed" | "refunded";
158
308
  referenceNumber: string | null;
159
309
  paymentDate: string;
160
310
  createdAt: string;
@@ -174,7 +324,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
174
324
  amountCents: number;
175
325
  currency: string;
176
326
  paymentMethod: string;
177
- status: "pending" | "completed" | "failed" | "refunded";
327
+ status: "completed" | "pending" | "failed" | "refunded";
178
328
  referenceNumber: string | null;
179
329
  paymentDate: string;
180
330
  createdAt: string;
@@ -194,7 +344,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
194
344
  bookingId: string;
195
345
  personId: string | null;
196
346
  organizationId: string | null;
197
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
347
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
198
348
  currency: string;
199
349
  subtotalCents: number;
200
350
  taxCents: number;
@@ -214,7 +364,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
214
364
  bookingId: string;
215
365
  personId: string | null;
216
366
  organizationId: string | null;
217
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
367
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
218
368
  currency: string;
219
369
  subtotalCents: number;
220
370
  taxCents: number;
@@ -235,7 +385,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
235
385
  bookingId: string;
236
386
  personId: string | null;
237
387
  organizationId: string | null;
238
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
388
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
239
389
  currency: string;
240
390
  subtotalCents: number;
241
391
  taxCents: number;
@@ -258,7 +408,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
258
408
  bookingId: string;
259
409
  personId: string | null;
260
410
  organizationId: string | null;
261
- status: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
411
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
262
412
  currency: string;
263
413
  subtotalCents: number;
264
414
  taxCents: number;
@@ -338,7 +488,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
338
488
  amountCents: number;
339
489
  currency: string;
340
490
  paymentMethod: string;
341
- status: "pending" | "completed" | "failed" | "refunded";
491
+ status: "completed" | "pending" | "failed" | "refunded";
342
492
  referenceNumber: string | null;
343
493
  paymentDate: string;
344
494
  notes: string | null;
@@ -351,7 +501,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
351
501
  amountCents: number;
352
502
  currency: string;
353
503
  paymentMethod: string;
354
- status: "pending" | "completed" | "failed" | "refunded";
504
+ status: "completed" | "pending" | "failed" | "refunded";
355
505
  referenceNumber: string | null;
356
506
  paymentDate: string;
357
507
  notes: string | null;
@@ -365,7 +515,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
365
515
  amountCents: number;
366
516
  currency: string;
367
517
  paymentMethod: string;
368
- status: "pending" | "completed" | "failed" | "refunded";
518
+ status: "completed" | "pending" | "failed" | "refunded";
369
519
  referenceNumber: string | null;
370
520
  paymentDate: string;
371
521
  notes: string | null;
@@ -381,7 +531,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
381
531
  amountCents: number;
382
532
  currency: string;
383
533
  paymentMethod: string;
384
- status: "pending" | "completed" | "failed" | "refunded";
534
+ status: "completed" | "pending" | "failed" | "refunded";
385
535
  referenceNumber: string | null;
386
536
  paymentDate: string;
387
537
  notes: string | null;
@@ -494,8 +644,8 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
494
644
  id: string;
495
645
  label: string;
496
646
  provider: string | null;
497
- instrumentType: "credit_card" | "debit_card" | "bank_account" | "wallet" | "voucher" | "direct_bill" | "cash" | "other";
498
- status: "active" | "inactive" | "expired" | "revoked" | "failed_verification";
647
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
648
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
499
649
  brand: string | null;
500
650
  last4: string | null;
501
651
  expiryMonth: number | null;
@@ -505,7 +655,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
505
655
  schedules: {
506
656
  id: string;
507
657
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
508
- status: "pending" | "paid" | "expired" | "due" | "waived" | "cancelled";
658
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
509
659
  dueDate: string;
510
660
  currency: string;
511
661
  amountCents: number;
@@ -535,8 +685,8 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
535
685
  id: string;
536
686
  label: string;
537
687
  provider: string | null;
538
- instrumentType: "credit_card" | "debit_card" | "bank_account" | "wallet" | "voucher" | "direct_bill" | "cash" | "other";
539
- status: "active" | "inactive" | "expired" | "revoked" | "failed_verification";
688
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
689
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
540
690
  brand: string | null;
541
691
  last4: string | null;
542
692
  expiryMonth: number | null;
@@ -546,7 +696,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
546
696
  schedules: {
547
697
  id: string;
548
698
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
549
- status: "pending" | "paid" | "expired" | "due" | "waived" | "cancelled";
699
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
550
700
  dueDate: string;
551
701
  currency: string;
552
702
  amountCents: number;
@@ -577,8 +727,8 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
577
727
  id: string;
578
728
  label: string;
579
729
  provider: string | null;
580
- instrumentType: "credit_card" | "debit_card" | "bank_account" | "wallet" | "voucher" | "direct_bill" | "cash" | "other";
581
- status: "active" | "inactive" | "expired" | "revoked" | "failed_verification";
730
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
731
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
582
732
  brand: string | null;
583
733
  last4: string | null;
584
734
  expiryMonth: number | null;
@@ -588,7 +738,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
588
738
  schedules: {
589
739
  id: string;
590
740
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
591
- status: "pending" | "paid" | "expired" | "due" | "waived" | "cancelled";
741
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
592
742
  dueDate: string;
593
743
  currency: string;
594
744
  amountCents: number;
@@ -621,8 +771,8 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
621
771
  id: string;
622
772
  label: string;
623
773
  provider: string | null;
624
- instrumentType: "credit_card" | "debit_card" | "bank_account" | "wallet" | "voucher" | "direct_bill" | "cash" | "other";
625
- status: "active" | "inactive" | "expired" | "revoked" | "failed_verification";
774
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
775
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
626
776
  brand: string | null;
627
777
  last4: string | null;
628
778
  expiryMonth: number | null;
@@ -632,7 +782,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
632
782
  schedules: {
633
783
  id: string;
634
784
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
635
- status: "pending" | "paid" | "expired" | "due" | "waived" | "cancelled";
785
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
636
786
  dueDate: string;
637
787
  currency: string;
638
788
  amountCents: number;
@@ -666,7 +816,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
666
816
  invoiceId: string;
667
817
  invoiceNumber: string;
668
818
  invoiceType: "invoice" | "proforma" | "credit_note";
669
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
819
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
670
820
  currency: string;
671
821
  totalCents: number;
672
822
  paidCents: number;
@@ -674,8 +824,8 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
674
824
  issueDate: string;
675
825
  dueDate: string;
676
826
  renditionId: string | null;
677
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
678
- format: "html" | "pdf" | "xml" | "json" | null;
827
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
828
+ format: "json" | "pdf" | "html" | "xml" | null;
679
829
  language: string | null;
680
830
  generatedAt: string | null;
681
831
  fileSize: number | null;
@@ -690,7 +840,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
690
840
  invoiceId: string;
691
841
  invoiceNumber: string;
692
842
  invoiceType: "invoice" | "proforma" | "credit_note";
693
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
843
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
694
844
  currency: string;
695
845
  totalCents: number;
696
846
  paidCents: number;
@@ -698,8 +848,8 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
698
848
  issueDate: string;
699
849
  dueDate: string;
700
850
  renditionId: string | null;
701
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
702
- format: "html" | "pdf" | "xml" | "json" | null;
851
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
852
+ format: "json" | "pdf" | "html" | "xml" | null;
703
853
  language: string | null;
704
854
  generatedAt: string | null;
705
855
  fileSize: number | null;
@@ -715,7 +865,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
715
865
  invoiceId: string;
716
866
  invoiceNumber: string;
717
867
  invoiceType: "invoice" | "proforma" | "credit_note";
718
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
868
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
719
869
  currency: string;
720
870
  totalCents: number;
721
871
  paidCents: number;
@@ -723,8 +873,8 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
723
873
  issueDate: string;
724
874
  dueDate: string;
725
875
  renditionId: string | null;
726
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
727
- format: "html" | "pdf" | "xml" | "json" | null;
876
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
877
+ format: "json" | "pdf" | "html" | "xml" | null;
728
878
  language: string | null;
729
879
  generatedAt: string | null;
730
880
  fileSize: number | null;
@@ -742,7 +892,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
742
892
  invoiceId: string;
743
893
  invoiceNumber: string;
744
894
  invoiceType: "invoice" | "proforma" | "credit_note";
745
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
895
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
746
896
  currency: string;
747
897
  totalCents: number;
748
898
  paidCents: number;
@@ -750,8 +900,8 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
750
900
  issueDate: string;
751
901
  dueDate: string;
752
902
  renditionId: string | null;
753
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
754
- format: "html" | "pdf" | "xml" | "json" | null;
903
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
904
+ format: "json" | "pdf" | "html" | "xml" | null;
755
905
  language: string | null;
756
906
  generatedAt: string | null;
757
907
  fileSize: number | null;
@@ -768,7 +918,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
768
918
  invoiceId: string;
769
919
  invoiceNumber: string;
770
920
  invoiceType: "invoice" | "proforma" | "credit_note";
771
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
921
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
772
922
  currency: string;
773
923
  totalCents: number;
774
924
  paidCents: number;
@@ -776,8 +926,8 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
776
926
  issueDate: string;
777
927
  dueDate: string;
778
928
  renditionId: string | null;
779
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
780
- format: "html" | "pdf" | "xml" | "json" | null;
929
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
930
+ format: "json" | "pdf" | "html" | "xml" | null;
781
931
  language: string | null;
782
932
  generatedAt: string | null;
783
933
  fileSize: number | null;
@@ -790,7 +940,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
790
940
  invoiceId: string;
791
941
  invoiceNumber: string;
792
942
  invoiceType: "invoice" | "proforma" | "credit_note";
793
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
943
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
794
944
  currency: string;
795
945
  totalCents: number;
796
946
  paidCents: number;
@@ -798,8 +948,8 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
798
948
  issueDate: string;
799
949
  dueDate: string;
800
950
  renditionId: string | null;
801
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
802
- format: "html" | "pdf" | "xml" | "json" | null;
951
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
952
+ format: "json" | "pdf" | "html" | "xml" | null;
803
953
  language: string | null;
804
954
  generatedAt: string | null;
805
955
  fileSize: number | null;
@@ -813,7 +963,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
813
963
  invoiceId: string;
814
964
  invoiceNumber: string;
815
965
  invoiceType: "invoice" | "proforma" | "credit_note";
816
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
966
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
817
967
  currency: string;
818
968
  totalCents: number;
819
969
  paidCents: number;
@@ -821,8 +971,8 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
821
971
  issueDate: string;
822
972
  dueDate: string;
823
973
  renditionId: string | null;
824
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
825
- format: "html" | "pdf" | "xml" | "json" | null;
974
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
975
+ format: "json" | "pdf" | "html" | "xml" | null;
826
976
  language: string | null;
827
977
  generatedAt: string | null;
828
978
  fileSize: number | null;
@@ -838,7 +988,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
838
988
  invoiceId: string;
839
989
  invoiceNumber: string;
840
990
  invoiceType: "invoice" | "proforma" | "credit_note";
841
- invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
991
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
842
992
  currency: string;
843
993
  totalCents: number;
844
994
  paidCents: number;
@@ -846,8 +996,8 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
846
996
  issueDate: string;
847
997
  dueDate: string;
848
998
  renditionId: string | null;
849
- documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
850
- format: "html" | "pdf" | "xml" | "json" | null;
999
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
1000
+ format: "json" | "pdf" | "html" | "xml" | null;
851
1001
  language: string | null;
852
1002
  generatedAt: string | null;
853
1003
  fileSize: number | null;
@@ -867,8 +1017,8 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
867
1017
  invoiceId: string;
868
1018
  invoiceNumber: string;
869
1019
  invoiceType: "invoice" | "proforma" | "credit_note";
870
- status: "pending" | "completed" | "failed" | "refunded";
871
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque";
1020
+ status: "completed" | "pending" | "failed" | "refunded";
1021
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
872
1022
  amountCents: number;
873
1023
  currency: string;
874
1024
  paymentDate: string;
@@ -884,8 +1034,8 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
884
1034
  invoiceId: string;
885
1035
  invoiceNumber: string;
886
1036
  invoiceType: "invoice" | "proforma" | "credit_note";
887
- status: "pending" | "completed" | "failed" | "refunded";
888
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque";
1037
+ status: "completed" | "pending" | "failed" | "refunded";
1038
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
889
1039
  amountCents: number;
890
1040
  currency: string;
891
1041
  paymentDate: string;
@@ -902,8 +1052,8 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
902
1052
  invoiceId: string;
903
1053
  invoiceNumber: string;
904
1054
  invoiceType: "invoice" | "proforma" | "credit_note";
905
- status: "pending" | "completed" | "failed" | "refunded";
906
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque";
1055
+ status: "completed" | "pending" | "failed" | "refunded";
1056
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
907
1057
  amountCents: number;
908
1058
  currency: string;
909
1059
  paymentDate: string;
@@ -922,8 +1072,8 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
922
1072
  invoiceId: string;
923
1073
  invoiceNumber: string;
924
1074
  invoiceType: "invoice" | "proforma" | "credit_note";
925
- status: "pending" | "completed" | "failed" | "refunded";
926
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque";
1075
+ status: "completed" | "pending" | "failed" | "refunded";
1076
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
927
1077
  amountCents: number;
928
1078
  currency: string;
929
1079
  paymentDate: string;
@@ -938,13 +1088,13 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
938
1088
  export declare function getPublicPaymentSessionQueryOptions(client: FetchWithValidationOptions, sessionId: string | null | undefined, options?: UsePublicPaymentSessionOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
939
1089
  data: {
940
1090
  id: string;
941
- targetType: "invoice" | "other" | "booking_payment_schedule" | "booking_guarantee" | "booking" | "order";
1091
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
942
1092
  targetId: string | null;
943
1093
  bookingId: string | null;
944
1094
  invoiceId: string | null;
945
1095
  bookingPaymentScheduleId: string | null;
946
1096
  bookingGuaranteeId: string | null;
947
- status: "pending" | "failed" | "paid" | "expired" | "cancelled" | "requires_redirect" | "processing" | "authorized";
1097
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
948
1098
  provider: string | null;
949
1099
  providerSessionId: string | null;
950
1100
  providerPaymentId: string | null;
@@ -952,7 +1102,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
952
1102
  clientReference: string | null;
953
1103
  currency: string;
954
1104
  amountCents: number;
955
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque" | null;
1105
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
956
1106
  payerEmail: string | null;
957
1107
  payerName: string | null;
958
1108
  redirectUrl: string | null;
@@ -966,13 +1116,13 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
966
1116
  }, Error, {
967
1117
  data: {
968
1118
  id: string;
969
- targetType: "invoice" | "other" | "booking_payment_schedule" | "booking_guarantee" | "booking" | "order";
1119
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
970
1120
  targetId: string | null;
971
1121
  bookingId: string | null;
972
1122
  invoiceId: string | null;
973
1123
  bookingPaymentScheduleId: string | null;
974
1124
  bookingGuaranteeId: string | null;
975
- status: "pending" | "failed" | "paid" | "expired" | "cancelled" | "requires_redirect" | "processing" | "authorized";
1125
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
976
1126
  provider: string | null;
977
1127
  providerSessionId: string | null;
978
1128
  providerPaymentId: string | null;
@@ -980,7 +1130,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
980
1130
  clientReference: string | null;
981
1131
  currency: string;
982
1132
  amountCents: number;
983
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque" | null;
1133
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
984
1134
  payerEmail: string | null;
985
1135
  payerName: string | null;
986
1136
  redirectUrl: string | null;
@@ -995,13 +1145,13 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
995
1145
  queryFn?: import("@tanstack/react-query").QueryFunction<{
996
1146
  data: {
997
1147
  id: string;
998
- targetType: "invoice" | "other" | "booking_payment_schedule" | "booking_guarantee" | "booking" | "order";
1148
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
999
1149
  targetId: string | null;
1000
1150
  bookingId: string | null;
1001
1151
  invoiceId: string | null;
1002
1152
  bookingPaymentScheduleId: string | null;
1003
1153
  bookingGuaranteeId: string | null;
1004
- status: "pending" | "failed" | "paid" | "expired" | "cancelled" | "requires_redirect" | "processing" | "authorized";
1154
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1005
1155
  provider: string | null;
1006
1156
  providerSessionId: string | null;
1007
1157
  providerPaymentId: string | null;
@@ -1009,7 +1159,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1009
1159
  clientReference: string | null;
1010
1160
  currency: string;
1011
1161
  amountCents: number;
1012
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque" | null;
1162
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1013
1163
  payerEmail: string | null;
1014
1164
  payerName: string | null;
1015
1165
  redirectUrl: string | null;
@@ -1026,13 +1176,13 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1026
1176
  [dataTagSymbol]: {
1027
1177
  data: {
1028
1178
  id: string;
1029
- targetType: "invoice" | "other" | "booking_payment_schedule" | "booking_guarantee" | "booking" | "order";
1179
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1030
1180
  targetId: string | null;
1031
1181
  bookingId: string | null;
1032
1182
  invoiceId: string | null;
1033
1183
  bookingPaymentScheduleId: string | null;
1034
1184
  bookingGuaranteeId: string | null;
1035
- status: "pending" | "failed" | "paid" | "expired" | "cancelled" | "requires_redirect" | "processing" | "authorized";
1185
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1036
1186
  provider: string | null;
1037
1187
  providerSessionId: string | null;
1038
1188
  providerPaymentId: string | null;
@@ -1040,7 +1190,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1040
1190
  clientReference: string | null;
1041
1191
  currency: string;
1042
1192
  amountCents: number;
1043
- paymentMethod: "credit_card" | "debit_card" | "wallet" | "voucher" | "direct_bill" | "cash" | "other" | "bank_transfer" | "cheque" | null;
1193
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1044
1194
  payerEmail: string | null;
1045
1195
  payerName: string | null;
1046
1196
  redirectUrl: string | null;