@voyantjs/finance 0.3.0 → 0.3.1

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.d.ts CHANGED
@@ -1,10 +1,5 @@
1
- import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
- type Env = {
3
- Variables: {
4
- db: PostgresJsDatabase;
5
- userId?: string;
6
- };
7
- };
1
+ import type { publicFinanceRoutes } from "./routes-public.js";
2
+ import type { Env } from "./routes-shared.js";
8
3
  export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
9
4
  "/payment-sessions": {
10
5
  $get: {
@@ -23,7 +18,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
23
18
  paymentAuthorizationId: string | null;
24
19
  paymentCaptureId: string | null;
25
20
  paymentId: string | null;
26
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
21
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
27
22
  provider: string | null;
28
23
  providerSessionId: string | null;
29
24
  providerPaymentId: string | null;
@@ -32,7 +27,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
32
27
  clientReference: string | null;
33
28
  currency: string;
34
29
  amountCents: number;
35
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
30
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
36
31
  payerPersonId: string | null;
37
32
  payerOrganizationId: string | null;
38
33
  payerEmail: string | null;
@@ -73,17 +68,21 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
73
68
  output: {
74
69
  data: {
75
70
  id: string;
76
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
77
- provider: string | null;
71
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
72
+ expiredAt: string | null;
73
+ cancelledAt: string | null;
74
+ completedAt: string | null;
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ bookingId: string | null;
78
78
  notes: string | null;
79
79
  metadata: {
80
80
  [x: string]: import("hono/utils/types").JSONValue;
81
81
  } | null;
82
- createdAt: string;
83
- updatedAt: string;
82
+ expiresAt: string | null;
83
+ provider: string | null;
84
84
  targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
85
85
  targetId: string | null;
86
- bookingId: string | null;
87
86
  orderId: string | null;
88
87
  currency: string;
89
88
  invoiceId: string | null;
@@ -91,10 +90,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
91
90
  bookingPaymentScheduleId: string | null;
92
91
  paymentInstrumentId: string | null;
93
92
  bookingGuaranteeId: string | null;
94
- expiresAt: string | null;
95
93
  paymentAuthorizationId: string | null;
96
94
  paymentCaptureId: string | null;
97
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
95
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
98
96
  paymentId: string | null;
99
97
  providerSessionId: string | null;
100
98
  providerPaymentId: string | null;
@@ -109,10 +107,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
109
107
  returnUrl: string | null;
110
108
  cancelUrl: string | null;
111
109
  callbackUrl: string | null;
112
- completedAt: string | null;
113
110
  failedAt: string | null;
114
- cancelledAt: string | null;
115
- expiredAt: string | null;
116
111
  failureCode: string | null;
117
112
  failureMessage: string | null;
118
113
  providerPayload: {
@@ -157,7 +152,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
157
152
  paymentAuthorizationId: string | null;
158
153
  paymentCaptureId: string | null;
159
154
  paymentId: string | null;
160
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
155
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
161
156
  provider: string | null;
162
157
  providerSessionId: string | null;
163
158
  providerPaymentId: string | null;
@@ -166,7 +161,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
166
161
  clientReference: string | null;
167
162
  currency: string;
168
163
  amountCents: number;
169
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
164
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
170
165
  payerPersonId: string | null;
171
166
  payerOrganizationId: string | null;
172
167
  payerEmail: string | null;
@@ -230,7 +225,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
230
225
  paymentAuthorizationId: string | null;
231
226
  paymentCaptureId: string | null;
232
227
  paymentId: string | null;
233
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
228
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
234
229
  provider: string | null;
235
230
  providerSessionId: string | null;
236
231
  providerPaymentId: string | null;
@@ -239,7 +234,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
239
234
  clientReference: string | null;
240
235
  currency: string;
241
236
  amountCents: number;
242
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
237
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
243
238
  payerPersonId: string | null;
244
239
  payerOrganizationId: string | null;
245
240
  payerEmail: string | null;
@@ -303,7 +298,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
303
298
  paymentAuthorizationId: string | null;
304
299
  paymentCaptureId: string | null;
305
300
  paymentId: string | null;
306
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
301
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
307
302
  provider: string | null;
308
303
  providerSessionId: string | null;
309
304
  providerPaymentId: string | null;
@@ -312,7 +307,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
312
307
  clientReference: string | null;
313
308
  currency: string;
314
309
  amountCents: number;
315
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
310
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
316
311
  payerPersonId: string | null;
317
312
  payerOrganizationId: string | null;
318
313
  payerEmail: string | null;
@@ -376,7 +371,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
376
371
  paymentAuthorizationId: string | null;
377
372
  paymentCaptureId: string | null;
378
373
  paymentId: string | null;
379
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
374
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
380
375
  provider: string | null;
381
376
  providerSessionId: string | null;
382
377
  providerPaymentId: string | null;
@@ -385,7 +380,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
385
380
  clientReference: string | null;
386
381
  currency: string;
387
382
  amountCents: number;
388
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
383
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
389
384
  payerPersonId: string | null;
390
385
  payerOrganizationId: string | null;
391
386
  payerEmail: string | null;
@@ -449,7 +444,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
449
444
  paymentAuthorizationId: string | null;
450
445
  paymentCaptureId: string | null;
451
446
  paymentId: string | null;
452
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
447
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
453
448
  provider: string | null;
454
449
  providerSessionId: string | null;
455
450
  providerPaymentId: string | null;
@@ -458,7 +453,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
458
453
  clientReference: string | null;
459
454
  currency: string;
460
455
  amountCents: number;
461
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
456
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
462
457
  payerPersonId: string | null;
463
458
  payerOrganizationId: string | null;
464
459
  payerEmail: string | null;
@@ -522,7 +517,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
522
517
  paymentAuthorizationId: string | null;
523
518
  paymentCaptureId: string | null;
524
519
  paymentId: string | null;
525
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
520
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
526
521
  provider: string | null;
527
522
  providerSessionId: string | null;
528
523
  providerPaymentId: string | null;
@@ -531,7 +526,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
531
526
  clientReference: string | null;
532
527
  currency: string;
533
528
  amountCents: number;
534
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
529
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
535
530
  payerPersonId: string | null;
536
531
  payerOrganizationId: string | null;
537
532
  payerEmail: string | null;
@@ -595,7 +590,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
595
590
  paymentAuthorizationId: string | null;
596
591
  paymentCaptureId: string | null;
597
592
  paymentId: string | null;
598
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
593
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
599
594
  provider: string | null;
600
595
  providerSessionId: string | null;
601
596
  providerPaymentId: string | null;
@@ -604,7 +599,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
604
599
  clientReference: string | null;
605
600
  currency: string;
606
601
  amountCents: number;
607
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
602
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
608
603
  payerPersonId: string | null;
609
604
  payerOrganizationId: string | null;
610
605
  payerEmail: string | null;
@@ -647,8 +642,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
647
642
  organizationId: string | null;
648
643
  supplierId: string | null;
649
644
  channelId: string | null;
650
- instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
651
- status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
645
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
646
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
652
647
  label: string;
653
648
  provider: string | null;
654
649
  brand: string | null;
@@ -682,13 +677,17 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
682
677
  data: {
683
678
  id: string;
684
679
  brand: string | null;
685
- ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
680
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
686
681
  personId: string | null;
687
682
  organizationId: string | null;
683
+ createdAt: string;
684
+ updatedAt: string;
685
+ notes: string | null;
686
+ metadata: import("hono/utils/types").JSONValue;
687
+ ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
688
688
  supplierId: string | null;
689
689
  channelId: string | null;
690
- instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
691
- status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
690
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
692
691
  label: string;
693
692
  provider: string | null;
694
693
  last4: string | null;
@@ -700,10 +699,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
700
699
  billingEmail: string | null;
701
700
  billingAddress: string | null;
702
701
  directBillReference: string | null;
703
- notes: string | null;
704
- metadata: import("hono/utils/types").JSONValue;
705
- createdAt: string;
706
- updatedAt: string;
707
702
  } | null;
708
703
  };
709
704
  outputFormat: "json";
@@ -737,8 +732,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
737
732
  organizationId: string | null;
738
733
  supplierId: string | null;
739
734
  channelId: string | null;
740
- instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
741
- status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
735
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
736
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
742
737
  label: string;
743
738
  provider: string | null;
744
739
  brand: string | null;
@@ -788,8 +783,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
788
783
  organizationId: string | null;
789
784
  supplierId: string | null;
790
785
  channelId: string | null;
791
- instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
792
- status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
786
+ instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
787
+ status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
793
788
  label: string;
794
789
  provider: string | null;
795
790
  brand: string | null;
@@ -850,8 +845,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
850
845
  invoiceId: string | null;
851
846
  bookingGuaranteeId: string | null;
852
847
  paymentInstrumentId: string | null;
853
- status: "pending" | "failed" | "authorized" | "expired" | "partially_captured" | "captured" | "voided";
854
- captureMode: "automatic" | "manual";
848
+ status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
849
+ captureMode: "manual" | "automatic";
855
850
  currency: string;
856
851
  amountCents: number;
857
852
  provider: string | null;
@@ -879,23 +874,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
879
874
  output: {
880
875
  data: {
881
876
  id: string;
882
- status: "pending" | "failed" | "authorized" | "expired" | "partially_captured" | "captured" | "voided";
883
- provider: string | null;
884
- notes: string | null;
877
+ status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
885
878
  createdAt: string;
886
879
  updatedAt: string;
887
880
  bookingId: string | null;
881
+ notes: string | null;
882
+ expiresAt: string | null;
883
+ provider: string | null;
888
884
  orderId: string | null;
889
885
  currency: string;
890
886
  invoiceId: string | null;
891
887
  amountCents: number;
892
888
  paymentInstrumentId: string | null;
893
889
  bookingGuaranteeId: string | null;
894
- captureMode: "automatic" | "manual";
890
+ captureMode: "manual" | "automatic";
895
891
  externalAuthorizationId: string | null;
896
892
  approvalCode: string | null;
897
893
  authorizedAt: string | null;
898
- expiresAt: string | null;
899
894
  voidedAt: string | null;
900
895
  } | null;
901
896
  };
@@ -930,8 +925,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
930
925
  invoiceId: string | null;
931
926
  bookingGuaranteeId: string | null;
932
927
  paymentInstrumentId: string | null;
933
- status: "pending" | "failed" | "authorized" | "expired" | "partially_captured" | "captured" | "voided";
934
- captureMode: "automatic" | "manual";
928
+ status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
929
+ captureMode: "manual" | "automatic";
935
930
  currency: string;
936
931
  amountCents: number;
937
932
  provider: string | null;
@@ -976,8 +971,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
976
971
  invoiceId: string | null;
977
972
  bookingGuaranteeId: string | null;
978
973
  paymentInstrumentId: string | null;
979
- status: "pending" | "failed" | "authorized" | "expired" | "partially_captured" | "captured" | "voided";
980
- captureMode: "automatic" | "manual";
974
+ status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
975
+ captureMode: "manual" | "automatic";
981
976
  currency: string;
982
977
  amountCents: number;
983
978
  provider: string | null;
@@ -1030,7 +1025,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1030
1025
  id: string;
1031
1026
  paymentAuthorizationId: string | null;
1032
1027
  invoiceId: string | null;
1033
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1028
+ status: "completed" | "pending" | "failed" | "refunded" | "voided";
1034
1029
  currency: string;
1035
1030
  amountCents: number;
1036
1031
  provider: string | null;
@@ -1056,11 +1051,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1056
1051
  output: {
1057
1052
  data: {
1058
1053
  id: string;
1059
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1060
- provider: string | null;
1061
- notes: string | null;
1054
+ status: "completed" | "pending" | "failed" | "refunded" | "voided";
1062
1055
  createdAt: string;
1063
1056
  updatedAt: string;
1057
+ notes: string | null;
1058
+ provider: string | null;
1064
1059
  currency: string;
1065
1060
  invoiceId: string | null;
1066
1061
  amountCents: number;
@@ -1098,7 +1093,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1098
1093
  id: string;
1099
1094
  paymentAuthorizationId: string | null;
1100
1095
  invoiceId: string | null;
1101
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1096
+ status: "completed" | "pending" | "failed" | "refunded" | "voided";
1102
1097
  currency: string;
1103
1098
  amountCents: number;
1104
1099
  provider: string | null;
@@ -1138,7 +1133,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1138
1133
  id: string;
1139
1134
  paymentAuthorizationId: string | null;
1140
1135
  invoiceId: string | null;
1141
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1136
+ status: "completed" | "pending" | "failed" | "refunded" | "voided";
1142
1137
  currency: string;
1143
1138
  amountCents: number;
1144
1139
  provider: string | null;
@@ -1241,7 +1236,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1241
1236
  bookingId: string;
1242
1237
  bookingItemId: string | null;
1243
1238
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1244
- status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
1239
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1245
1240
  dueDate: string;
1246
1241
  currency: string;
1247
1242
  amountCents: number;
@@ -1276,14 +1271,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1276
1271
  output: {
1277
1272
  data: {
1278
1273
  id: string;
1279
- status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
1280
- notes: string | null;
1274
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1281
1275
  createdAt: string;
1282
1276
  updatedAt: string;
1283
1277
  bookingId: string;
1278
+ notes: string | null;
1279
+ bookingItemId: string | null;
1284
1280
  currency: string;
1285
1281
  dueDate: string;
1286
- bookingItemId: string | null;
1287
1282
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1288
1283
  amountCents: number;
1289
1284
  };
@@ -1314,14 +1309,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1314
1309
  output: {
1315
1310
  data: {
1316
1311
  id: string;
1317
- status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
1318
- notes: string | null;
1312
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1319
1313
  createdAt: string;
1320
1314
  updatedAt: string;
1321
1315
  bookingId: string;
1316
+ notes: string | null;
1317
+ bookingItemId: string | null;
1322
1318
  currency: string;
1323
1319
  dueDate: string;
1324
- bookingItemId: string | null;
1325
1320
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1326
1321
  amountCents: number;
1327
1322
  }[];
@@ -1359,7 +1354,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1359
1354
  bookingId: string;
1360
1355
  bookingItemId: string | null;
1361
1356
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1362
- status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
1357
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1363
1358
  dueDate: string;
1364
1359
  currency: string;
1365
1360
  amountCents: number;
@@ -1398,17 +1393,21 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1398
1393
  output: {
1399
1394
  data: {
1400
1395
  id: string;
1401
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
1402
- provider: string | null;
1396
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1397
+ expiredAt: string | null;
1398
+ cancelledAt: string | null;
1399
+ completedAt: string | null;
1400
+ createdAt: string;
1401
+ updatedAt: string;
1402
+ bookingId: string | null;
1403
1403
  notes: string | null;
1404
1404
  metadata: {
1405
1405
  [x: string]: import("hono/utils/types").JSONValue;
1406
1406
  } | null;
1407
- createdAt: string;
1408
- updatedAt: string;
1407
+ expiresAt: string | null;
1408
+ provider: string | null;
1409
1409
  targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1410
1410
  targetId: string | null;
1411
- bookingId: string | null;
1412
1411
  orderId: string | null;
1413
1412
  currency: string;
1414
1413
  invoiceId: string | null;
@@ -1416,10 +1415,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1416
1415
  bookingPaymentScheduleId: string | null;
1417
1416
  paymentInstrumentId: string | null;
1418
1417
  bookingGuaranteeId: string | null;
1419
- expiresAt: string | null;
1420
1418
  paymentAuthorizationId: string | null;
1421
1419
  paymentCaptureId: string | null;
1422
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1420
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1423
1421
  paymentId: string | null;
1424
1422
  providerSessionId: string | null;
1425
1423
  providerPaymentId: string | null;
@@ -1434,10 +1432,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1434
1432
  returnUrl: string | null;
1435
1433
  cancelUrl: string | null;
1436
1434
  callbackUrl: string | null;
1437
- completedAt: string | null;
1438
1435
  failedAt: string | null;
1439
- cancelledAt: string | null;
1440
- expiredAt: string | null;
1441
1436
  failureCode: string | null;
1442
1437
  failureMessage: string | null;
1443
1438
  providerPayload: {
@@ -1506,8 +1501,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1506
1501
  bookingId: string;
1507
1502
  bookingPaymentScheduleId: string | null;
1508
1503
  bookingItemId: string | null;
1509
- guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1510
- status: "pending" | "failed" | "cancelled" | "expired" | "active" | "released";
1504
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1505
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
1511
1506
  paymentInstrumentId: string | null;
1512
1507
  paymentAuthorizationId: string | null;
1513
1508
  currency: string | null;
@@ -1548,23 +1543,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1548
1543
  output: {
1549
1544
  data: {
1550
1545
  id: string;
1551
- status: "pending" | "failed" | "cancelled" | "expired" | "active" | "released";
1552
- provider: string | null;
1553
- notes: string | null;
1546
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
1554
1547
  createdAt: string;
1555
1548
  updatedAt: string;
1556
1549
  bookingId: string;
1557
- currency: string | null;
1550
+ notes: string | null;
1558
1551
  bookingItemId: string | null;
1552
+ releasedAt: string | null;
1553
+ expiresAt: string | null;
1554
+ provider: string | null;
1555
+ currency: string | null;
1559
1556
  amountCents: number | null;
1560
1557
  bookingPaymentScheduleId: string | null;
1561
- guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1558
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1562
1559
  paymentInstrumentId: string | null;
1563
- expiresAt: string | null;
1564
1560
  paymentAuthorizationId: string | null;
1565
1561
  referenceNumber: string | null;
1566
1562
  guaranteedAt: string | null;
1567
- releasedAt: string | null;
1568
1563
  };
1569
1564
  };
1570
1565
  outputFormat: "json";
@@ -1597,17 +1592,21 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1597
1592
  output: {
1598
1593
  data: {
1599
1594
  id: string;
1600
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
1601
- provider: string | null;
1595
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1596
+ expiredAt: string | null;
1597
+ cancelledAt: string | null;
1598
+ completedAt: string | null;
1599
+ createdAt: string;
1600
+ updatedAt: string;
1601
+ bookingId: string | null;
1602
1602
  notes: string | null;
1603
1603
  metadata: {
1604
1604
  [x: string]: import("hono/utils/types").JSONValue;
1605
1605
  } | null;
1606
- createdAt: string;
1607
- updatedAt: string;
1606
+ expiresAt: string | null;
1607
+ provider: string | null;
1608
1608
  targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1609
1609
  targetId: string | null;
1610
- bookingId: string | null;
1611
1610
  orderId: string | null;
1612
1611
  currency: string;
1613
1612
  invoiceId: string | null;
@@ -1615,10 +1614,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1615
1614
  bookingPaymentScheduleId: string | null;
1616
1615
  paymentInstrumentId: string | null;
1617
1616
  bookingGuaranteeId: string | null;
1618
- expiresAt: string | null;
1619
1617
  paymentAuthorizationId: string | null;
1620
1618
  paymentCaptureId: string | null;
1621
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1619
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1622
1620
  paymentId: string | null;
1623
1621
  providerSessionId: string | null;
1624
1622
  providerPaymentId: string | null;
@@ -1633,10 +1631,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1633
1631
  returnUrl: string | null;
1634
1632
  cancelUrl: string | null;
1635
1633
  callbackUrl: string | null;
1636
- completedAt: string | null;
1637
1634
  failedAt: string | null;
1638
- cancelledAt: string | null;
1639
- expiredAt: string | null;
1640
1635
  failureCode: string | null;
1641
1636
  failureMessage: string | null;
1642
1637
  providerPayload: {
@@ -1690,8 +1685,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1690
1685
  bookingId: string;
1691
1686
  bookingPaymentScheduleId: string | null;
1692
1687
  bookingItemId: string | null;
1693
- guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1694
- status: "pending" | "failed" | "cancelled" | "expired" | "active" | "released";
1688
+ guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1689
+ status: "expired" | "cancelled" | "pending" | "released" | "failed" | "active";
1695
1690
  paymentInstrumentId: string | null;
1696
1691
  paymentAuthorizationId: string | null;
1697
1692
  currency: string | null;
@@ -1795,8 +1790,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1795
1790
  name: string;
1796
1791
  createdAt: string;
1797
1792
  updatedAt: string;
1798
- currency: string;
1799
1793
  bookingItemId: string;
1794
+ currency: string;
1800
1795
  amountCents: number;
1801
1796
  code: string | null;
1802
1797
  jurisdiction: string | null;
@@ -1899,12 +1894,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1899
1894
  id: string;
1900
1895
  bookingItemId: string;
1901
1896
  channelId: string | null;
1902
- recipientType: "internal" | "supplier" | "other" | "channel" | "agency" | "affiliate" | "agent";
1897
+ recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
1903
1898
  commissionModel: "fixed" | "percentage" | "markup" | "net";
1904
1899
  currency: string | null;
1905
1900
  amountCents: number | null;
1906
1901
  rateBasisPoints: number | null;
1907
- status: "paid" | "void" | "pending" | "accrued" | "payable";
1902
+ status: "pending" | "paid" | "void" | "accrued" | "payable";
1908
1903
  payableAt: string | null;
1909
1904
  paidAt: string | null;
1910
1905
  notes: string | null;
@@ -1938,16 +1933,16 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1938
1933
  output: {
1939
1934
  data: {
1940
1935
  id: string;
1941
- channelId: string | null;
1942
- status: "paid" | "void" | "pending" | "accrued" | "payable";
1943
- notes: string | null;
1936
+ status: "pending" | "paid" | "void" | "accrued" | "payable";
1944
1937
  createdAt: string;
1945
1938
  updatedAt: string;
1946
- currency: string | null;
1939
+ notes: string | null;
1947
1940
  bookingItemId: string;
1941
+ channelId: string | null;
1942
+ currency: string | null;
1948
1943
  amountCents: number | null;
1949
1944
  rateBasisPoints: number | null;
1950
- recipientType: "internal" | "supplier" | "other" | "channel" | "agency" | "affiliate" | "agent";
1945
+ recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
1951
1946
  commissionModel: "fixed" | "percentage" | "markup" | "net";
1952
1947
  payableAt: string | null;
1953
1948
  paidAt: string | null;
@@ -1985,12 +1980,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1985
1980
  id: string;
1986
1981
  bookingItemId: string;
1987
1982
  channelId: string | null;
1988
- recipientType: "internal" | "supplier" | "other" | "channel" | "agency" | "affiliate" | "agent";
1983
+ recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
1989
1984
  commissionModel: "fixed" | "percentage" | "markup" | "net";
1990
1985
  currency: string | null;
1991
1986
  amountCents: number | null;
1992
1987
  rateBasisPoints: number | null;
1993
- status: "paid" | "void" | "pending" | "accrued" | "payable";
1988
+ status: "pending" | "paid" | "void" | "accrued" | "payable";
1994
1989
  payableAt: string | null;
1995
1990
  paidAt: string | null;
1996
1991
  notes: string | null;
@@ -2047,9 +2042,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2047
2042
  baseCurrency: string | null;
2048
2043
  baseAmountCents: number | null;
2049
2044
  fxRateSetId: string | null;
2050
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2045
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2051
2046
  paymentInstrumentId: string | null;
2052
- status: "pending" | "completed" | "failed" | "refunded";
2047
+ status: "completed" | "pending" | "failed" | "refunded";
2053
2048
  referenceNumber: string | null;
2054
2049
  paymentDate: string;
2055
2050
  notes: string | null;
@@ -2071,20 +2066,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2071
2066
  output: {
2072
2067
  data: {
2073
2068
  id: string;
2074
- supplierId: string | null;
2075
- status: "pending" | "completed" | "failed" | "refunded";
2076
- notes: string | null;
2069
+ status: "completed" | "pending" | "failed" | "refunded";
2070
+ baseCurrency: string | null;
2077
2071
  createdAt: string;
2078
2072
  updatedAt: string;
2079
2073
  bookingId: string;
2074
+ notes: string | null;
2075
+ supplierId: string | null;
2080
2076
  currency: string;
2081
- baseCurrency: string | null;
2082
2077
  fxRateSetId: string | null;
2083
2078
  amountCents: number;
2084
2079
  paymentInstrumentId: string | null;
2085
2080
  referenceNumber: string | null;
2086
2081
  baseAmountCents: number | null;
2087
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2082
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2088
2083
  paymentDate: string;
2089
2084
  bookingSupplierStatusId: string | null;
2090
2085
  } | undefined;
@@ -2123,9 +2118,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2123
2118
  baseCurrency: string | null;
2124
2119
  baseAmountCents: number | null;
2125
2120
  fxRateSetId: string | null;
2126
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2121
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2127
2122
  paymentInstrumentId: string | null;
2128
- status: "pending" | "completed" | "failed" | "refunded";
2123
+ status: "completed" | "pending" | "failed" | "refunded";
2129
2124
  referenceNumber: string | null;
2130
2125
  paymentDate: string;
2131
2126
  notes: string | null;
@@ -2191,13 +2186,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2191
2186
  output: {
2192
2187
  data: {
2193
2188
  id: string;
2189
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2194
2190
  personId: string | null;
2195
2191
  organizationId: string | null;
2196
- status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2197
- notes: string | null;
2192
+ baseCurrency: string | null;
2198
2193
  createdAt: string;
2199
2194
  updatedAt: string;
2200
2195
  bookingId: string;
2196
+ notes: string | null;
2201
2197
  invoiceNumber: string;
2202
2198
  invoiceType: "invoice" | "proforma" | "credit_note";
2203
2199
  seriesId: string | null;
@@ -2206,7 +2202,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2206
2202
  taxRegimeId: string | null;
2207
2203
  language: string | null;
2208
2204
  currency: string;
2209
- baseCurrency: string | null;
2210
2205
  fxRateSetId: string | null;
2211
2206
  subtotalCents: number;
2212
2207
  baseSubtotalCents: number | null;
@@ -2228,6 +2223,57 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2228
2223
  status: 201;
2229
2224
  };
2230
2225
  };
2226
+ } & {
2227
+ "/invoices/from-booking": {
2228
+ $post: {
2229
+ input: {};
2230
+ output: {
2231
+ error: string;
2232
+ };
2233
+ outputFormat: "json";
2234
+ status: 404;
2235
+ } | {
2236
+ input: {};
2237
+ output: {
2238
+ data: {
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
+ createdAt: string;
2245
+ updatedAt: string;
2246
+ bookingId: string;
2247
+ notes: string | null;
2248
+ invoiceNumber: string;
2249
+ invoiceType: "invoice" | "proforma" | "credit_note";
2250
+ seriesId: string | null;
2251
+ sequence: number | null;
2252
+ templateId: string | null;
2253
+ taxRegimeId: string | null;
2254
+ language: string | null;
2255
+ currency: string;
2256
+ fxRateSetId: string | null;
2257
+ subtotalCents: number;
2258
+ baseSubtotalCents: number | null;
2259
+ taxCents: number;
2260
+ baseTaxCents: number | null;
2261
+ totalCents: number;
2262
+ baseTotalCents: number | null;
2263
+ paidCents: number;
2264
+ basePaidCents: number | null;
2265
+ balanceDueCents: number;
2266
+ baseBalanceDueCents: number | null;
2267
+ commissionPercent: number | null;
2268
+ commissionAmountCents: number | null;
2269
+ issueDate: string;
2270
+ dueDate: string;
2271
+ } | null;
2272
+ };
2273
+ outputFormat: "json";
2274
+ status: 201;
2275
+ };
2276
+ };
2231
2277
  } & {
2232
2278
  "/invoices/:id": {
2233
2279
  $get: {
@@ -2405,17 +2451,21 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2405
2451
  output: {
2406
2452
  data: {
2407
2453
  id: string;
2408
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
2409
- provider: string | null;
2454
+ status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
2455
+ expiredAt: string | null;
2456
+ cancelledAt: string | null;
2457
+ completedAt: string | null;
2458
+ createdAt: string;
2459
+ updatedAt: string;
2460
+ bookingId: string | null;
2410
2461
  notes: string | null;
2411
2462
  metadata: {
2412
2463
  [x: string]: import("hono/utils/types").JSONValue;
2413
2464
  } | null;
2414
- createdAt: string;
2415
- updatedAt: string;
2465
+ expiresAt: string | null;
2466
+ provider: string | null;
2416
2467
  targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
2417
2468
  targetId: string | null;
2418
- bookingId: string | null;
2419
2469
  orderId: string | null;
2420
2470
  currency: string;
2421
2471
  invoiceId: string | null;
@@ -2423,10 +2473,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2423
2473
  bookingPaymentScheduleId: string | null;
2424
2474
  paymentInstrumentId: string | null;
2425
2475
  bookingGuaranteeId: string | null;
2426
- expiresAt: string | null;
2427
2476
  paymentAuthorizationId: string | null;
2428
2477
  paymentCaptureId: string | null;
2429
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
2478
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
2430
2479
  paymentId: string | null;
2431
2480
  providerSessionId: string | null;
2432
2481
  providerPaymentId: string | null;
@@ -2441,10 +2490,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2441
2490
  returnUrl: string | null;
2442
2491
  cancelUrl: string | null;
2443
2492
  callbackUrl: string | null;
2444
- completedAt: string | null;
2445
2493
  failedAt: string | null;
2446
- cancelledAt: string | null;
2447
- expiredAt: string | null;
2448
2494
  failureCode: string | null;
2449
2495
  failureMessage: string | null;
2450
2496
  providerPayload: {
@@ -2516,12 +2562,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2516
2562
  data: {
2517
2563
  id: string;
2518
2564
  createdAt: string;
2565
+ description: string;
2566
+ quantity: number;
2567
+ bookingItemId: string | null;
2519
2568
  totalCents: number;
2520
2569
  invoiceId: string;
2521
- bookingItemId: string | null;
2522
2570
  sortOrder: number;
2523
- description: string;
2524
- quantity: number;
2525
2571
  unitPriceCents: number;
2526
2572
  taxRate: number | null;
2527
2573
  };
@@ -2618,11 +2664,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2618
2664
  baseCurrency: string | null;
2619
2665
  baseAmountCents: number | null;
2620
2666
  fxRateSetId: string | null;
2621
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2667
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2622
2668
  paymentInstrumentId: string | null;
2623
2669
  paymentAuthorizationId: string | null;
2624
2670
  paymentCaptureId: string | null;
2625
- status: "pending" | "completed" | "failed" | "refunded";
2671
+ status: "completed" | "pending" | "failed" | "refunded";
2626
2672
  referenceNumber: string | null;
2627
2673
  paymentDate: string;
2628
2674
  notes: string | null;
@@ -2656,12 +2702,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2656
2702
  output: {
2657
2703
  data: {
2658
2704
  id: string;
2659
- status: "pending" | "completed" | "failed" | "refunded";
2660
- notes: string | null;
2705
+ status: "completed" | "pending" | "failed" | "refunded";
2706
+ baseCurrency: string | null;
2661
2707
  createdAt: string;
2662
2708
  updatedAt: string;
2709
+ notes: string | null;
2663
2710
  currency: string;
2664
- baseCurrency: string | null;
2665
2711
  fxRateSetId: string | null;
2666
2712
  invoiceId: string;
2667
2713
  amountCents: number;
@@ -2670,7 +2716,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2670
2716
  referenceNumber: string | null;
2671
2717
  paymentCaptureId: string | null;
2672
2718
  baseAmountCents: number | null;
2673
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2719
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2674
2720
  paymentDate: string;
2675
2721
  };
2676
2722
  };
@@ -2730,17 +2776,17 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2730
2776
  data: {
2731
2777
  id: string;
2732
2778
  status: "draft" | "issued" | "applied";
2733
- notes: string | null;
2779
+ baseCurrency: string | null;
2734
2780
  createdAt: string;
2735
2781
  updatedAt: string;
2782
+ notes: string | null;
2783
+ reason: string;
2736
2784
  currency: string;
2737
- baseCurrency: string | null;
2738
2785
  fxRateSetId: string | null;
2739
2786
  invoiceId: string;
2740
2787
  amountCents: number;
2741
2788
  baseAmountCents: number | null;
2742
2789
  creditNoteNumber: string;
2743
- reason: string;
2744
2790
  };
2745
2791
  };
2746
2792
  outputFormat: "json";
@@ -2844,10 +2890,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2844
2890
  data: {
2845
2891
  id: string;
2846
2892
  createdAt: string;
2847
- totalCents: number;
2848
- sortOrder: number;
2849
2893
  description: string;
2850
2894
  quantity: number;
2895
+ totalCents: number;
2896
+ sortOrder: number;
2851
2897
  unitPriceCents: number;
2852
2898
  creditNoteId: string;
2853
2899
  };
@@ -2911,9 +2957,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2911
2957
  data: {
2912
2958
  id: string;
2913
2959
  createdAt: string;
2914
- invoiceId: string;
2915
2960
  authorId: string;
2916
2961
  content: string;
2962
+ invoiceId: string;
2917
2963
  };
2918
2964
  };
2919
2965
  outputFormat: "json";
@@ -2956,9 +3002,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2956
3002
  data: {
2957
3003
  id: string;
2958
3004
  name: string;
2959
- active: boolean;
2960
3005
  createdAt: string;
2961
3006
  updatedAt: string;
3007
+ active: boolean;
2962
3008
  code: string;
2963
3009
  scope: "invoice" | "proforma" | "credit_note";
2964
3010
  prefix: string;
@@ -3155,10 +3201,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3155
3201
  data: {
3156
3202
  id: string;
3157
3203
  name: string;
3158
- active: boolean;
3159
- metadata: import("hono/utils/types").JSONValue;
3160
3204
  createdAt: string;
3161
3205
  updatedAt: string;
3206
+ metadata: import("hono/utils/types").JSONValue;
3207
+ active: boolean;
3162
3208
  language: string;
3163
3209
  jurisdiction: string | null;
3164
3210
  slug: string;
@@ -3312,13 +3358,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3312
3358
  data: {
3313
3359
  id: string;
3314
3360
  name: string;
3315
- active: boolean;
3316
- metadata: import("hono/utils/types").JSONValue;
3317
3361
  createdAt: string;
3318
3362
  updatedAt: string;
3363
+ metadata: import("hono/utils/types").JSONValue;
3364
+ description: string | null;
3365
+ active: boolean;
3319
3366
  code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
3320
3367
  jurisdiction: string | null;
3321
- description: string | null;
3322
3368
  ratePercent: number | null;
3323
3369
  legalReference: string | null;
3324
3370
  } | null;
@@ -3442,7 +3488,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3442
3488
  id: string;
3443
3489
  invoiceId: string;
3444
3490
  templateId: string | null;
3445
- format: "html" | "pdf" | "xml" | "json";
3491
+ format: "json" | "pdf" | "html" | "xml";
3446
3492
  status: "pending" | "failed" | "ready" | "stale";
3447
3493
  storageKey: string | null;
3448
3494
  fileSize: number | null;
@@ -3480,12 +3526,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3480
3526
  };
3481
3527
  output: {
3482
3528
  data: {
3483
- format: "html" | "pdf" | "xml" | "json";
3529
+ format: "json" | "pdf" | "html" | "xml";
3484
3530
  id: string;
3485
3531
  status: "pending" | "failed" | "ready" | "stale";
3486
- metadata: import("hono/utils/types").JSONValue;
3487
3532
  createdAt: string;
3488
3533
  updatedAt: string;
3534
+ metadata: import("hono/utils/types").JSONValue;
3489
3535
  templateId: string | null;
3490
3536
  language: string | null;
3491
3537
  invoiceId: string;
@@ -3551,10 +3597,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3551
3597
  data: {
3552
3598
  id: string;
3553
3599
  status: string | null;
3554
- provider: string;
3555
- metadata: import("hono/utils/types").JSONValue;
3556
3600
  createdAt: string;
3557
3601
  updatedAt: string;
3602
+ metadata: import("hono/utils/types").JSONValue;
3603
+ provider: string;
3558
3604
  invoiceId: string;
3559
3605
  externalId: string | null;
3560
3606
  externalNumber: string | null;
@@ -3599,5 +3645,5 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3599
3645
  };
3600
3646
  }, "/", "/invoices/:id/external-refs/:refId">;
3601
3647
  export type FinanceRoutes = typeof financeRoutes;
3602
- export {};
3648
+ export type PublicFinanceRoutes = typeof publicFinanceRoutes;
3603
3649
  //# sourceMappingURL=routes.d.ts.map