@voyantjs/finance-react 0.5.0 → 0.6.2
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/hooks/use-booking-guarantees.d.ts +3 -3
- package/dist/hooks/use-booking-payment-schedules.d.ts +3 -3
- package/dist/hooks/use-invoice-mutation.d.ts +2 -2
- package/dist/hooks/use-invoice-payment-mutation.d.ts +1 -1
- package/dist/hooks/use-invoice-payments.d.ts +1 -1
- package/dist/hooks/use-invoice.d.ts +1 -1
- package/dist/hooks/use-invoices.d.ts +1 -1
- package/dist/hooks/use-public-booking-documents.d.ts +1 -1
- package/dist/hooks/use-public-booking-payment-options.d.ts +1 -1
- package/dist/hooks/use-public-booking-payments.d.ts +1 -1
- package/dist/hooks/use-public-finance-document-by-reference.d.ts +1 -1
- package/dist/hooks/use-public-payment-session-mutation.d.ts +1 -1
- package/dist/hooks/use-public-payment-session.d.ts +1 -1
- package/dist/hooks/use-supplier-payment-mutation.d.ts +2 -2
- package/dist/hooks/use-supplier-payments.d.ts +1 -1
- package/dist/operations.d.ts +7 -7
- package/dist/query-options.d.ts +44 -44
- package/dist/schemas.d.ts +20 -20
- package/package.json +5 -5
|
@@ -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: "
|
|
11
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
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: "
|
|
45
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
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: "
|
|
63
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
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: "
|
|
10
|
+
status: "pending" | "expired" | "cancelled" | "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: "
|
|
35
|
+
status: "pending" | "expired" | "cancelled" | "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: "
|
|
48
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
49
49
|
dueDate: string;
|
|
50
50
|
currency: string;
|
|
51
51
|
amountCents: number;
|
|
@@ -23,7 +23,7 @@ export declare function useInvoiceMutation(): {
|
|
|
23
23
|
bookingId: string;
|
|
24
24
|
personId: string | null;
|
|
25
25
|
organizationId: string | null;
|
|
26
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
26
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
27
27
|
currency: string;
|
|
28
28
|
subtotalCents: number;
|
|
29
29
|
taxCents: number;
|
|
@@ -42,7 +42,7 @@ export declare function useInvoiceMutation(): {
|
|
|
42
42
|
bookingId: string;
|
|
43
43
|
personId: string | null;
|
|
44
44
|
organizationId: string | null;
|
|
45
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
45
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
46
46
|
currency: string;
|
|
47
47
|
subtotalCents: number;
|
|
48
48
|
taxCents: number;
|
|
@@ -13,7 +13,7 @@ export declare function useInvoicePaymentMutation(invoiceId: string): import("@t
|
|
|
13
13
|
amountCents: number;
|
|
14
14
|
currency: string;
|
|
15
15
|
paymentMethod: string;
|
|
16
|
-
status: "
|
|
16
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
17
17
|
referenceNumber: string | null;
|
|
18
18
|
paymentDate: string;
|
|
19
19
|
notes: string | null;
|
|
@@ -8,7 +8,7 @@ export declare function useInvoicePayments(invoiceId: string | null | undefined,
|
|
|
8
8
|
amountCents: number;
|
|
9
9
|
currency: string;
|
|
10
10
|
paymentMethod: string;
|
|
11
|
-
status: "
|
|
11
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
12
12
|
referenceNumber: string | null;
|
|
13
13
|
paymentDate: string;
|
|
14
14
|
notes: string | null;
|
|
@@ -8,7 +8,7 @@ export declare function useInvoice(id: string | null | undefined, options?: UseI
|
|
|
8
8
|
bookingId: string;
|
|
9
9
|
personId: string | null;
|
|
10
10
|
organizationId: string | null;
|
|
11
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
11
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
12
12
|
currency: string;
|
|
13
13
|
subtotalCents: number;
|
|
14
14
|
taxCents: number;
|
|
@@ -9,7 +9,7 @@ export declare function useInvoices(options?: UseInvoicesOptions): import("@tans
|
|
|
9
9
|
bookingId: string;
|
|
10
10
|
personId: string | null;
|
|
11
11
|
organizationId: string | null;
|
|
12
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
12
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
13
13
|
currency: string;
|
|
14
14
|
subtotalCents: number;
|
|
15
15
|
taxCents: number;
|
|
@@ -8,7 +8,7 @@ export declare function usePublicBookingDocuments(bookingId: string | null | und
|
|
|
8
8
|
invoiceId: string;
|
|
9
9
|
invoiceNumber: string;
|
|
10
10
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
11
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
11
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
12
12
|
currency: string;
|
|
13
13
|
totalCents: number;
|
|
14
14
|
paidCents: 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: "
|
|
23
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
24
24
|
dueDate: string;
|
|
25
25
|
currency: string;
|
|
26
26
|
amountCents: number;
|
|
@@ -9,7 +9,7 @@ export declare function usePublicBookingPayments(bookingId: string | null | unde
|
|
|
9
9
|
invoiceId: string;
|
|
10
10
|
invoiceNumber: string;
|
|
11
11
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
12
|
-
status: "
|
|
12
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
13
13
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
14
14
|
amountCents: number;
|
|
15
15
|
currency: string;
|
|
@@ -6,7 +6,7 @@ export declare function usePublicFinanceDocumentByReference(reference: string |
|
|
|
6
6
|
invoiceId: string;
|
|
7
7
|
invoiceNumber: string;
|
|
8
8
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
9
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
9
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
10
10
|
currency: string;
|
|
11
11
|
totalCents: number;
|
|
12
12
|
paidCents: 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: "
|
|
22
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "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: "
|
|
13
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
14
14
|
provider: string | null;
|
|
15
15
|
providerSessionId: string | null;
|
|
16
16
|
providerPaymentId: string | null;
|
|
@@ -18,7 +18,7 @@ export declare function useSupplierPaymentMutation(): {
|
|
|
18
18
|
amountCents: number;
|
|
19
19
|
currency: string;
|
|
20
20
|
paymentMethod: string;
|
|
21
|
-
status: "
|
|
21
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
22
22
|
referenceNumber: string | null;
|
|
23
23
|
paymentDate: string;
|
|
24
24
|
createdAt: string;
|
|
@@ -31,7 +31,7 @@ export declare function useSupplierPaymentMutation(): {
|
|
|
31
31
|
amountCents: number;
|
|
32
32
|
currency: string;
|
|
33
33
|
paymentMethod: string;
|
|
34
|
-
status: "
|
|
34
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
35
35
|
referenceNumber: string | null;
|
|
36
36
|
paymentDate: string;
|
|
37
37
|
createdAt: string;
|
|
@@ -10,7 +10,7 @@ export declare function useSupplierPayments(options?: UseSupplierPaymentsOptions
|
|
|
10
10
|
amountCents: number;
|
|
11
11
|
currency: string;
|
|
12
12
|
paymentMethod: string;
|
|
13
|
-
status: "
|
|
13
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
14
14
|
referenceNumber: string | null;
|
|
15
15
|
paymentDate: string;
|
|
16
16
|
createdAt: string;
|
package/dist/operations.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare function getPublicFinanceDocumentByReference(client: FetchWithVal
|
|
|
5
5
|
invoiceId: string;
|
|
6
6
|
invoiceNumber: string;
|
|
7
7
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
8
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
8
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
9
9
|
currency: string;
|
|
10
10
|
totalCents: number;
|
|
11
11
|
paidCents: number;
|
|
@@ -30,7 +30,7 @@ export declare function getPublicBookingDocuments(client: FetchWithValidationOpt
|
|
|
30
30
|
invoiceId: string;
|
|
31
31
|
invoiceNumber: string;
|
|
32
32
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
33
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
33
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
34
34
|
currency: string;
|
|
35
35
|
totalCents: number;
|
|
36
36
|
paidCents: number;
|
|
@@ -56,7 +56,7 @@ export declare function getPublicBookingPayments(client: FetchWithValidationOpti
|
|
|
56
56
|
invoiceId: string;
|
|
57
57
|
invoiceNumber: string;
|
|
58
58
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
59
|
-
status: "
|
|
59
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
60
60
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
61
61
|
amountCents: number;
|
|
62
62
|
currency: string;
|
|
@@ -90,7 +90,7 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
|
|
|
90
90
|
schedules: {
|
|
91
91
|
id: string;
|
|
92
92
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
93
|
-
status: "
|
|
93
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
94
94
|
dueDate: string;
|
|
95
95
|
currency: string;
|
|
96
96
|
amountCents: number;
|
|
@@ -123,7 +123,7 @@ export declare function getPublicPaymentSession(client: FetchWithValidationOptio
|
|
|
123
123
|
invoiceId: string | null;
|
|
124
124
|
bookingPaymentScheduleId: string | null;
|
|
125
125
|
bookingGuaranteeId: string | null;
|
|
126
|
-
status: "
|
|
126
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
127
127
|
provider: string | null;
|
|
128
128
|
providerSessionId: string | null;
|
|
129
129
|
providerPaymentId: string | null;
|
|
@@ -152,7 +152,7 @@ export declare function startPublicBookingSchedulePaymentSession(client: FetchWi
|
|
|
152
152
|
invoiceId: string | null;
|
|
153
153
|
bookingPaymentScheduleId: string | null;
|
|
154
154
|
bookingGuaranteeId: string | null;
|
|
155
|
-
status: "
|
|
155
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
156
156
|
provider: string | null;
|
|
157
157
|
providerSessionId: string | null;
|
|
158
158
|
providerPaymentId: string | null;
|
|
@@ -181,7 +181,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
|
|
|
181
181
|
invoiceId: string | null;
|
|
182
182
|
bookingPaymentScheduleId: string | null;
|
|
183
183
|
bookingGuaranteeId: string | null;
|
|
184
|
-
status: "
|
|
184
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
185
185
|
provider: string | null;
|
|
186
186
|
providerSessionId: string | null;
|
|
187
187
|
providerPaymentId: string | null;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
|
|
|
19
19
|
bookingId: string;
|
|
20
20
|
bookingItemId: string | null;
|
|
21
21
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
22
|
-
status: "
|
|
22
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
23
23
|
dueDate: string;
|
|
24
24
|
currency: string;
|
|
25
25
|
amountCents: number;
|
|
@@ -33,7 +33,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
|
|
|
33
33
|
bookingId: string;
|
|
34
34
|
bookingItemId: string | null;
|
|
35
35
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
36
|
-
status: "
|
|
36
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
37
37
|
dueDate: string;
|
|
38
38
|
currency: string;
|
|
39
39
|
amountCents: number;
|
|
@@ -48,7 +48,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
|
|
|
48
48
|
bookingId: string;
|
|
49
49
|
bookingItemId: string | null;
|
|
50
50
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
51
|
-
status: "
|
|
51
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
52
52
|
dueDate: string;
|
|
53
53
|
currency: string;
|
|
54
54
|
amountCents: number;
|
|
@@ -65,7 +65,7 @@ export declare function getBookingPaymentSchedulesQueryOptions(client: FetchWith
|
|
|
65
65
|
bookingId: string;
|
|
66
66
|
bookingItemId: string | null;
|
|
67
67
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
68
|
-
status: "
|
|
68
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
69
69
|
dueDate: string;
|
|
70
70
|
currency: string;
|
|
71
71
|
amountCents: number;
|
|
@@ -84,7 +84,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
|
|
|
84
84
|
bookingPaymentScheduleId: string | null;
|
|
85
85
|
bookingItemId: string | null;
|
|
86
86
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
87
|
-
status: "
|
|
87
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
88
88
|
currency: string | null;
|
|
89
89
|
amountCents: number | null;
|
|
90
90
|
provider: string | null;
|
|
@@ -103,7 +103,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
|
|
|
103
103
|
bookingPaymentScheduleId: string | null;
|
|
104
104
|
bookingItemId: string | null;
|
|
105
105
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
106
|
-
status: "
|
|
106
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
107
107
|
currency: string | null;
|
|
108
108
|
amountCents: number | null;
|
|
109
109
|
provider: string | null;
|
|
@@ -123,7 +123,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
|
|
|
123
123
|
bookingPaymentScheduleId: string | null;
|
|
124
124
|
bookingItemId: string | null;
|
|
125
125
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
126
|
-
status: "
|
|
126
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
127
127
|
currency: string | null;
|
|
128
128
|
amountCents: number | null;
|
|
129
129
|
provider: string | null;
|
|
@@ -145,7 +145,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
|
|
|
145
145
|
bookingPaymentScheduleId: string | null;
|
|
146
146
|
bookingItemId: string | null;
|
|
147
147
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
148
|
-
status: "
|
|
148
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
149
149
|
currency: string | null;
|
|
150
150
|
amountCents: number | null;
|
|
151
151
|
provider: string | null;
|
|
@@ -168,7 +168,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
168
168
|
bookingId: string;
|
|
169
169
|
personId: string | null;
|
|
170
170
|
organizationId: string | null;
|
|
171
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
171
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
172
172
|
currency: string;
|
|
173
173
|
subtotalCents: number;
|
|
174
174
|
taxCents: number;
|
|
@@ -191,7 +191,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
191
191
|
bookingId: string;
|
|
192
192
|
personId: string | null;
|
|
193
193
|
organizationId: string | null;
|
|
194
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
194
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
195
195
|
currency: string;
|
|
196
196
|
subtotalCents: number;
|
|
197
197
|
taxCents: number;
|
|
@@ -215,7 +215,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
215
215
|
bookingId: string;
|
|
216
216
|
personId: string | null;
|
|
217
217
|
organizationId: string | null;
|
|
218
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
218
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
219
219
|
currency: string;
|
|
220
220
|
subtotalCents: number;
|
|
221
221
|
taxCents: number;
|
|
@@ -241,7 +241,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
241
241
|
bookingId: string;
|
|
242
242
|
personId: string | null;
|
|
243
243
|
organizationId: string | null;
|
|
244
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
244
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
245
245
|
currency: string;
|
|
246
246
|
subtotalCents: number;
|
|
247
247
|
taxCents: number;
|
|
@@ -269,7 +269,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
|
|
|
269
269
|
amountCents: number;
|
|
270
270
|
currency: string;
|
|
271
271
|
paymentMethod: string;
|
|
272
|
-
status: "
|
|
272
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
273
273
|
referenceNumber: string | null;
|
|
274
274
|
paymentDate: string;
|
|
275
275
|
createdAt: string;
|
|
@@ -286,7 +286,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
|
|
|
286
286
|
amountCents: number;
|
|
287
287
|
currency: string;
|
|
288
288
|
paymentMethod: string;
|
|
289
|
-
status: "
|
|
289
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
290
290
|
referenceNumber: string | null;
|
|
291
291
|
paymentDate: string;
|
|
292
292
|
createdAt: string;
|
|
@@ -304,7 +304,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
|
|
|
304
304
|
amountCents: number;
|
|
305
305
|
currency: string;
|
|
306
306
|
paymentMethod: string;
|
|
307
|
-
status: "
|
|
307
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
308
308
|
referenceNumber: string | null;
|
|
309
309
|
paymentDate: string;
|
|
310
310
|
createdAt: string;
|
|
@@ -324,7 +324,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
|
|
|
324
324
|
amountCents: number;
|
|
325
325
|
currency: string;
|
|
326
326
|
paymentMethod: string;
|
|
327
|
-
status: "
|
|
327
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
328
328
|
referenceNumber: string | null;
|
|
329
329
|
paymentDate: string;
|
|
330
330
|
createdAt: string;
|
|
@@ -344,7 +344,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
344
344
|
bookingId: string;
|
|
345
345
|
personId: string | null;
|
|
346
346
|
organizationId: string | null;
|
|
347
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
347
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
348
348
|
currency: string;
|
|
349
349
|
subtotalCents: number;
|
|
350
350
|
taxCents: number;
|
|
@@ -364,7 +364,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
364
364
|
bookingId: string;
|
|
365
365
|
personId: string | null;
|
|
366
366
|
organizationId: string | null;
|
|
367
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
367
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
368
368
|
currency: string;
|
|
369
369
|
subtotalCents: number;
|
|
370
370
|
taxCents: number;
|
|
@@ -385,7 +385,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
385
385
|
bookingId: string;
|
|
386
386
|
personId: string | null;
|
|
387
387
|
organizationId: string | null;
|
|
388
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
388
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
389
389
|
currency: string;
|
|
390
390
|
subtotalCents: number;
|
|
391
391
|
taxCents: number;
|
|
@@ -408,7 +408,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
408
408
|
bookingId: string;
|
|
409
409
|
personId: string | null;
|
|
410
410
|
organizationId: string | null;
|
|
411
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
411
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
412
412
|
currency: string;
|
|
413
413
|
subtotalCents: number;
|
|
414
414
|
taxCents: number;
|
|
@@ -488,7 +488,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
|
|
|
488
488
|
amountCents: number;
|
|
489
489
|
currency: string;
|
|
490
490
|
paymentMethod: string;
|
|
491
|
-
status: "
|
|
491
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
492
492
|
referenceNumber: string | null;
|
|
493
493
|
paymentDate: string;
|
|
494
494
|
notes: string | null;
|
|
@@ -501,7 +501,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
|
|
|
501
501
|
amountCents: number;
|
|
502
502
|
currency: string;
|
|
503
503
|
paymentMethod: string;
|
|
504
|
-
status: "
|
|
504
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
505
505
|
referenceNumber: string | null;
|
|
506
506
|
paymentDate: string;
|
|
507
507
|
notes: string | null;
|
|
@@ -515,7 +515,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
|
|
|
515
515
|
amountCents: number;
|
|
516
516
|
currency: string;
|
|
517
517
|
paymentMethod: string;
|
|
518
|
-
status: "
|
|
518
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
519
519
|
referenceNumber: string | null;
|
|
520
520
|
paymentDate: string;
|
|
521
521
|
notes: string | null;
|
|
@@ -531,7 +531,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
|
|
|
531
531
|
amountCents: number;
|
|
532
532
|
currency: string;
|
|
533
533
|
paymentMethod: string;
|
|
534
|
-
status: "
|
|
534
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
535
535
|
referenceNumber: string | null;
|
|
536
536
|
paymentDate: string;
|
|
537
537
|
notes: string | null;
|
|
@@ -655,7 +655,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
|
|
|
655
655
|
schedules: {
|
|
656
656
|
id: string;
|
|
657
657
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
658
|
-
status: "
|
|
658
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
659
659
|
dueDate: string;
|
|
660
660
|
currency: string;
|
|
661
661
|
amountCents: number;
|
|
@@ -696,7 +696,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
|
|
|
696
696
|
schedules: {
|
|
697
697
|
id: string;
|
|
698
698
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
699
|
-
status: "
|
|
699
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
700
700
|
dueDate: string;
|
|
701
701
|
currency: string;
|
|
702
702
|
amountCents: number;
|
|
@@ -738,7 +738,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
|
|
|
738
738
|
schedules: {
|
|
739
739
|
id: string;
|
|
740
740
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
741
|
-
status: "
|
|
741
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
742
742
|
dueDate: string;
|
|
743
743
|
currency: string;
|
|
744
744
|
amountCents: number;
|
|
@@ -782,7 +782,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
|
|
|
782
782
|
schedules: {
|
|
783
783
|
id: string;
|
|
784
784
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
785
|
-
status: "
|
|
785
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
786
786
|
dueDate: string;
|
|
787
787
|
currency: string;
|
|
788
788
|
amountCents: number;
|
|
@@ -816,7 +816,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
816
816
|
invoiceId: string;
|
|
817
817
|
invoiceNumber: string;
|
|
818
818
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
819
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
819
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
820
820
|
currency: string;
|
|
821
821
|
totalCents: number;
|
|
822
822
|
paidCents: number;
|
|
@@ -840,7 +840,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
840
840
|
invoiceId: string;
|
|
841
841
|
invoiceNumber: string;
|
|
842
842
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
843
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
843
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
844
844
|
currency: string;
|
|
845
845
|
totalCents: number;
|
|
846
846
|
paidCents: number;
|
|
@@ -865,7 +865,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
865
865
|
invoiceId: string;
|
|
866
866
|
invoiceNumber: string;
|
|
867
867
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
868
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
868
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
869
869
|
currency: string;
|
|
870
870
|
totalCents: number;
|
|
871
871
|
paidCents: number;
|
|
@@ -892,7 +892,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
892
892
|
invoiceId: string;
|
|
893
893
|
invoiceNumber: string;
|
|
894
894
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
895
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
895
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
896
896
|
currency: string;
|
|
897
897
|
totalCents: number;
|
|
898
898
|
paidCents: number;
|
|
@@ -918,7 +918,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
918
918
|
invoiceId: string;
|
|
919
919
|
invoiceNumber: string;
|
|
920
920
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
921
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
921
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
922
922
|
currency: string;
|
|
923
923
|
totalCents: number;
|
|
924
924
|
paidCents: number;
|
|
@@ -940,7 +940,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
940
940
|
invoiceId: string;
|
|
941
941
|
invoiceNumber: string;
|
|
942
942
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
943
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
943
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
944
944
|
currency: string;
|
|
945
945
|
totalCents: number;
|
|
946
946
|
paidCents: number;
|
|
@@ -963,7 +963,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
963
963
|
invoiceId: string;
|
|
964
964
|
invoiceNumber: string;
|
|
965
965
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
966
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
966
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
967
967
|
currency: string;
|
|
968
968
|
totalCents: number;
|
|
969
969
|
paidCents: number;
|
|
@@ -988,7 +988,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
988
988
|
invoiceId: string;
|
|
989
989
|
invoiceNumber: string;
|
|
990
990
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
991
|
-
invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
991
|
+
invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
992
992
|
currency: string;
|
|
993
993
|
totalCents: number;
|
|
994
994
|
paidCents: number;
|
|
@@ -1017,7 +1017,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
|
|
|
1017
1017
|
invoiceId: string;
|
|
1018
1018
|
invoiceNumber: string;
|
|
1019
1019
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1020
|
-
status: "
|
|
1020
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
1021
1021
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
1022
1022
|
amountCents: number;
|
|
1023
1023
|
currency: string;
|
|
@@ -1034,7 +1034,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
|
|
|
1034
1034
|
invoiceId: string;
|
|
1035
1035
|
invoiceNumber: string;
|
|
1036
1036
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1037
|
-
status: "
|
|
1037
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
1038
1038
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
1039
1039
|
amountCents: number;
|
|
1040
1040
|
currency: string;
|
|
@@ -1052,7 +1052,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
|
|
|
1052
1052
|
invoiceId: string;
|
|
1053
1053
|
invoiceNumber: string;
|
|
1054
1054
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1055
|
-
status: "
|
|
1055
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
1056
1056
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
1057
1057
|
amountCents: number;
|
|
1058
1058
|
currency: string;
|
|
@@ -1072,7 +1072,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
|
|
|
1072
1072
|
invoiceId: string;
|
|
1073
1073
|
invoiceNumber: string;
|
|
1074
1074
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1075
|
-
status: "
|
|
1075
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
1076
1076
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
1077
1077
|
amountCents: number;
|
|
1078
1078
|
currency: string;
|
|
@@ -1094,7 +1094,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
|
|
|
1094
1094
|
invoiceId: string | null;
|
|
1095
1095
|
bookingPaymentScheduleId: string | null;
|
|
1096
1096
|
bookingGuaranteeId: string | null;
|
|
1097
|
-
status: "
|
|
1097
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1098
1098
|
provider: string | null;
|
|
1099
1099
|
providerSessionId: string | null;
|
|
1100
1100
|
providerPaymentId: string | null;
|
|
@@ -1122,7 +1122,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
|
|
|
1122
1122
|
invoiceId: string | null;
|
|
1123
1123
|
bookingPaymentScheduleId: string | null;
|
|
1124
1124
|
bookingGuaranteeId: string | null;
|
|
1125
|
-
status: "
|
|
1125
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1126
1126
|
provider: string | null;
|
|
1127
1127
|
providerSessionId: string | null;
|
|
1128
1128
|
providerPaymentId: string | null;
|
|
@@ -1151,7 +1151,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
|
|
|
1151
1151
|
invoiceId: string | null;
|
|
1152
1152
|
bookingPaymentScheduleId: string | null;
|
|
1153
1153
|
bookingGuaranteeId: string | null;
|
|
1154
|
-
status: "
|
|
1154
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1155
1155
|
provider: string | null;
|
|
1156
1156
|
providerSessionId: string | null;
|
|
1157
1157
|
providerPaymentId: string | null;
|
|
@@ -1182,7 +1182,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
|
|
|
1182
1182
|
invoiceId: string | null;
|
|
1183
1183
|
bookingPaymentScheduleId: string | null;
|
|
1184
1184
|
bookingGuaranteeId: string | null;
|
|
1185
|
-
status: "
|
|
1185
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1186
1186
|
provider: string | null;
|
|
1187
1187
|
providerSessionId: string | null;
|
|
1188
1188
|
providerPaymentId: string | null;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -16,16 +16,16 @@ export declare const successEnvelope: z.ZodObject<{
|
|
|
16
16
|
success: z.ZodBoolean;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export declare const invoiceStatusSchema: z.ZodEnum<{
|
|
19
|
+
void: "void";
|
|
19
20
|
draft: "draft";
|
|
20
21
|
sent: "sent";
|
|
21
22
|
partially_paid: "partially_paid";
|
|
22
23
|
paid: "paid";
|
|
23
24
|
overdue: "overdue";
|
|
24
|
-
void: "void";
|
|
25
25
|
}>;
|
|
26
26
|
export declare const paymentStatusSchema: z.ZodEnum<{
|
|
27
|
-
completed: "completed";
|
|
28
27
|
pending: "pending";
|
|
28
|
+
completed: "completed";
|
|
29
29
|
failed: "failed";
|
|
30
30
|
refunded: "refunded";
|
|
31
31
|
}>;
|
|
@@ -41,12 +41,12 @@ export declare const invoiceRecordSchema: z.ZodObject<{
|
|
|
41
41
|
personId: z.ZodNullable<z.ZodString>;
|
|
42
42
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
43
43
|
status: z.ZodEnum<{
|
|
44
|
+
void: "void";
|
|
44
45
|
draft: "draft";
|
|
45
46
|
sent: "sent";
|
|
46
47
|
partially_paid: "partially_paid";
|
|
47
48
|
paid: "paid";
|
|
48
49
|
overdue: "overdue";
|
|
49
|
-
void: "void";
|
|
50
50
|
}>;
|
|
51
51
|
currency: z.ZodString;
|
|
52
52
|
subtotalCents: z.ZodNumber;
|
|
@@ -80,8 +80,8 @@ export declare const paymentRecordSchema: z.ZodObject<{
|
|
|
80
80
|
currency: z.ZodString;
|
|
81
81
|
paymentMethod: z.ZodString;
|
|
82
82
|
status: z.ZodEnum<{
|
|
83
|
-
completed: "completed";
|
|
84
83
|
pending: "pending";
|
|
84
|
+
completed: "completed";
|
|
85
85
|
failed: "failed";
|
|
86
86
|
refunded: "refunded";
|
|
87
87
|
}>;
|
|
@@ -123,8 +123,8 @@ export declare const supplierPaymentRecordSchema: z.ZodObject<{
|
|
|
123
123
|
currency: z.ZodString;
|
|
124
124
|
paymentMethod: z.ZodString;
|
|
125
125
|
status: z.ZodEnum<{
|
|
126
|
-
completed: "completed";
|
|
127
126
|
pending: "pending";
|
|
127
|
+
completed: "completed";
|
|
128
128
|
failed: "failed";
|
|
129
129
|
refunded: "refunded";
|
|
130
130
|
}>;
|
|
@@ -142,9 +142,9 @@ export declare const paymentScheduleTypeSchema: z.ZodEnum<{
|
|
|
142
142
|
hold: "hold";
|
|
143
143
|
}>;
|
|
144
144
|
export declare const paymentScheduleStatusSchema: z.ZodEnum<{
|
|
145
|
+
pending: "pending";
|
|
145
146
|
expired: "expired";
|
|
146
147
|
cancelled: "cancelled";
|
|
147
|
-
pending: "pending";
|
|
148
148
|
paid: "paid";
|
|
149
149
|
due: "due";
|
|
150
150
|
waived: "waived";
|
|
@@ -161,9 +161,9 @@ export declare const bookingPaymentScheduleRecordSchema: z.ZodObject<{
|
|
|
161
161
|
hold: "hold";
|
|
162
162
|
}>;
|
|
163
163
|
status: z.ZodEnum<{
|
|
164
|
+
pending: "pending";
|
|
164
165
|
expired: "expired";
|
|
165
166
|
cancelled: "cancelled";
|
|
166
|
-
pending: "pending";
|
|
167
167
|
paid: "paid";
|
|
168
168
|
due: "due";
|
|
169
169
|
waived: "waived";
|
|
@@ -189,9 +189,9 @@ export declare const bookingPaymentSchedulesResponse: z.ZodObject<{
|
|
|
189
189
|
hold: "hold";
|
|
190
190
|
}>;
|
|
191
191
|
status: z.ZodEnum<{
|
|
192
|
+
pending: "pending";
|
|
192
193
|
expired: "expired";
|
|
193
194
|
cancelled: "cancelled";
|
|
194
|
-
pending: "pending";
|
|
195
195
|
paid: "paid";
|
|
196
196
|
due: "due";
|
|
197
197
|
waived: "waived";
|
|
@@ -215,9 +215,9 @@ export declare const guaranteeTypeSchema: z.ZodEnum<{
|
|
|
215
215
|
agency_letter: "agency_letter";
|
|
216
216
|
}>;
|
|
217
217
|
export declare const guaranteeStatusSchema: z.ZodEnum<{
|
|
218
|
+
pending: "pending";
|
|
218
219
|
expired: "expired";
|
|
219
220
|
cancelled: "cancelled";
|
|
220
|
-
pending: "pending";
|
|
221
221
|
released: "released";
|
|
222
222
|
failed: "failed";
|
|
223
223
|
active: "active";
|
|
@@ -238,9 +238,9 @@ export declare const bookingGuaranteeRecordSchema: z.ZodObject<{
|
|
|
238
238
|
agency_letter: "agency_letter";
|
|
239
239
|
}>;
|
|
240
240
|
status: z.ZodEnum<{
|
|
241
|
+
pending: "pending";
|
|
241
242
|
expired: "expired";
|
|
242
243
|
cancelled: "cancelled";
|
|
243
|
-
pending: "pending";
|
|
244
244
|
released: "released";
|
|
245
245
|
failed: "failed";
|
|
246
246
|
active: "active";
|
|
@@ -274,9 +274,9 @@ export declare const bookingGuaranteesResponse: z.ZodObject<{
|
|
|
274
274
|
agency_letter: "agency_letter";
|
|
275
275
|
}>;
|
|
276
276
|
status: z.ZodEnum<{
|
|
277
|
+
pending: "pending";
|
|
277
278
|
expired: "expired";
|
|
278
279
|
cancelled: "cancelled";
|
|
279
|
-
pending: "pending";
|
|
280
280
|
released: "released";
|
|
281
281
|
failed: "failed";
|
|
282
282
|
active: "active";
|
|
@@ -301,12 +301,12 @@ export declare const invoiceListResponse: z.ZodObject<{
|
|
|
301
301
|
personId: z.ZodNullable<z.ZodString>;
|
|
302
302
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
303
303
|
status: z.ZodEnum<{
|
|
304
|
+
void: "void";
|
|
304
305
|
draft: "draft";
|
|
305
306
|
sent: "sent";
|
|
306
307
|
partially_paid: "partially_paid";
|
|
307
308
|
paid: "paid";
|
|
308
309
|
overdue: "overdue";
|
|
309
|
-
void: "void";
|
|
310
310
|
}>;
|
|
311
311
|
currency: z.ZodString;
|
|
312
312
|
subtotalCents: z.ZodNumber;
|
|
@@ -333,8 +333,8 @@ export declare const supplierPaymentListResponse: z.ZodObject<{
|
|
|
333
333
|
currency: z.ZodString;
|
|
334
334
|
paymentMethod: z.ZodString;
|
|
335
335
|
status: z.ZodEnum<{
|
|
336
|
-
completed: "completed";
|
|
337
336
|
pending: "pending";
|
|
337
|
+
completed: "completed";
|
|
338
338
|
failed: "failed";
|
|
339
339
|
refunded: "refunded";
|
|
340
340
|
}>;
|
|
@@ -355,12 +355,12 @@ export declare const invoiceSingleResponse: z.ZodObject<{
|
|
|
355
355
|
personId: z.ZodNullable<z.ZodString>;
|
|
356
356
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
357
357
|
status: z.ZodEnum<{
|
|
358
|
+
void: "void";
|
|
358
359
|
draft: "draft";
|
|
359
360
|
sent: "sent";
|
|
360
361
|
partially_paid: "partially_paid";
|
|
361
362
|
paid: "paid";
|
|
362
363
|
overdue: "overdue";
|
|
363
|
-
void: "void";
|
|
364
364
|
}>;
|
|
365
365
|
currency: z.ZodString;
|
|
366
366
|
subtotalCents: z.ZodNumber;
|
|
@@ -396,8 +396,8 @@ export declare const invoicePaymentsResponse: z.ZodObject<{
|
|
|
396
396
|
currency: z.ZodString;
|
|
397
397
|
paymentMethod: z.ZodString;
|
|
398
398
|
status: z.ZodEnum<{
|
|
399
|
-
completed: "completed";
|
|
400
399
|
pending: "pending";
|
|
400
|
+
completed: "completed";
|
|
401
401
|
failed: "failed";
|
|
402
402
|
refunded: "refunded";
|
|
403
403
|
}>;
|
|
@@ -474,9 +474,9 @@ export declare const publicBookingPaymentOptionsResponse: z.ZodObject<{
|
|
|
474
474
|
hold: "hold";
|
|
475
475
|
}>;
|
|
476
476
|
status: z.ZodEnum<{
|
|
477
|
+
pending: "pending";
|
|
477
478
|
expired: "expired";
|
|
478
479
|
cancelled: "cancelled";
|
|
479
|
-
pending: "pending";
|
|
480
480
|
paid: "paid";
|
|
481
481
|
due: "due";
|
|
482
482
|
waived: "waived";
|
|
@@ -519,12 +519,12 @@ export declare const publicBookingFinanceDocumentsResponse: z.ZodObject<{
|
|
|
519
519
|
credit_note: "credit_note";
|
|
520
520
|
}>;
|
|
521
521
|
invoiceStatus: z.ZodEnum<{
|
|
522
|
+
void: "void";
|
|
522
523
|
draft: "draft";
|
|
523
524
|
sent: "sent";
|
|
524
525
|
partially_paid: "partially_paid";
|
|
525
526
|
paid: "paid";
|
|
526
527
|
overdue: "overdue";
|
|
527
|
-
void: "void";
|
|
528
528
|
}>;
|
|
529
529
|
currency: z.ZodString;
|
|
530
530
|
totalCents: z.ZodNumber;
|
|
@@ -564,12 +564,12 @@ export declare const publicFinanceDocumentLookupResponse: z.ZodObject<{
|
|
|
564
564
|
credit_note: "credit_note";
|
|
565
565
|
}>;
|
|
566
566
|
invoiceStatus: z.ZodEnum<{
|
|
567
|
+
void: "void";
|
|
567
568
|
draft: "draft";
|
|
568
569
|
sent: "sent";
|
|
569
570
|
partially_paid: "partially_paid";
|
|
570
571
|
paid: "paid";
|
|
571
572
|
overdue: "overdue";
|
|
572
|
-
void: "void";
|
|
573
573
|
}>;
|
|
574
574
|
currency: z.ZodString;
|
|
575
575
|
totalCents: z.ZodNumber;
|
|
@@ -612,8 +612,8 @@ export declare const publicBookingFinancePaymentsResponse: z.ZodObject<{
|
|
|
612
612
|
credit_note: "credit_note";
|
|
613
613
|
}>;
|
|
614
614
|
status: z.ZodEnum<{
|
|
615
|
-
completed: "completed";
|
|
616
615
|
pending: "pending";
|
|
616
|
+
completed: "completed";
|
|
617
617
|
failed: "failed";
|
|
618
618
|
refunded: "refunded";
|
|
619
619
|
}>;
|
|
@@ -653,9 +653,9 @@ export declare const publicPaymentSessionResponse: z.ZodObject<{
|
|
|
653
653
|
bookingPaymentScheduleId: z.ZodNullable<z.ZodString>;
|
|
654
654
|
bookingGuaranteeId: z.ZodNullable<z.ZodString>;
|
|
655
655
|
status: z.ZodEnum<{
|
|
656
|
+
pending: "pending";
|
|
656
657
|
expired: "expired";
|
|
657
658
|
cancelled: "cancelled";
|
|
658
|
-
pending: "pending";
|
|
659
659
|
failed: "failed";
|
|
660
660
|
paid: "paid";
|
|
661
661
|
requires_redirect: "requires_redirect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/finance-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react": "^19.0.0",
|
|
36
36
|
"react-dom": "^19.0.0",
|
|
37
37
|
"zod": "^4.0.0",
|
|
38
|
-
"@voyantjs/finance": "0.
|
|
38
|
+
"@voyantjs/finance": "0.6.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"typescript": "^6.0.2",
|
|
47
47
|
"vitest": "^4.1.2",
|
|
48
48
|
"zod": "^4.3.6",
|
|
49
|
-
"@voyantjs/finance": "0.
|
|
50
|
-
"@voyantjs/react": "0.
|
|
49
|
+
"@voyantjs/finance": "0.6.2",
|
|
50
|
+
"@voyantjs/react": "0.6.2",
|
|
51
51
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@voyantjs/react": "0.
|
|
54
|
+
"@voyantjs/react": "0.6.2"
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
57
|
"dist"
|