@voyantjs/finance 0.28.3 → 0.29.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.
- package/dist/routes-public.d.ts +14 -14
- package/dist/routes.d.ts +35 -35
- package/dist/schema.d.ts +6 -6
- package/dist/service-bookings-dual-create.d.ts +6 -4
- package/dist/service-bookings-dual-create.d.ts.map +1 -1
- package/dist/service-bookings-quick-create.d.ts +4 -3
- package/dist/service-bookings-quick-create.d.ts.map +1 -1
- package/dist/service-bookings-quick-create.js +8 -0
- package/dist/service-public.d.ts +6 -6
- package/dist/service.d.ts +41 -41
- package/dist/validation-payments.d.ts +18 -18
- package/dist/validation-public.d.ts +5 -5
- package/dist/validation-shared.d.ts +6 -6
- package/package.json +7 -7
|
@@ -70,6 +70,13 @@ export const quickCreateBookingSchema = z.object({
|
|
|
70
70
|
personId: z.string().optional().nullable(),
|
|
71
71
|
organizationId: z.string().optional().nullable(),
|
|
72
72
|
internalNotes: z.string().optional().nullable(),
|
|
73
|
+
/**
|
|
74
|
+
* Override the seed `sellAmountCents` on the new booking + line item.
|
|
75
|
+
* Threads through to `convertProductToBooking` so promotion-discounted
|
|
76
|
+
* quotes land at the discounted amount instead of the product's list
|
|
77
|
+
* price. Per docs/architecture/promotions-architecture.md §7.1.
|
|
78
|
+
*/
|
|
79
|
+
sellAmountCentsOverride: z.number().int().min(0).optional().nullable(),
|
|
73
80
|
// Orchestration fields
|
|
74
81
|
travelers: z.array(travelerInputSchema).optional(),
|
|
75
82
|
paymentSchedules: z.array(paymentScheduleInputSchema).optional(),
|
|
@@ -149,6 +156,7 @@ export async function quickCreateBooking(db, rawInput, options = {}) {
|
|
|
149
156
|
personId: input.personId ?? null,
|
|
150
157
|
organizationId: input.organizationId ?? null,
|
|
151
158
|
internalNotes: input.internalNotes ?? null,
|
|
159
|
+
sellAmountCentsOverride: input.sellAmountCentsOverride ?? null,
|
|
152
160
|
});
|
|
153
161
|
if (!booking) {
|
|
154
162
|
// Caller gave us a product that doesn't resolve. Throw so drizzle
|
package/dist/service-public.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const publicFinanceService: {
|
|
|
23
23
|
schedules: {
|
|
24
24
|
id: string;
|
|
25
25
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
26
|
-
status: "pending" | "
|
|
26
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
27
27
|
dueDate: string;
|
|
28
28
|
currency: string;
|
|
29
29
|
amountCents: number;
|
|
@@ -33,7 +33,7 @@ export declare const publicFinanceService: {
|
|
|
33
33
|
id: string;
|
|
34
34
|
bookingPaymentScheduleId: string | null;
|
|
35
35
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
36
|
-
status: "pending" | "
|
|
36
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
37
37
|
currency: string | null;
|
|
38
38
|
amountCents: number | null;
|
|
39
39
|
provider: string | null;
|
|
@@ -55,7 +55,7 @@ export declare const publicFinanceService: {
|
|
|
55
55
|
invoiceId: string | null;
|
|
56
56
|
bookingPaymentScheduleId: string | null;
|
|
57
57
|
bookingGuaranteeId: string | null;
|
|
58
|
-
status: "pending" | "failed" | "
|
|
58
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
59
59
|
provider: string | null;
|
|
60
60
|
providerSessionId: string | null;
|
|
61
61
|
providerPaymentId: string | null;
|
|
@@ -83,7 +83,7 @@ export declare const publicFinanceService: {
|
|
|
83
83
|
invoiceId: string | null;
|
|
84
84
|
bookingPaymentScheduleId: string | null;
|
|
85
85
|
bookingGuaranteeId: string | null;
|
|
86
|
-
status: "pending" | "failed" | "
|
|
86
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
87
87
|
provider: string | null;
|
|
88
88
|
providerSessionId: string | null;
|
|
89
89
|
providerPaymentId: string | null;
|
|
@@ -111,7 +111,7 @@ export declare const publicFinanceService: {
|
|
|
111
111
|
invoiceId: string | null;
|
|
112
112
|
bookingPaymentScheduleId: string | null;
|
|
113
113
|
bookingGuaranteeId: string | null;
|
|
114
|
-
status: "pending" | "failed" | "
|
|
114
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
115
115
|
provider: string | null;
|
|
116
116
|
providerSessionId: string | null;
|
|
117
117
|
providerPaymentId: string | null;
|
|
@@ -139,7 +139,7 @@ export declare const publicFinanceService: {
|
|
|
139
139
|
invoiceId: string | null;
|
|
140
140
|
bookingPaymentScheduleId: string | null;
|
|
141
141
|
bookingGuaranteeId: string | null;
|
|
142
|
-
status: "pending" | "failed" | "
|
|
142
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
143
143
|
provider: string | null;
|
|
144
144
|
providerSessionId: string | null;
|
|
145
145
|
providerPaymentId: string | null;
|
package/dist/service.d.ts
CHANGED
|
@@ -422,7 +422,7 @@ export declare const financeService: {
|
|
|
422
422
|
paymentAuthorizationId: string | null;
|
|
423
423
|
paymentCaptureId: string | null;
|
|
424
424
|
paymentId: string | null;
|
|
425
|
-
status: "pending" | "failed" | "
|
|
425
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
426
426
|
provider: string | null;
|
|
427
427
|
providerSessionId: string | null;
|
|
428
428
|
providerPaymentId: string | null;
|
|
@@ -470,7 +470,7 @@ export declare const financeService: {
|
|
|
470
470
|
paymentAuthorizationId: string | null;
|
|
471
471
|
paymentCaptureId: string | null;
|
|
472
472
|
paymentId: string | null;
|
|
473
|
-
status: "pending" | "failed" | "
|
|
473
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
474
474
|
provider: string | null;
|
|
475
475
|
providerSessionId: string | null;
|
|
476
476
|
providerPaymentId: string | null;
|
|
@@ -507,7 +507,7 @@ export declare const financeService: {
|
|
|
507
507
|
createdAt: Date;
|
|
508
508
|
updatedAt: Date;
|
|
509
509
|
expiresAt: Date | null;
|
|
510
|
-
status: "pending" | "failed" | "
|
|
510
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
511
511
|
currency: string;
|
|
512
512
|
notes: string | null;
|
|
513
513
|
idempotencyKey: string | null;
|
|
@@ -558,7 +558,7 @@ export declare const financeService: {
|
|
|
558
558
|
paymentAuthorizationId: string | null;
|
|
559
559
|
paymentCaptureId: string | null;
|
|
560
560
|
paymentId: string | null;
|
|
561
|
-
status: "pending" | "failed" | "
|
|
561
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
562
562
|
provider: string | null;
|
|
563
563
|
providerSessionId: string | null;
|
|
564
564
|
providerPaymentId: string | null;
|
|
@@ -602,7 +602,7 @@ export declare const financeService: {
|
|
|
602
602
|
paymentAuthorizationId: string | null;
|
|
603
603
|
paymentCaptureId: string | null;
|
|
604
604
|
paymentId: string | null;
|
|
605
|
-
status: "pending" | "failed" | "
|
|
605
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
606
606
|
provider: string | null;
|
|
607
607
|
providerSessionId: string | null;
|
|
608
608
|
providerPaymentId: string | null;
|
|
@@ -646,7 +646,7 @@ export declare const financeService: {
|
|
|
646
646
|
paymentAuthorizationId: string | null;
|
|
647
647
|
paymentCaptureId: string | null;
|
|
648
648
|
paymentId: string | null;
|
|
649
|
-
status: "pending" | "failed" | "
|
|
649
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
650
650
|
provider: string | null;
|
|
651
651
|
providerSessionId: string | null;
|
|
652
652
|
providerPaymentId: string | null;
|
|
@@ -690,7 +690,7 @@ export declare const financeService: {
|
|
|
690
690
|
paymentAuthorizationId: string | null;
|
|
691
691
|
paymentCaptureId: string | null;
|
|
692
692
|
paymentId: string | null;
|
|
693
|
-
status: "pending" | "failed" | "
|
|
693
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
694
694
|
provider: string | null;
|
|
695
695
|
providerSessionId: string | null;
|
|
696
696
|
providerPaymentId: string | null;
|
|
@@ -734,7 +734,7 @@ export declare const financeService: {
|
|
|
734
734
|
paymentAuthorizationId: string | null;
|
|
735
735
|
paymentCaptureId: string | null;
|
|
736
736
|
paymentId: string | null;
|
|
737
|
-
status: "pending" | "failed" | "
|
|
737
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
738
738
|
provider: string | null;
|
|
739
739
|
providerSessionId: string | null;
|
|
740
740
|
providerPaymentId: string | null;
|
|
@@ -778,7 +778,7 @@ export declare const financeService: {
|
|
|
778
778
|
paymentAuthorizationId: string | null;
|
|
779
779
|
paymentCaptureId: string | null;
|
|
780
780
|
paymentId: string | null;
|
|
781
|
-
status: "pending" | "failed" | "
|
|
781
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
782
782
|
provider: string | null;
|
|
783
783
|
providerSessionId: string | null;
|
|
784
784
|
providerPaymentId: string | null;
|
|
@@ -906,7 +906,7 @@ export declare const financeService: {
|
|
|
906
906
|
id: string;
|
|
907
907
|
paymentAuthorizationId: string | null;
|
|
908
908
|
invoiceId: string | null;
|
|
909
|
-
status: "pending" | "
|
|
909
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
910
910
|
currency: string;
|
|
911
911
|
amountCents: number;
|
|
912
912
|
provider: string | null;
|
|
@@ -925,7 +925,7 @@ export declare const financeService: {
|
|
|
925
925
|
id: string;
|
|
926
926
|
paymentAuthorizationId: string | null;
|
|
927
927
|
invoiceId: string | null;
|
|
928
|
-
status: "pending" | "
|
|
928
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
929
929
|
currency: string;
|
|
930
930
|
amountCents: number;
|
|
931
931
|
provider: string | null;
|
|
@@ -940,7 +940,7 @@ export declare const financeService: {
|
|
|
940
940
|
id: string;
|
|
941
941
|
createdAt: Date;
|
|
942
942
|
updatedAt: Date;
|
|
943
|
-
status: "pending" | "
|
|
943
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
944
944
|
currency: string;
|
|
945
945
|
notes: string | null;
|
|
946
946
|
provider: string | null;
|
|
@@ -955,7 +955,7 @@ export declare const financeService: {
|
|
|
955
955
|
id: string;
|
|
956
956
|
paymentAuthorizationId: string | null;
|
|
957
957
|
invoiceId: string | null;
|
|
958
|
-
status: "pending" | "
|
|
958
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
959
959
|
currency: string;
|
|
960
960
|
amountCents: number;
|
|
961
961
|
provider: string | null;
|
|
@@ -1043,7 +1043,7 @@ export declare const financeService: {
|
|
|
1043
1043
|
tableName: "booking_payment_schedules";
|
|
1044
1044
|
dataType: "string";
|
|
1045
1045
|
columnType: "PgEnumColumn";
|
|
1046
|
-
data: "pending" | "
|
|
1046
|
+
data: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1047
1047
|
driverParam: string;
|
|
1048
1048
|
notNull: true;
|
|
1049
1049
|
hasDefault: true;
|
|
@@ -1162,7 +1162,7 @@ export declare const financeService: {
|
|
|
1162
1162
|
bookingId: string;
|
|
1163
1163
|
bookingItemId: string | null;
|
|
1164
1164
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1165
|
-
status: "pending" | "
|
|
1165
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1166
1166
|
dueDate: string;
|
|
1167
1167
|
currency: string;
|
|
1168
1168
|
amountCents: number;
|
|
@@ -1243,7 +1243,7 @@ export declare const financeService: {
|
|
|
1243
1243
|
tableName: "booking_payment_schedules";
|
|
1244
1244
|
dataType: "string";
|
|
1245
1245
|
columnType: "PgEnumColumn";
|
|
1246
|
-
data: "pending" | "
|
|
1246
|
+
data: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1247
1247
|
driverParam: string;
|
|
1248
1248
|
notNull: true;
|
|
1249
1249
|
hasDefault: true;
|
|
@@ -1362,7 +1362,7 @@ export declare const financeService: {
|
|
|
1362
1362
|
id: string;
|
|
1363
1363
|
createdAt: Date;
|
|
1364
1364
|
updatedAt: Date;
|
|
1365
|
-
status: "pending" | "
|
|
1365
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1366
1366
|
currency: string;
|
|
1367
1367
|
notes: string | null;
|
|
1368
1368
|
bookingId: string;
|
|
@@ -1396,7 +1396,7 @@ export declare const financeService: {
|
|
|
1396
1396
|
id: string;
|
|
1397
1397
|
createdAt: Date;
|
|
1398
1398
|
updatedAt: Date;
|
|
1399
|
-
status: "pending" | "
|
|
1399
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1400
1400
|
currency: string;
|
|
1401
1401
|
notes: string | null;
|
|
1402
1402
|
bookingId: string;
|
|
@@ -1409,7 +1409,7 @@ export declare const financeService: {
|
|
|
1409
1409
|
id: string;
|
|
1410
1410
|
createdAt: Date;
|
|
1411
1411
|
updatedAt: Date;
|
|
1412
|
-
status: "pending" | "
|
|
1412
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1413
1413
|
currency: string;
|
|
1414
1414
|
notes: string | null;
|
|
1415
1415
|
bookingId: string;
|
|
@@ -1423,7 +1423,7 @@ export declare const financeService: {
|
|
|
1423
1423
|
bookingId: string;
|
|
1424
1424
|
bookingItemId: string | null;
|
|
1425
1425
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1426
|
-
status: "pending" | "
|
|
1426
|
+
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1427
1427
|
dueDate: string;
|
|
1428
1428
|
currency: string;
|
|
1429
1429
|
amountCents: number;
|
|
@@ -1440,7 +1440,7 @@ export declare const financeService: {
|
|
|
1440
1440
|
createdAt: Date;
|
|
1441
1441
|
updatedAt: Date;
|
|
1442
1442
|
expiresAt: Date | null;
|
|
1443
|
-
status: "pending" | "failed" | "
|
|
1443
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1444
1444
|
currency: string;
|
|
1445
1445
|
notes: string | null;
|
|
1446
1446
|
idempotencyKey: string | null;
|
|
@@ -1484,7 +1484,7 @@ export declare const financeService: {
|
|
|
1484
1484
|
createdAt: Date;
|
|
1485
1485
|
updatedAt: Date;
|
|
1486
1486
|
expiresAt: Date | null;
|
|
1487
|
-
status: "pending" | "failed" | "
|
|
1487
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1488
1488
|
currency: string;
|
|
1489
1489
|
notes: string | null;
|
|
1490
1490
|
idempotencyKey: string | null;
|
|
@@ -1613,7 +1613,7 @@ export declare const financeService: {
|
|
|
1613
1613
|
tableName: "booking_guarantees";
|
|
1614
1614
|
dataType: "string";
|
|
1615
1615
|
columnType: "PgEnumColumn";
|
|
1616
|
-
data: "pending" | "
|
|
1616
|
+
data: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1617
1617
|
driverParam: string;
|
|
1618
1618
|
notNull: true;
|
|
1619
1619
|
hasDefault: true;
|
|
@@ -1835,7 +1835,7 @@ export declare const financeService: {
|
|
|
1835
1835
|
bookingPaymentScheduleId: string | null;
|
|
1836
1836
|
bookingItemId: string | null;
|
|
1837
1837
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1838
|
-
status: "pending" | "
|
|
1838
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1839
1839
|
paymentInstrumentId: string | null;
|
|
1840
1840
|
paymentAuthorizationId: string | null;
|
|
1841
1841
|
currency: string | null;
|
|
@@ -1939,7 +1939,7 @@ export declare const financeService: {
|
|
|
1939
1939
|
tableName: "booking_guarantees";
|
|
1940
1940
|
dataType: "string";
|
|
1941
1941
|
columnType: "PgEnumColumn";
|
|
1942
|
-
data: "pending" | "
|
|
1942
|
+
data: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1943
1943
|
driverParam: string;
|
|
1944
1944
|
notNull: true;
|
|
1945
1945
|
hasDefault: true;
|
|
@@ -2161,7 +2161,7 @@ export declare const financeService: {
|
|
|
2161
2161
|
createdAt: Date;
|
|
2162
2162
|
updatedAt: Date;
|
|
2163
2163
|
expiresAt: Date | null;
|
|
2164
|
-
status: "pending" | "
|
|
2164
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
2165
2165
|
currency: string | null;
|
|
2166
2166
|
notes: string | null;
|
|
2167
2167
|
provider: string | null;
|
|
@@ -2182,7 +2182,7 @@ export declare const financeService: {
|
|
|
2182
2182
|
createdAt: Date;
|
|
2183
2183
|
updatedAt: Date;
|
|
2184
2184
|
expiresAt: Date | null;
|
|
2185
|
-
status: "pending" | "failed" | "
|
|
2185
|
+
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2186
2186
|
currency: string;
|
|
2187
2187
|
notes: string | null;
|
|
2188
2188
|
idempotencyKey: string | null;
|
|
@@ -2226,7 +2226,7 @@ export declare const financeService: {
|
|
|
2226
2226
|
bookingPaymentScheduleId: string | null;
|
|
2227
2227
|
bookingItemId: string | null;
|
|
2228
2228
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
2229
|
-
status: "pending" | "
|
|
2229
|
+
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
2230
2230
|
paymentInstrumentId: string | null;
|
|
2231
2231
|
paymentAuthorizationId: string | null;
|
|
2232
2232
|
currency: string | null;
|
|
@@ -2738,8 +2738,8 @@ export declare const financeService: {
|
|
|
2738
2738
|
}, {}, {}>;
|
|
2739
2739
|
}>, "where" | "orderBy">;
|
|
2740
2740
|
createBookingItemTaxLine(db: PostgresJsDatabase, bookingItemId: string, data: CreateBookingItemTaxLineInput): Promise<{
|
|
2741
|
-
id: string;
|
|
2742
2741
|
name: string;
|
|
2742
|
+
id: string;
|
|
2743
2743
|
createdAt: Date;
|
|
2744
2744
|
updatedAt: Date;
|
|
2745
2745
|
scope: "included" | "excluded" | "withheld";
|
|
@@ -3347,7 +3347,7 @@ export declare const financeService: {
|
|
|
3347
3347
|
fxRateSetId: string | null;
|
|
3348
3348
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
3349
3349
|
paymentInstrumentId: string | null;
|
|
3350
|
-
status: "pending" | "
|
|
3350
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
3351
3351
|
referenceNumber: string | null;
|
|
3352
3352
|
paymentDate: string;
|
|
3353
3353
|
notes: string | null;
|
|
@@ -3362,7 +3362,7 @@ export declare const financeService: {
|
|
|
3362
3362
|
id: string;
|
|
3363
3363
|
createdAt: Date;
|
|
3364
3364
|
updatedAt: Date;
|
|
3365
|
-
status: "pending" | "
|
|
3365
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
3366
3366
|
currency: string;
|
|
3367
3367
|
notes: string | null;
|
|
3368
3368
|
bookingId: string;
|
|
@@ -3389,7 +3389,7 @@ export declare const financeService: {
|
|
|
3389
3389
|
fxRateSetId: string | null;
|
|
3390
3390
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
3391
3391
|
paymentInstrumentId: string | null;
|
|
3392
|
-
status: "pending" | "
|
|
3392
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
3393
3393
|
referenceNumber: string | null;
|
|
3394
3394
|
paymentDate: string;
|
|
3395
3395
|
notes: string | null;
|
|
@@ -4157,7 +4157,7 @@ export declare const financeService: {
|
|
|
4157
4157
|
tableName: "payments";
|
|
4158
4158
|
dataType: "string";
|
|
4159
4159
|
columnType: "PgEnumColumn";
|
|
4160
|
-
data: "pending" | "
|
|
4160
|
+
data: "pending" | "completed" | "failed" | "refunded";
|
|
4161
4161
|
driverParam: string;
|
|
4162
4162
|
notNull: true;
|
|
4163
4163
|
hasDefault: true;
|
|
@@ -4266,7 +4266,7 @@ export declare const financeService: {
|
|
|
4266
4266
|
paymentInstrumentId: string | null;
|
|
4267
4267
|
paymentAuthorizationId: string | null;
|
|
4268
4268
|
paymentCaptureId: string | null;
|
|
4269
|
-
status: "pending" | "
|
|
4269
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
4270
4270
|
referenceNumber: string | null;
|
|
4271
4271
|
paymentDate: string;
|
|
4272
4272
|
notes: string | null;
|
|
@@ -4465,7 +4465,7 @@ export declare const financeService: {
|
|
|
4465
4465
|
tableName: "payments";
|
|
4466
4466
|
dataType: "string";
|
|
4467
4467
|
columnType: "PgEnumColumn";
|
|
4468
|
-
data: "pending" | "
|
|
4468
|
+
data: "pending" | "completed" | "failed" | "refunded";
|
|
4469
4469
|
driverParam: string;
|
|
4470
4470
|
notNull: true;
|
|
4471
4471
|
hasDefault: true;
|
|
@@ -4580,7 +4580,7 @@ export declare const financeService: {
|
|
|
4580
4580
|
id: string;
|
|
4581
4581
|
createdAt: Date;
|
|
4582
4582
|
updatedAt: Date;
|
|
4583
|
-
status: "pending" | "
|
|
4583
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
4584
4584
|
currency: string;
|
|
4585
4585
|
notes: string | null;
|
|
4586
4586
|
baseCurrency: string | null;
|
|
@@ -5600,8 +5600,8 @@ export declare const financeService: {
|
|
|
5600
5600
|
updatedAt: Date;
|
|
5601
5601
|
} | null>;
|
|
5602
5602
|
createInvoiceNumberSeries(db: PostgresJsDatabase, data: CreateInvoiceNumberSeriesInput): Promise<{
|
|
5603
|
-
id: string;
|
|
5604
5603
|
name: string;
|
|
5604
|
+
id: string;
|
|
5605
5605
|
prefix: string;
|
|
5606
5606
|
createdAt: Date;
|
|
5607
5607
|
updatedAt: Date;
|
|
@@ -5691,8 +5691,8 @@ export declare const financeService: {
|
|
|
5691
5691
|
} | null>;
|
|
5692
5692
|
createInvoiceTemplate(db: PostgresJsDatabase, data: CreateInvoiceTemplateInput): Promise<{
|
|
5693
5693
|
metadata: unknown;
|
|
5694
|
-
id: string;
|
|
5695
5694
|
name: string;
|
|
5695
|
+
id: string;
|
|
5696
5696
|
createdAt: Date;
|
|
5697
5697
|
updatedAt: Date;
|
|
5698
5698
|
slug: string;
|
|
@@ -5850,8 +5850,8 @@ export declare const financeService: {
|
|
|
5850
5850
|
} | null>;
|
|
5851
5851
|
createTaxRegime(db: PostgresJsDatabase, data: CreateTaxRegimeInput): Promise<{
|
|
5852
5852
|
metadata: unknown;
|
|
5853
|
-
id: string;
|
|
5854
5853
|
name: string;
|
|
5854
|
+
id: string;
|
|
5855
5855
|
createdAt: Date;
|
|
5856
5856
|
updatedAt: Date;
|
|
5857
5857
|
description: string | null;
|
|
@@ -5967,8 +5967,8 @@ export declare const financeService: {
|
|
|
5967
5967
|
updatedAt: Date;
|
|
5968
5968
|
} | null>;
|
|
5969
5969
|
createTaxPolicyProfile(db: PostgresJsDatabase, data: CreateTaxPolicyProfileInput): Promise<{
|
|
5970
|
-
id: string;
|
|
5971
5970
|
name: string;
|
|
5971
|
+
id: string;
|
|
5972
5972
|
createdAt: Date;
|
|
5973
5973
|
updatedAt: Date;
|
|
5974
5974
|
description: string | null;
|
|
@@ -6021,8 +6021,8 @@ export declare const financeService: {
|
|
|
6021
6021
|
updatedAt: Date;
|
|
6022
6022
|
} | null>;
|
|
6023
6023
|
createTaxPolicyRule(db: PostgresJsDatabase, data: CreateTaxPolicyRuleInput): Promise<{
|
|
6024
|
-
id: string;
|
|
6025
6024
|
name: string;
|
|
6025
|
+
id: string;
|
|
6026
6026
|
createdAt: Date;
|
|
6027
6027
|
updatedAt: Date;
|
|
6028
6028
|
active: boolean;
|
|
@@ -146,8 +146,8 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
|
|
|
146
146
|
status: z.ZodDefault<z.ZodEnum<{
|
|
147
147
|
pending: "pending";
|
|
148
148
|
failed: "failed";
|
|
149
|
-
expired: "expired";
|
|
150
149
|
cancelled: "cancelled";
|
|
150
|
+
expired: "expired";
|
|
151
151
|
paid: "paid";
|
|
152
152
|
requires_redirect: "requires_redirect";
|
|
153
153
|
processing: "processing";
|
|
@@ -214,8 +214,8 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
|
|
|
214
214
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
215
215
|
pending: "pending";
|
|
216
216
|
failed: "failed";
|
|
217
|
-
expired: "expired";
|
|
218
217
|
cancelled: "cancelled";
|
|
218
|
+
expired: "expired";
|
|
219
219
|
paid: "paid";
|
|
220
220
|
requires_redirect: "requires_redirect";
|
|
221
221
|
processing: "processing";
|
|
@@ -279,8 +279,8 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
|
|
|
279
279
|
status: z.ZodOptional<z.ZodEnum<{
|
|
280
280
|
pending: "pending";
|
|
281
281
|
failed: "failed";
|
|
282
|
-
expired: "expired";
|
|
283
282
|
cancelled: "cancelled";
|
|
283
|
+
expired: "expired";
|
|
284
284
|
paid: "paid";
|
|
285
285
|
requires_redirect: "requires_redirect";
|
|
286
286
|
processing: "processing";
|
|
@@ -554,8 +554,8 @@ export declare const insertPaymentCaptureSchema: z.ZodObject<{
|
|
|
554
554
|
invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
555
555
|
status: z.ZodDefault<z.ZodEnum<{
|
|
556
556
|
pending: "pending";
|
|
557
|
-
failed: "failed";
|
|
558
557
|
completed: "completed";
|
|
558
|
+
failed: "failed";
|
|
559
559
|
refunded: "refunded";
|
|
560
560
|
voided: "voided";
|
|
561
561
|
}>>;
|
|
@@ -572,8 +572,8 @@ export declare const updatePaymentCaptureSchema: z.ZodObject<{
|
|
|
572
572
|
invoiceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
573
573
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
574
574
|
pending: "pending";
|
|
575
|
-
failed: "failed";
|
|
576
575
|
completed: "completed";
|
|
576
|
+
failed: "failed";
|
|
577
577
|
refunded: "refunded";
|
|
578
578
|
voided: "voided";
|
|
579
579
|
}>>>;
|
|
@@ -592,8 +592,8 @@ export declare const paymentCaptureListQuerySchema: z.ZodObject<{
|
|
|
592
592
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
593
593
|
status: z.ZodOptional<z.ZodEnum<{
|
|
594
594
|
pending: "pending";
|
|
595
|
-
failed: "failed";
|
|
596
595
|
completed: "completed";
|
|
596
|
+
failed: "failed";
|
|
597
597
|
refunded: "refunded";
|
|
598
598
|
voided: "voided";
|
|
599
599
|
}>>;
|
|
@@ -609,8 +609,8 @@ export declare const insertBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
609
609
|
}>>;
|
|
610
610
|
status: z.ZodDefault<z.ZodEnum<{
|
|
611
611
|
pending: "pending";
|
|
612
|
-
expired: "expired";
|
|
613
612
|
cancelled: "cancelled";
|
|
613
|
+
expired: "expired";
|
|
614
614
|
paid: "paid";
|
|
615
615
|
due: "due";
|
|
616
616
|
waived: "waived";
|
|
@@ -631,8 +631,8 @@ export declare const updateBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
631
631
|
}>>>;
|
|
632
632
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
633
633
|
pending: "pending";
|
|
634
|
-
expired: "expired";
|
|
635
634
|
cancelled: "cancelled";
|
|
635
|
+
expired: "expired";
|
|
636
636
|
paid: "paid";
|
|
637
637
|
due: "due";
|
|
638
638
|
waived: "waived";
|
|
@@ -657,10 +657,10 @@ export declare const insertBookingGuaranteeSchema: z.ZodObject<{
|
|
|
657
657
|
}>;
|
|
658
658
|
status: z.ZodDefault<z.ZodEnum<{
|
|
659
659
|
pending: "pending";
|
|
660
|
-
active: "active";
|
|
661
660
|
failed: "failed";
|
|
662
|
-
expired: "expired";
|
|
663
661
|
cancelled: "cancelled";
|
|
662
|
+
active: "active";
|
|
663
|
+
expired: "expired";
|
|
664
664
|
released: "released";
|
|
665
665
|
}>>;
|
|
666
666
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -689,10 +689,10 @@ export declare const updateBookingGuaranteeSchema: z.ZodObject<{
|
|
|
689
689
|
}>>;
|
|
690
690
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
691
691
|
pending: "pending";
|
|
692
|
-
active: "active";
|
|
693
692
|
failed: "failed";
|
|
694
|
-
expired: "expired";
|
|
695
693
|
cancelled: "cancelled";
|
|
694
|
+
active: "active";
|
|
695
|
+
expired: "expired";
|
|
696
696
|
released: "released";
|
|
697
697
|
}>>>;
|
|
698
698
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -728,8 +728,8 @@ export declare const insertPaymentSchema: z.ZodObject<{
|
|
|
728
728
|
paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
729
729
|
status: z.ZodDefault<z.ZodEnum<{
|
|
730
730
|
pending: "pending";
|
|
731
|
-
failed: "failed";
|
|
732
731
|
completed: "completed";
|
|
732
|
+
failed: "failed";
|
|
733
733
|
refunded: "refunded";
|
|
734
734
|
}>>;
|
|
735
735
|
referenceNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -758,8 +758,8 @@ export declare const updatePaymentSchema: z.ZodObject<{
|
|
|
758
758
|
paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
759
759
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
760
760
|
pending: "pending";
|
|
761
|
-
failed: "failed";
|
|
762
761
|
completed: "completed";
|
|
762
|
+
failed: "failed";
|
|
763
763
|
refunded: "refunded";
|
|
764
764
|
}>>>;
|
|
765
765
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -789,8 +789,8 @@ export declare const insertSupplierPaymentSchema: z.ZodObject<{
|
|
|
789
789
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
790
790
|
status: z.ZodDefault<z.ZodEnum<{
|
|
791
791
|
pending: "pending";
|
|
792
|
-
failed: "failed";
|
|
793
792
|
completed: "completed";
|
|
793
|
+
failed: "failed";
|
|
794
794
|
refunded: "refunded";
|
|
795
795
|
}>>;
|
|
796
796
|
referenceNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -820,8 +820,8 @@ export declare const updateSupplierPaymentSchema: z.ZodObject<{
|
|
|
820
820
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
821
821
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
822
822
|
pending: "pending";
|
|
823
|
-
failed: "failed";
|
|
824
823
|
completed: "completed";
|
|
824
|
+
failed: "failed";
|
|
825
825
|
refunded: "refunded";
|
|
826
826
|
}>>>;
|
|
827
827
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -843,8 +843,8 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
|
|
|
843
843
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
844
844
|
status: z.ZodOptional<z.ZodEnum<{
|
|
845
845
|
pending: "pending";
|
|
846
|
-
failed: "failed";
|
|
847
846
|
completed: "completed";
|
|
847
|
+
failed: "failed";
|
|
848
848
|
refunded: "refunded";
|
|
849
849
|
}>>;
|
|
850
850
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
@@ -895,8 +895,8 @@ export declare const paymentListQuerySchema: z.ZodObject<{
|
|
|
895
895
|
}>>;
|
|
896
896
|
status: z.ZodOptional<z.ZodEnum<{
|
|
897
897
|
pending: "pending";
|
|
898
|
-
failed: "failed";
|
|
899
898
|
completed: "completed";
|
|
899
|
+
failed: "failed";
|
|
900
900
|
refunded: "refunded";
|
|
901
901
|
}>>;
|
|
902
902
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
@@ -110,8 +110,8 @@ export declare const publicBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
110
110
|
}>;
|
|
111
111
|
status: z.ZodEnum<{
|
|
112
112
|
pending: "pending";
|
|
113
|
-
expired: "expired";
|
|
114
113
|
cancelled: "cancelled";
|
|
114
|
+
expired: "expired";
|
|
115
115
|
paid: "paid";
|
|
116
116
|
due: "due";
|
|
117
117
|
waived: "waived";
|
|
@@ -173,8 +173,8 @@ export declare const publicBookingPaymentOptionsSchema: z.ZodObject<{
|
|
|
173
173
|
}>;
|
|
174
174
|
status: z.ZodEnum<{
|
|
175
175
|
pending: "pending";
|
|
176
|
-
expired: "expired";
|
|
177
176
|
cancelled: "cancelled";
|
|
177
|
+
expired: "expired";
|
|
178
178
|
paid: "paid";
|
|
179
179
|
due: "due";
|
|
180
180
|
waived: "waived";
|
|
@@ -223,8 +223,8 @@ export declare const publicPaymentSessionSchema: z.ZodObject<{
|
|
|
223
223
|
status: z.ZodEnum<{
|
|
224
224
|
pending: "pending";
|
|
225
225
|
failed: "failed";
|
|
226
|
-
expired: "expired";
|
|
227
226
|
cancelled: "cancelled";
|
|
227
|
+
expired: "expired";
|
|
228
228
|
paid: "paid";
|
|
229
229
|
requires_redirect: "requires_redirect";
|
|
230
230
|
processing: "processing";
|
|
@@ -400,8 +400,8 @@ export declare const publicFinanceBookingPaymentSchema: z.ZodObject<{
|
|
|
400
400
|
}>;
|
|
401
401
|
status: z.ZodEnum<{
|
|
402
402
|
pending: "pending";
|
|
403
|
-
failed: "failed";
|
|
404
403
|
completed: "completed";
|
|
404
|
+
failed: "failed";
|
|
405
405
|
refunded: "refunded";
|
|
406
406
|
}>;
|
|
407
407
|
paymentMethod: z.ZodEnum<{
|
|
@@ -434,8 +434,8 @@ export declare const publicBookingFinancePaymentsSchema: z.ZodObject<{
|
|
|
434
434
|
}>;
|
|
435
435
|
status: z.ZodEnum<{
|
|
436
436
|
pending: "pending";
|
|
437
|
-
failed: "failed";
|
|
438
437
|
completed: "completed";
|
|
438
|
+
failed: "failed";
|
|
439
439
|
refunded: "refunded";
|
|
440
440
|
}>;
|
|
441
441
|
paymentMethod: z.ZodEnum<{
|