@voyantjs/finance 0.5.0 → 0.6.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/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -6
- package/dist/route-runtime.d.ts +13 -0
- package/dist/route-runtime.d.ts.map +1 -0
- package/dist/route-runtime.js +8 -0
- package/dist/routes-documents.d.ts +45 -8
- package/dist/routes-documents.d.ts.map +1 -1
- package/dist/routes-documents.js +51 -8
- package/dist/routes-public.d.ts +564 -9
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +65 -54
- package/dist/routes-settlement.d.ts +3 -2
- package/dist/routes-settlement.d.ts.map +1 -1
- package/dist/routes-settlement.js +9 -8
- package/dist/routes.d.ts +123 -134
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +59 -61
- package/dist/schema.d.ts +9 -9
- package/dist/service-documents.d.ts +0 -1
- package/dist/service-documents.d.ts.map +1 -1
- package/dist/service-documents.js +3 -5
- package/dist/service-public.d.ts +11 -8
- package/dist/service-public.d.ts.map +1 -1
- package/dist/service-public.js +11 -6
- package/dist/service-settlement.d.ts.map +1 -1
- package/dist/service-settlement.js +3 -0
- package/dist/service.d.ts +126 -126
- package/dist/validation-billing.d.ts +6 -6
- package/dist/validation-payments.d.ts +18 -18
- package/dist/validation-public.d.ts +8 -8
- package/dist/validation-shared.d.ts +8 -8
- package/package.json +7 -7
package/dist/routes.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
18
18
|
paymentAuthorizationId: string | null;
|
|
19
19
|
paymentCaptureId: string | null;
|
|
20
20
|
paymentId: string | null;
|
|
21
|
-
status: "
|
|
21
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
22
22
|
provider: string | null;
|
|
23
23
|
providerSessionId: string | null;
|
|
24
24
|
providerPaymentId: string | null;
|
|
@@ -67,24 +67,24 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
67
67
|
input: {};
|
|
68
68
|
output: {
|
|
69
69
|
data: {
|
|
70
|
+
metadata: {
|
|
71
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
72
|
+
} | null;
|
|
70
73
|
id: string;
|
|
71
|
-
|
|
74
|
+
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
expiresAt: string | null;
|
|
77
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
78
|
+
currency: string;
|
|
79
|
+
notes: string | null;
|
|
72
80
|
expiredAt: string | null;
|
|
73
81
|
cancelledAt: string | null;
|
|
74
82
|
completedAt: string | null;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
83
|
bookingId: string | null;
|
|
78
|
-
notes: string | null;
|
|
79
|
-
metadata: {
|
|
80
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
81
|
-
} | null;
|
|
82
|
-
expiresAt: string | null;
|
|
83
84
|
provider: string | null;
|
|
84
85
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
85
86
|
targetId: string | null;
|
|
86
87
|
orderId: string | null;
|
|
87
|
-
currency: string;
|
|
88
88
|
invoiceId: string | null;
|
|
89
89
|
amountCents: number;
|
|
90
90
|
bookingPaymentScheduleId: string | null;
|
|
@@ -152,7 +152,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
152
152
|
paymentAuthorizationId: string | null;
|
|
153
153
|
paymentCaptureId: string | null;
|
|
154
154
|
paymentId: 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;
|
|
@@ -225,7 +225,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
225
225
|
paymentAuthorizationId: string | null;
|
|
226
226
|
paymentCaptureId: string | null;
|
|
227
227
|
paymentId: string | null;
|
|
228
|
-
status: "
|
|
228
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
229
229
|
provider: string | null;
|
|
230
230
|
providerSessionId: string | null;
|
|
231
231
|
providerPaymentId: string | null;
|
|
@@ -298,7 +298,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
298
298
|
paymentAuthorizationId: string | null;
|
|
299
299
|
paymentCaptureId: string | null;
|
|
300
300
|
paymentId: string | null;
|
|
301
|
-
status: "
|
|
301
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
302
302
|
provider: string | null;
|
|
303
303
|
providerSessionId: string | null;
|
|
304
304
|
providerPaymentId: string | null;
|
|
@@ -371,7 +371,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
371
371
|
paymentAuthorizationId: string | null;
|
|
372
372
|
paymentCaptureId: string | null;
|
|
373
373
|
paymentId: string | null;
|
|
374
|
-
status: "
|
|
374
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
375
375
|
provider: string | null;
|
|
376
376
|
providerSessionId: string | null;
|
|
377
377
|
providerPaymentId: string | null;
|
|
@@ -444,7 +444,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
444
444
|
paymentAuthorizationId: string | null;
|
|
445
445
|
paymentCaptureId: string | null;
|
|
446
446
|
paymentId: string | null;
|
|
447
|
-
status: "
|
|
447
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
448
448
|
provider: string | null;
|
|
449
449
|
providerSessionId: string | null;
|
|
450
450
|
providerPaymentId: string | null;
|
|
@@ -517,7 +517,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
517
517
|
paymentAuthorizationId: string | null;
|
|
518
518
|
paymentCaptureId: string | null;
|
|
519
519
|
paymentId: string | null;
|
|
520
|
-
status: "
|
|
520
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
521
521
|
provider: string | null;
|
|
522
522
|
providerSessionId: string | null;
|
|
523
523
|
providerPaymentId: string | null;
|
|
@@ -590,7 +590,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
590
590
|
paymentAuthorizationId: string | null;
|
|
591
591
|
paymentCaptureId: string | null;
|
|
592
592
|
paymentId: string | null;
|
|
593
|
-
status: "
|
|
593
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
594
594
|
provider: string | null;
|
|
595
595
|
providerSessionId: string | null;
|
|
596
596
|
providerPaymentId: string | null;
|
|
@@ -675,15 +675,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
675
675
|
input: {};
|
|
676
676
|
output: {
|
|
677
677
|
data: {
|
|
678
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
678
679
|
id: string;
|
|
679
680
|
brand: string | null;
|
|
680
|
-
status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
|
|
681
|
-
personId: string | null;
|
|
682
|
-
organizationId: string | null;
|
|
683
681
|
createdAt: string;
|
|
684
682
|
updatedAt: string;
|
|
683
|
+
organizationId: string | null;
|
|
684
|
+
status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
|
|
685
685
|
notes: string | null;
|
|
686
|
-
|
|
686
|
+
personId: string | null;
|
|
687
687
|
label: string;
|
|
688
688
|
ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
|
|
689
689
|
supplierId: string | null;
|
|
@@ -845,7 +845,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
845
845
|
invoiceId: string | null;
|
|
846
846
|
bookingGuaranteeId: string | null;
|
|
847
847
|
paymentInstrumentId: string | null;
|
|
848
|
-
status: "
|
|
848
|
+
status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
849
849
|
captureMode: "manual" | "automatic";
|
|
850
850
|
currency: string;
|
|
851
851
|
amountCents: number;
|
|
@@ -874,15 +874,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
874
874
|
output: {
|
|
875
875
|
data: {
|
|
876
876
|
id: string;
|
|
877
|
-
status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
878
877
|
createdAt: string;
|
|
879
878
|
updatedAt: string;
|
|
880
|
-
bookingId: string | null;
|
|
881
|
-
notes: string | null;
|
|
882
879
|
expiresAt: string | null;
|
|
880
|
+
status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
881
|
+
currency: string;
|
|
882
|
+
notes: string | null;
|
|
883
|
+
bookingId: string | null;
|
|
883
884
|
provider: string | null;
|
|
884
885
|
orderId: string | null;
|
|
885
|
-
currency: string;
|
|
886
886
|
invoiceId: string | null;
|
|
887
887
|
amountCents: number;
|
|
888
888
|
paymentInstrumentId: string | null;
|
|
@@ -925,7 +925,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
925
925
|
invoiceId: string | null;
|
|
926
926
|
bookingGuaranteeId: string | null;
|
|
927
927
|
paymentInstrumentId: string | null;
|
|
928
|
-
status: "
|
|
928
|
+
status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
929
929
|
captureMode: "manual" | "automatic";
|
|
930
930
|
currency: string;
|
|
931
931
|
amountCents: number;
|
|
@@ -971,7 +971,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
971
971
|
invoiceId: string | null;
|
|
972
972
|
bookingGuaranteeId: string | null;
|
|
973
973
|
paymentInstrumentId: string | null;
|
|
974
|
-
status: "
|
|
974
|
+
status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
975
975
|
captureMode: "manual" | "automatic";
|
|
976
976
|
currency: string;
|
|
977
977
|
amountCents: number;
|
|
@@ -1025,7 +1025,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1025
1025
|
id: string;
|
|
1026
1026
|
paymentAuthorizationId: string | null;
|
|
1027
1027
|
invoiceId: string | null;
|
|
1028
|
-
status: "
|
|
1028
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1029
1029
|
currency: string;
|
|
1030
1030
|
amountCents: number;
|
|
1031
1031
|
provider: string | null;
|
|
@@ -1051,12 +1051,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1051
1051
|
output: {
|
|
1052
1052
|
data: {
|
|
1053
1053
|
id: string;
|
|
1054
|
-
status: "completed" | "pending" | "failed" | "refunded" | "voided";
|
|
1055
1054
|
createdAt: string;
|
|
1056
1055
|
updatedAt: string;
|
|
1056
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1057
|
+
currency: string;
|
|
1057
1058
|
notes: string | null;
|
|
1058
1059
|
provider: string | null;
|
|
1059
|
-
currency: string;
|
|
1060
1060
|
invoiceId: string | null;
|
|
1061
1061
|
amountCents: number;
|
|
1062
1062
|
paymentAuthorizationId: string | null;
|
|
@@ -1093,7 +1093,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1093
1093
|
id: string;
|
|
1094
1094
|
paymentAuthorizationId: string | null;
|
|
1095
1095
|
invoiceId: string | null;
|
|
1096
|
-
status: "
|
|
1096
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1097
1097
|
currency: string;
|
|
1098
1098
|
amountCents: number;
|
|
1099
1099
|
provider: string | null;
|
|
@@ -1133,7 +1133,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1133
1133
|
id: string;
|
|
1134
1134
|
paymentAuthorizationId: string | null;
|
|
1135
1135
|
invoiceId: string | null;
|
|
1136
|
-
status: "
|
|
1136
|
+
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1137
1137
|
currency: string;
|
|
1138
1138
|
amountCents: number;
|
|
1139
1139
|
provider: string | null;
|
|
@@ -1236,7 +1236,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1236
1236
|
bookingId: string;
|
|
1237
1237
|
bookingItemId: string | null;
|
|
1238
1238
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1239
|
-
status: "
|
|
1239
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
1240
1240
|
dueDate: string;
|
|
1241
1241
|
currency: string;
|
|
1242
1242
|
amountCents: number;
|
|
@@ -1271,13 +1271,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1271
1271
|
output: {
|
|
1272
1272
|
data: {
|
|
1273
1273
|
id: string;
|
|
1274
|
-
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
1275
1274
|
createdAt: string;
|
|
1276
1275
|
updatedAt: string;
|
|
1277
|
-
|
|
1276
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
1277
|
+
currency: string;
|
|
1278
1278
|
notes: string | null;
|
|
1279
|
+
bookingId: string;
|
|
1279
1280
|
bookingItemId: string | null;
|
|
1280
|
-
currency: string;
|
|
1281
1281
|
dueDate: string;
|
|
1282
1282
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1283
1283
|
amountCents: number;
|
|
@@ -1309,13 +1309,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1309
1309
|
output: {
|
|
1310
1310
|
data: {
|
|
1311
1311
|
id: string;
|
|
1312
|
-
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
1313
1312
|
createdAt: string;
|
|
1314
1313
|
updatedAt: string;
|
|
1315
|
-
|
|
1314
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
1315
|
+
currency: string;
|
|
1316
1316
|
notes: string | null;
|
|
1317
|
+
bookingId: string;
|
|
1317
1318
|
bookingItemId: string | null;
|
|
1318
|
-
currency: string;
|
|
1319
1319
|
dueDate: string;
|
|
1320
1320
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1321
1321
|
amountCents: number;
|
|
@@ -1354,7 +1354,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1354
1354
|
bookingId: string;
|
|
1355
1355
|
bookingItemId: string | null;
|
|
1356
1356
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1357
|
-
status: "
|
|
1357
|
+
status: "pending" | "expired" | "cancelled" | "paid" | "due" | "waived";
|
|
1358
1358
|
dueDate: string;
|
|
1359
1359
|
currency: string;
|
|
1360
1360
|
amountCents: number;
|
|
@@ -1392,24 +1392,24 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
output: {
|
|
1394
1394
|
data: {
|
|
1395
|
+
metadata: {
|
|
1396
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1397
|
+
} | null;
|
|
1395
1398
|
id: string;
|
|
1396
|
-
|
|
1399
|
+
createdAt: string;
|
|
1400
|
+
updatedAt: string;
|
|
1401
|
+
expiresAt: string | null;
|
|
1402
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1403
|
+
currency: string;
|
|
1404
|
+
notes: string | null;
|
|
1397
1405
|
expiredAt: string | null;
|
|
1398
1406
|
cancelledAt: string | null;
|
|
1399
1407
|
completedAt: string | null;
|
|
1400
|
-
createdAt: string;
|
|
1401
|
-
updatedAt: string;
|
|
1402
1408
|
bookingId: string | null;
|
|
1403
|
-
notes: string | null;
|
|
1404
|
-
metadata: {
|
|
1405
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1406
|
-
} | null;
|
|
1407
|
-
expiresAt: string | null;
|
|
1408
1409
|
provider: string | null;
|
|
1409
1410
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
1410
1411
|
targetId: string | null;
|
|
1411
1412
|
orderId: string | null;
|
|
1412
|
-
currency: string;
|
|
1413
1413
|
invoiceId: string | null;
|
|
1414
1414
|
amountCents: number;
|
|
1415
1415
|
bookingPaymentScheduleId: string | null;
|
|
@@ -1502,7 +1502,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1502
1502
|
bookingPaymentScheduleId: string | null;
|
|
1503
1503
|
bookingItemId: string | null;
|
|
1504
1504
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1505
|
-
status: "
|
|
1505
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
1506
1506
|
paymentInstrumentId: string | null;
|
|
1507
1507
|
paymentAuthorizationId: string | null;
|
|
1508
1508
|
currency: string | null;
|
|
@@ -1543,16 +1543,16 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1543
1543
|
output: {
|
|
1544
1544
|
data: {
|
|
1545
1545
|
id: string;
|
|
1546
|
-
status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
|
|
1547
1546
|
createdAt: string;
|
|
1548
1547
|
updatedAt: string;
|
|
1549
|
-
|
|
1548
|
+
expiresAt: string | null;
|
|
1549
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
1550
|
+
currency: string | null;
|
|
1550
1551
|
notes: string | null;
|
|
1552
|
+
bookingId: string;
|
|
1551
1553
|
bookingItemId: string | null;
|
|
1552
1554
|
releasedAt: string | null;
|
|
1553
|
-
expiresAt: string | null;
|
|
1554
1555
|
provider: string | null;
|
|
1555
|
-
currency: string | null;
|
|
1556
1556
|
amountCents: number | null;
|
|
1557
1557
|
bookingPaymentScheduleId: string | null;
|
|
1558
1558
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
@@ -1591,24 +1591,24 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
output: {
|
|
1593
1593
|
data: {
|
|
1594
|
+
metadata: {
|
|
1595
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1596
|
+
} | null;
|
|
1594
1597
|
id: string;
|
|
1595
|
-
|
|
1598
|
+
createdAt: string;
|
|
1599
|
+
updatedAt: string;
|
|
1600
|
+
expiresAt: string | null;
|
|
1601
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1602
|
+
currency: string;
|
|
1603
|
+
notes: string | null;
|
|
1596
1604
|
expiredAt: string | null;
|
|
1597
1605
|
cancelledAt: string | null;
|
|
1598
1606
|
completedAt: string | null;
|
|
1599
|
-
createdAt: string;
|
|
1600
|
-
updatedAt: string;
|
|
1601
1607
|
bookingId: string | null;
|
|
1602
|
-
notes: string | null;
|
|
1603
|
-
metadata: {
|
|
1604
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1605
|
-
} | null;
|
|
1606
|
-
expiresAt: string | null;
|
|
1607
1608
|
provider: string | null;
|
|
1608
1609
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
1609
1610
|
targetId: string | null;
|
|
1610
1611
|
orderId: string | null;
|
|
1611
|
-
currency: string;
|
|
1612
1612
|
invoiceId: string | null;
|
|
1613
1613
|
amountCents: number;
|
|
1614
1614
|
bookingPaymentScheduleId: string | null;
|
|
@@ -1686,7 +1686,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1686
1686
|
bookingPaymentScheduleId: string | null;
|
|
1687
1687
|
bookingItemId: string | null;
|
|
1688
1688
|
guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1689
|
-
status: "
|
|
1689
|
+
status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
|
|
1690
1690
|
paymentInstrumentId: string | null;
|
|
1691
1691
|
paymentAuthorizationId: string | null;
|
|
1692
1692
|
currency: string | null;
|
|
@@ -1790,12 +1790,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1790
1790
|
name: string;
|
|
1791
1791
|
createdAt: string;
|
|
1792
1792
|
updatedAt: string;
|
|
1793
|
-
|
|
1793
|
+
scope: "included" | "excluded" | "withheld";
|
|
1794
1794
|
currency: string;
|
|
1795
|
-
amountCents: number;
|
|
1796
1795
|
code: string | null;
|
|
1796
|
+
bookingItemId: string;
|
|
1797
|
+
amountCents: number;
|
|
1797
1798
|
jurisdiction: string | null;
|
|
1798
|
-
scope: "included" | "excluded" | "withheld";
|
|
1799
1799
|
rateBasisPoints: number | null;
|
|
1800
1800
|
includedInPrice: boolean;
|
|
1801
1801
|
remittanceParty: string | null;
|
|
@@ -1899,7 +1899,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1899
1899
|
currency: string | null;
|
|
1900
1900
|
amountCents: number | null;
|
|
1901
1901
|
rateBasisPoints: number | null;
|
|
1902
|
-
status: "pending" | "
|
|
1902
|
+
status: "pending" | "void" | "paid" | "accrued" | "payable";
|
|
1903
1903
|
payableAt: string | null;
|
|
1904
1904
|
paidAt: string | null;
|
|
1905
1905
|
notes: string | null;
|
|
@@ -1933,13 +1933,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1933
1933
|
output: {
|
|
1934
1934
|
data: {
|
|
1935
1935
|
id: string;
|
|
1936
|
-
status: "pending" | "paid" | "void" | "accrued" | "payable";
|
|
1937
1936
|
createdAt: string;
|
|
1938
1937
|
updatedAt: string;
|
|
1938
|
+
status: "pending" | "void" | "paid" | "accrued" | "payable";
|
|
1939
|
+
currency: string | null;
|
|
1939
1940
|
notes: string | null;
|
|
1940
1941
|
bookingItemId: string;
|
|
1941
1942
|
channelId: string | null;
|
|
1942
|
-
currency: string | null;
|
|
1943
1943
|
amountCents: number | null;
|
|
1944
1944
|
rateBasisPoints: number | null;
|
|
1945
1945
|
recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
|
|
@@ -1985,7 +1985,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1985
1985
|
currency: string | null;
|
|
1986
1986
|
amountCents: number | null;
|
|
1987
1987
|
rateBasisPoints: number | null;
|
|
1988
|
-
status: "pending" | "
|
|
1988
|
+
status: "pending" | "void" | "paid" | "accrued" | "payable";
|
|
1989
1989
|
payableAt: string | null;
|
|
1990
1990
|
paidAt: string | null;
|
|
1991
1991
|
notes: string | null;
|
|
@@ -2044,7 +2044,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2044
2044
|
fxRateSetId: string | null;
|
|
2045
2045
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
2046
2046
|
paymentInstrumentId: string | null;
|
|
2047
|
-
status: "
|
|
2047
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2048
2048
|
referenceNumber: string | null;
|
|
2049
2049
|
paymentDate: string;
|
|
2050
2050
|
notes: string | null;
|
|
@@ -2066,14 +2066,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2066
2066
|
output: {
|
|
2067
2067
|
data: {
|
|
2068
2068
|
id: string;
|
|
2069
|
-
status: "completed" | "pending" | "failed" | "refunded";
|
|
2070
|
-
baseCurrency: string | null;
|
|
2071
2069
|
createdAt: string;
|
|
2072
2070
|
updatedAt: string;
|
|
2073
|
-
|
|
2071
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2072
|
+
currency: string;
|
|
2074
2073
|
notes: string | null;
|
|
2074
|
+
baseCurrency: string | null;
|
|
2075
|
+
bookingId: string;
|
|
2075
2076
|
supplierId: string | null;
|
|
2076
|
-
currency: string;
|
|
2077
2077
|
fxRateSetId: string | null;
|
|
2078
2078
|
amountCents: number;
|
|
2079
2079
|
paymentInstrumentId: string | null;
|
|
@@ -2120,7 +2120,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2120
2120
|
fxRateSetId: string | null;
|
|
2121
2121
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
2122
2122
|
paymentInstrumentId: string | null;
|
|
2123
|
-
status: "
|
|
2123
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2124
2124
|
referenceNumber: string | null;
|
|
2125
2125
|
paymentDate: string;
|
|
2126
2126
|
notes: string | null;
|
|
@@ -2149,7 +2149,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2149
2149
|
bookingId: string;
|
|
2150
2150
|
personId: string | null;
|
|
2151
2151
|
organizationId: string | null;
|
|
2152
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
2152
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
2153
2153
|
currency: string;
|
|
2154
2154
|
baseCurrency: string | null;
|
|
2155
2155
|
fxRateSetId: string | null;
|
|
@@ -2186,14 +2186,16 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2186
2186
|
output: {
|
|
2187
2187
|
data: {
|
|
2188
2188
|
id: string;
|
|
2189
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2190
|
-
personId: string | null;
|
|
2191
|
-
organizationId: string | null;
|
|
2192
|
-
baseCurrency: string | null;
|
|
2193
2189
|
createdAt: string;
|
|
2194
2190
|
updatedAt: string;
|
|
2195
|
-
|
|
2191
|
+
organizationId: string | null;
|
|
2192
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
2193
|
+
issueDate: string;
|
|
2194
|
+
currency: string;
|
|
2196
2195
|
notes: string | null;
|
|
2196
|
+
personId: string | null;
|
|
2197
|
+
baseCurrency: string | null;
|
|
2198
|
+
bookingId: string;
|
|
2197
2199
|
invoiceNumber: string;
|
|
2198
2200
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2199
2201
|
seriesId: string | null;
|
|
@@ -2201,7 +2203,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2201
2203
|
templateId: string | null;
|
|
2202
2204
|
taxRegimeId: string | null;
|
|
2203
2205
|
language: string | null;
|
|
2204
|
-
currency: string;
|
|
2205
2206
|
fxRateSetId: string | null;
|
|
2206
2207
|
subtotalCents: number;
|
|
2207
2208
|
baseSubtotalCents: number | null;
|
|
@@ -2215,7 +2216,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2215
2216
|
baseBalanceDueCents: number | null;
|
|
2216
2217
|
commissionPercent: number | null;
|
|
2217
2218
|
commissionAmountCents: number | null;
|
|
2218
|
-
issueDate: string;
|
|
2219
2219
|
dueDate: string;
|
|
2220
2220
|
} | undefined;
|
|
2221
2221
|
};
|
|
@@ -2237,14 +2237,16 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2237
2237
|
output: {
|
|
2238
2238
|
data: {
|
|
2239
2239
|
id: string;
|
|
2240
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2241
|
-
personId: string | null;
|
|
2242
|
-
organizationId: string | null;
|
|
2243
|
-
baseCurrency: string | null;
|
|
2244
2240
|
createdAt: string;
|
|
2245
2241
|
updatedAt: string;
|
|
2246
|
-
|
|
2242
|
+
organizationId: string | null;
|
|
2243
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
2244
|
+
issueDate: string;
|
|
2245
|
+
currency: string;
|
|
2247
2246
|
notes: string | null;
|
|
2247
|
+
personId: string | null;
|
|
2248
|
+
baseCurrency: string | null;
|
|
2249
|
+
bookingId: string;
|
|
2248
2250
|
invoiceNumber: string;
|
|
2249
2251
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2250
2252
|
seriesId: string | null;
|
|
@@ -2252,7 +2254,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2252
2254
|
templateId: string | null;
|
|
2253
2255
|
taxRegimeId: string | null;
|
|
2254
2256
|
language: string | null;
|
|
2255
|
-
currency: string;
|
|
2256
2257
|
fxRateSetId: string | null;
|
|
2257
2258
|
subtotalCents: number;
|
|
2258
2259
|
baseSubtotalCents: number | null;
|
|
@@ -2266,7 +2267,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2266
2267
|
baseBalanceDueCents: number | null;
|
|
2267
2268
|
commissionPercent: number | null;
|
|
2268
2269
|
commissionAmountCents: number | null;
|
|
2269
|
-
issueDate: string;
|
|
2270
2270
|
dueDate: string;
|
|
2271
2271
|
} | null;
|
|
2272
2272
|
};
|
|
@@ -2306,7 +2306,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2306
2306
|
bookingId: string;
|
|
2307
2307
|
personId: string | null;
|
|
2308
2308
|
organizationId: string | null;
|
|
2309
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
2309
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
2310
2310
|
currency: string;
|
|
2311
2311
|
baseCurrency: string | null;
|
|
2312
2312
|
fxRateSetId: string | null;
|
|
@@ -2365,7 +2365,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2365
2365
|
bookingId: string;
|
|
2366
2366
|
personId: string | null;
|
|
2367
2367
|
organizationId: string | null;
|
|
2368
|
-
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue"
|
|
2368
|
+
status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
2369
2369
|
currency: string;
|
|
2370
2370
|
baseCurrency: string | null;
|
|
2371
2371
|
fxRateSetId: string | null;
|
|
@@ -2450,24 +2450,24 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2450
2450
|
};
|
|
2451
2451
|
output: {
|
|
2452
2452
|
data: {
|
|
2453
|
+
metadata: {
|
|
2454
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2455
|
+
} | null;
|
|
2453
2456
|
id: string;
|
|
2454
|
-
|
|
2457
|
+
createdAt: string;
|
|
2458
|
+
updatedAt: string;
|
|
2459
|
+
expiresAt: string | null;
|
|
2460
|
+
status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2461
|
+
currency: string;
|
|
2462
|
+
notes: string | null;
|
|
2455
2463
|
expiredAt: string | null;
|
|
2456
2464
|
cancelledAt: string | null;
|
|
2457
2465
|
completedAt: string | null;
|
|
2458
|
-
createdAt: string;
|
|
2459
|
-
updatedAt: string;
|
|
2460
2466
|
bookingId: string | null;
|
|
2461
|
-
notes: string | null;
|
|
2462
|
-
metadata: {
|
|
2463
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2464
|
-
} | null;
|
|
2465
|
-
expiresAt: string | null;
|
|
2466
2467
|
provider: string | null;
|
|
2467
2468
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
2468
2469
|
targetId: string | null;
|
|
2469
2470
|
orderId: string | null;
|
|
2470
|
-
currency: string;
|
|
2471
2471
|
invoiceId: string | null;
|
|
2472
2472
|
amountCents: number;
|
|
2473
2473
|
bookingPaymentScheduleId: string | null;
|
|
@@ -2668,7 +2668,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2668
2668
|
paymentInstrumentId: string | null;
|
|
2669
2669
|
paymentAuthorizationId: string | null;
|
|
2670
2670
|
paymentCaptureId: string | null;
|
|
2671
|
-
status: "
|
|
2671
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2672
2672
|
referenceNumber: string | null;
|
|
2673
2673
|
paymentDate: string;
|
|
2674
2674
|
notes: string | null;
|
|
@@ -2702,12 +2702,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2702
2702
|
output: {
|
|
2703
2703
|
data: {
|
|
2704
2704
|
id: string;
|
|
2705
|
-
status: "completed" | "pending" | "failed" | "refunded";
|
|
2706
|
-
baseCurrency: string | null;
|
|
2707
2705
|
createdAt: string;
|
|
2708
2706
|
updatedAt: string;
|
|
2709
|
-
|
|
2707
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
2710
2708
|
currency: string;
|
|
2709
|
+
notes: string | null;
|
|
2710
|
+
baseCurrency: string | null;
|
|
2711
2711
|
fxRateSetId: string | null;
|
|
2712
2712
|
invoiceId: string;
|
|
2713
2713
|
amountCents: number;
|
|
@@ -2775,13 +2775,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2775
2775
|
output: {
|
|
2776
2776
|
data: {
|
|
2777
2777
|
id: string;
|
|
2778
|
-
status: "draft" | "issued" | "applied";
|
|
2779
|
-
baseCurrency: string | null;
|
|
2780
2778
|
createdAt: string;
|
|
2781
2779
|
updatedAt: string;
|
|
2780
|
+
status: "draft" | "issued" | "applied";
|
|
2781
|
+
currency: string;
|
|
2782
2782
|
notes: string | null;
|
|
2783
|
+
baseCurrency: string | null;
|
|
2783
2784
|
reason: string;
|
|
2784
|
-
currency: string;
|
|
2785
2785
|
fxRateSetId: string | null;
|
|
2786
2786
|
invoiceId: string;
|
|
2787
2787
|
amountCents: number;
|
|
@@ -2926,17 +2926,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2926
2926
|
} & {
|
|
2927
2927
|
"/invoices/:id/notes": {
|
|
2928
2928
|
$post: {
|
|
2929
|
-
input: {
|
|
2930
|
-
param: {
|
|
2931
|
-
id: string;
|
|
2932
|
-
};
|
|
2933
|
-
};
|
|
2934
|
-
output: {
|
|
2935
|
-
error: string;
|
|
2936
|
-
};
|
|
2937
|
-
outputFormat: "json";
|
|
2938
|
-
status: 400;
|
|
2939
|
-
} | {
|
|
2940
2929
|
input: {
|
|
2941
2930
|
param: {
|
|
2942
2931
|
id: string;
|
|
@@ -3002,12 +2991,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3002
2991
|
data: {
|
|
3003
2992
|
id: string;
|
|
3004
2993
|
name: string;
|
|
2994
|
+
prefix: string;
|
|
3005
2995
|
createdAt: string;
|
|
3006
2996
|
updatedAt: string;
|
|
3007
|
-
active: boolean;
|
|
3008
|
-
code: string;
|
|
3009
2997
|
scope: "invoice" | "proforma" | "credit_note";
|
|
3010
|
-
|
|
2998
|
+
code: string;
|
|
2999
|
+
active: boolean;
|
|
3011
3000
|
separator: string;
|
|
3012
3001
|
padLength: number;
|
|
3013
3002
|
currentSequence: number;
|
|
@@ -3199,15 +3188,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3199
3188
|
input: {};
|
|
3200
3189
|
output: {
|
|
3201
3190
|
data: {
|
|
3191
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
3202
3192
|
id: string;
|
|
3203
3193
|
name: string;
|
|
3204
3194
|
createdAt: string;
|
|
3205
3195
|
updatedAt: string;
|
|
3206
|
-
|
|
3196
|
+
slug: string;
|
|
3207
3197
|
active: boolean;
|
|
3208
3198
|
language: string;
|
|
3209
3199
|
jurisdiction: string | null;
|
|
3210
|
-
slug: string;
|
|
3211
3200
|
bodyFormat: "html" | "markdown" | "lexical_json";
|
|
3212
3201
|
body: string;
|
|
3213
3202
|
cssStyles: string | null;
|
|
@@ -3356,14 +3345,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3356
3345
|
input: {};
|
|
3357
3346
|
output: {
|
|
3358
3347
|
data: {
|
|
3348
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
3359
3349
|
id: string;
|
|
3360
3350
|
name: string;
|
|
3361
3351
|
createdAt: string;
|
|
3362
3352
|
updatedAt: string;
|
|
3363
|
-
metadata: import("hono/utils/types").JSONValue;
|
|
3364
3353
|
description: string | null;
|
|
3365
|
-
active: boolean;
|
|
3366
3354
|
code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
|
|
3355
|
+
active: boolean;
|
|
3367
3356
|
jurisdiction: string | null;
|
|
3368
3357
|
ratePercent: number | null;
|
|
3369
3358
|
legalReference: string | null;
|
|
@@ -3526,12 +3515,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3526
3515
|
};
|
|
3527
3516
|
output: {
|
|
3528
3517
|
data: {
|
|
3529
|
-
|
|
3518
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
3530
3519
|
id: string;
|
|
3531
|
-
status: "pending" | "failed" | "ready" | "stale";
|
|
3532
3520
|
createdAt: string;
|
|
3533
3521
|
updatedAt: string;
|
|
3534
|
-
|
|
3522
|
+
status: "pending" | "failed" | "ready" | "stale";
|
|
3523
|
+
format: "json" | "pdf" | "html" | "xml";
|
|
3535
3524
|
templateId: string | null;
|
|
3536
3525
|
language: string | null;
|
|
3537
3526
|
invoiceId: string;
|
|
@@ -3595,11 +3584,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3595
3584
|
};
|
|
3596
3585
|
output: {
|
|
3597
3586
|
data: {
|
|
3587
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
3598
3588
|
id: string;
|
|
3599
|
-
status: string | null;
|
|
3600
3589
|
createdAt: string;
|
|
3601
3590
|
updatedAt: string;
|
|
3602
|
-
|
|
3591
|
+
status: string | null;
|
|
3603
3592
|
provider: string;
|
|
3604
3593
|
invoiceId: string;
|
|
3605
3594
|
externalId: string | null;
|