@voyantjs/finance 0.52.2 → 0.52.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/action-ledger-drift.d.ts +29 -0
  2. package/dist/action-ledger-drift.d.ts.map +1 -0
  3. package/dist/action-ledger-drift.js +163 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -0
  6. package/dist/routes-action-ledger.d.ts +181 -0
  7. package/dist/routes-action-ledger.d.ts.map +1 -0
  8. package/dist/routes-action-ledger.js +142 -0
  9. package/dist/routes-documents.d.ts +8 -8
  10. package/dist/routes-public.d.ts +48 -48
  11. package/dist/routes-settlement.d.ts +1 -1
  12. package/dist/routes-shared.d.ts +12 -0
  13. package/dist/routes-shared.d.ts.map +1 -1
  14. package/dist/routes.d.ts +224 -224
  15. package/dist/routes.d.ts.map +1 -1
  16. package/dist/routes.js +252 -46
  17. package/dist/schema.d.ts +22 -22
  18. package/dist/service-action-ledger-accounting.d.ts +77 -0
  19. package/dist/service-action-ledger-accounting.d.ts.map +1 -0
  20. package/dist/service-action-ledger-accounting.js +307 -0
  21. package/dist/service-action-ledger-booking-payments.d.ts +48 -0
  22. package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
  23. package/dist/service-action-ledger-booking-payments.js +178 -0
  24. package/dist/service-action-ledger-payment-authorizations.d.ts +48 -0
  25. package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
  26. package/dist/service-action-ledger-payment-authorizations.js +209 -0
  27. package/dist/service-action-ledger-payment-sessions.d.ts +83 -0
  28. package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
  29. package/dist/service-action-ledger-payment-sessions.js +294 -0
  30. package/dist/service-action-ledger-supplier-payments.d.ts +21 -0
  31. package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
  32. package/dist/service-action-ledger-supplier-payments.js +70 -0
  33. package/dist/service-action-ledger.d.ts +6 -0
  34. package/dist/service-action-ledger.d.ts.map +1 -0
  35. package/dist/service-action-ledger.js +5 -0
  36. package/dist/service-booking-create.d.ts +12 -12
  37. package/dist/service-bookings-dual-create.d.ts +12 -12
  38. package/dist/service-issue.d.ts +15 -12
  39. package/dist/service-issue.d.ts.map +1 -1
  40. package/dist/service-issue.js +24 -3
  41. package/dist/service-public.d.ts +13 -13
  42. package/dist/service-vouchers.d.ts +10 -10
  43. package/dist/service.d.ts +291 -279
  44. package/dist/service.d.ts.map +1 -1
  45. package/dist/service.js +731 -234
  46. package/dist/validation-billing.d.ts +37 -37
  47. package/dist/validation-payments.d.ts +102 -102
  48. package/dist/validation-public.d.ts +45 -45
  49. package/dist/validation-shared.d.ts +32 -32
  50. package/dist/validation-vouchers.d.ts +2 -2
  51. package/package.json +13 -7
package/dist/routes.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
8
8
  data: {
9
9
  total: number;
10
10
  countsByStatus: {
11
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
11
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
12
12
  count: number;
13
13
  }[];
14
14
  counts: {
@@ -59,7 +59,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
59
59
  id: string;
60
60
  invoiceNumber: string | null;
61
61
  bookingId: string | null;
62
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
62
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
63
63
  currency: string;
64
64
  totalCents: number;
65
65
  balanceDueCents: number;
@@ -90,7 +90,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
90
90
  paymentAuthorizationId: string | null;
91
91
  paymentCaptureId: string | null;
92
92
  paymentId: string | null;
93
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
93
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
94
94
  provider: string | null;
95
95
  providerSessionId: string | null;
96
96
  providerPaymentId: string | null;
@@ -99,7 +99,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
99
99
  clientReference: string | null;
100
100
  currency: string;
101
101
  amountCents: number;
102
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
102
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
103
103
  payerPersonId: string | null;
104
104
  payerOrganizationId: string | null;
105
105
  payerEmail: string | null;
@@ -139,26 +139,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
139
139
  input: {};
140
140
  output: {
141
141
  data: {
142
- metadata: {
143
- [x: string]: import("hono/utils/types").JSONValue;
144
- } | null;
145
142
  id: string;
143
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
144
+ idempotencyKey: string | null;
145
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
146
+ targetId: string | null;
146
147
  createdAt: string;
147
- updatedAt: string;
148
148
  expiresAt: string | null;
149
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
150
149
  currency: string;
151
150
  notes: string | null;
152
- idempotencyKey: string | null;
153
- provider: string | null;
151
+ updatedAt: string;
154
152
  bookingId: string | null;
155
- expiredAt: string | null;
156
- cancelledAt: string | null;
157
- completedAt: string | null;
158
153
  paymentId: string | null;
159
154
  amountCents: number;
160
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
161
- targetId: string | null;
155
+ provider: string | null;
156
+ metadata: {
157
+ [x: string]: import("hono/utils/types").JSONValue;
158
+ } | null;
162
159
  orderId: string | null;
163
160
  invoiceId: string | null;
164
161
  bookingPaymentScheduleId: string | null;
@@ -166,7 +163,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
166
163
  bookingGuaranteeId: string | null;
167
164
  paymentAuthorizationId: string | null;
168
165
  paymentCaptureId: string | null;
169
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
166
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
170
167
  providerSessionId: string | null;
171
168
  providerPaymentId: string | null;
172
169
  externalReference: string | null;
@@ -179,7 +176,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
179
176
  returnUrl: string | null;
180
177
  cancelUrl: string | null;
181
178
  callbackUrl: string | null;
179
+ completedAt: string | null;
182
180
  failedAt: string | null;
181
+ cancelledAt: string | null;
182
+ expiredAt: string | null;
183
183
  failureCode: string | null;
184
184
  failureMessage: string | null;
185
185
  providerPayload: {
@@ -224,7 +224,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
224
224
  paymentAuthorizationId: string | null;
225
225
  paymentCaptureId: string | null;
226
226
  paymentId: string | null;
227
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
227
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
228
228
  provider: string | null;
229
229
  providerSessionId: string | null;
230
230
  providerPaymentId: string | null;
@@ -233,7 +233,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
233
233
  clientReference: string | null;
234
234
  currency: string;
235
235
  amountCents: number;
236
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
236
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
237
237
  payerPersonId: string | null;
238
238
  payerOrganizationId: string | null;
239
239
  payerEmail: string | null;
@@ -297,7 +297,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
297
297
  paymentAuthorizationId: string | null;
298
298
  paymentCaptureId: string | null;
299
299
  paymentId: string | null;
300
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
300
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
301
301
  provider: string | null;
302
302
  providerSessionId: string | null;
303
303
  providerPaymentId: string | null;
@@ -306,7 +306,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
306
306
  clientReference: string | null;
307
307
  currency: string;
308
308
  amountCents: number;
309
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
309
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
310
310
  payerPersonId: string | null;
311
311
  payerOrganizationId: string | null;
312
312
  payerEmail: string | null;
@@ -370,7 +370,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
370
370
  paymentAuthorizationId: string | null;
371
371
  paymentCaptureId: string | null;
372
372
  paymentId: string | null;
373
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
373
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
374
374
  provider: string | null;
375
375
  providerSessionId: string | null;
376
376
  providerPaymentId: string | null;
@@ -379,7 +379,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
379
379
  clientReference: string | null;
380
380
  currency: string;
381
381
  amountCents: number;
382
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
382
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
383
383
  payerPersonId: string | null;
384
384
  payerOrganizationId: string | null;
385
385
  payerEmail: string | null;
@@ -443,7 +443,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
443
443
  paymentAuthorizationId: string | null;
444
444
  paymentCaptureId: string | null;
445
445
  paymentId: string | null;
446
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
446
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
447
447
  provider: string | null;
448
448
  providerSessionId: string | null;
449
449
  providerPaymentId: string | null;
@@ -452,7 +452,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
452
452
  clientReference: string | null;
453
453
  currency: string;
454
454
  amountCents: number;
455
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
455
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
456
456
  payerPersonId: string | null;
457
457
  payerOrganizationId: string | null;
458
458
  payerEmail: string | null;
@@ -516,7 +516,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
516
516
  paymentAuthorizationId: string | null;
517
517
  paymentCaptureId: string | null;
518
518
  paymentId: string | null;
519
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
519
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
520
520
  provider: string | null;
521
521
  providerSessionId: string | null;
522
522
  providerPaymentId: string | null;
@@ -525,7 +525,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
525
525
  clientReference: string | null;
526
526
  currency: string;
527
527
  amountCents: number;
528
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
528
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
529
529
  payerPersonId: string | null;
530
530
  payerOrganizationId: string | null;
531
531
  payerEmail: string | null;
@@ -589,7 +589,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
589
589
  paymentAuthorizationId: string | null;
590
590
  paymentCaptureId: string | null;
591
591
  paymentId: string | null;
592
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
592
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
593
593
  provider: string | null;
594
594
  providerSessionId: string | null;
595
595
  providerPaymentId: string | null;
@@ -598,7 +598,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
598
598
  clientReference: string | null;
599
599
  currency: string;
600
600
  amountCents: number;
601
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
601
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
602
602
  payerPersonId: string | null;
603
603
  payerOrganizationId: string | null;
604
604
  payerEmail: string | null;
@@ -662,7 +662,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
662
662
  paymentAuthorizationId: string | null;
663
663
  paymentCaptureId: string | null;
664
664
  paymentId: string | null;
665
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
665
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
666
666
  provider: string | null;
667
667
  providerSessionId: string | null;
668
668
  providerPaymentId: string | null;
@@ -671,7 +671,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
671
671
  clientReference: string | null;
672
672
  currency: string;
673
673
  amountCents: number;
674
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
674
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
675
675
  payerPersonId: string | null;
676
676
  payerOrganizationId: string | null;
677
677
  payerEmail: string | null;
@@ -709,13 +709,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
709
709
  output: {
710
710
  data: {
711
711
  id: string;
712
- ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
712
+ ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
713
713
  personId: string | null;
714
714
  organizationId: string | null;
715
715
  supplierId: string | null;
716
716
  channelId: string | null;
717
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
718
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
717
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
718
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
719
719
  label: string;
720
720
  provider: string | null;
721
721
  brand: string | null;
@@ -747,21 +747,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
747
747
  input: {};
748
748
  output: {
749
749
  data: {
750
- metadata: import("hono/utils/types").JSONValue;
751
750
  id: string;
752
751
  brand: string | null;
753
- createdAt: string;
754
- updatedAt: string;
752
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
755
753
  organizationId: string | null;
756
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
754
+ createdAt: string;
757
755
  notes: string | null;
758
- provider: string | null;
756
+ updatedAt: string;
757
+ ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
759
758
  personId: string | null;
760
- label: string;
761
- ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
762
759
  supplierId: string | null;
763
760
  channelId: string | null;
764
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
761
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
762
+ label: string;
763
+ provider: string | null;
765
764
  last4: string | null;
766
765
  holderName: string | null;
767
766
  expiryMonth: number | null;
@@ -771,6 +770,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
771
770
  billingEmail: string | null;
772
771
  billingAddress: string | null;
773
772
  directBillReference: string | null;
773
+ metadata: import("hono/utils/types").JSONValue;
774
774
  } | null;
775
775
  };
776
776
  outputFormat: "json";
@@ -799,13 +799,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
799
799
  output: {
800
800
  data: {
801
801
  id: string;
802
- ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
802
+ ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
803
803
  personId: string | null;
804
804
  organizationId: string | null;
805
805
  supplierId: string | null;
806
806
  channelId: string | null;
807
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
808
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
807
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
808
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
809
809
  label: string;
810
810
  provider: string | null;
811
811
  brand: string | null;
@@ -850,13 +850,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
850
850
  output: {
851
851
  data: {
852
852
  id: string;
853
- ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
853
+ ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
854
854
  personId: string | null;
855
855
  organizationId: string | null;
856
856
  supplierId: string | null;
857
857
  channelId: string | null;
858
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
859
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
858
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
859
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
860
860
  label: string;
861
861
  provider: string | null;
862
862
  brand: string | null;
@@ -917,8 +917,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
917
917
  invoiceId: string | null;
918
918
  bookingGuaranteeId: string | null;
919
919
  paymentInstrumentId: string | null;
920
- status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
921
- captureMode: "manual" | "automatic";
920
+ status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
921
+ captureMode: "automatic" | "manual";
922
922
  currency: string;
923
923
  amountCents: number;
924
924
  provider: string | null;
@@ -946,20 +946,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
946
946
  output: {
947
947
  data: {
948
948
  id: string;
949
+ status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
949
950
  createdAt: string;
950
- updatedAt: string;
951
951
  expiresAt: string | null;
952
- status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
953
952
  currency: string;
954
953
  notes: string | null;
955
- provider: string | null;
954
+ updatedAt: string;
956
955
  bookingId: string | null;
957
956
  amountCents: number;
957
+ provider: string | null;
958
958
  orderId: string | null;
959
959
  invoiceId: string | null;
960
960
  paymentInstrumentId: string | null;
961
961
  bookingGuaranteeId: string | null;
962
- captureMode: "manual" | "automatic";
962
+ captureMode: "automatic" | "manual";
963
963
  externalAuthorizationId: string | null;
964
964
  approvalCode: string | null;
965
965
  authorizedAt: string | null;
@@ -997,8 +997,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
997
997
  invoiceId: string | null;
998
998
  bookingGuaranteeId: string | null;
999
999
  paymentInstrumentId: string | null;
1000
- status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
1001
- captureMode: "manual" | "automatic";
1000
+ status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
1001
+ captureMode: "automatic" | "manual";
1002
1002
  currency: string;
1003
1003
  amountCents: number;
1004
1004
  provider: string | null;
@@ -1043,8 +1043,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1043
1043
  invoiceId: string | null;
1044
1044
  bookingGuaranteeId: string | null;
1045
1045
  paymentInstrumentId: string | null;
1046
- status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
1047
- captureMode: "manual" | "automatic";
1046
+ status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
1047
+ captureMode: "automatic" | "manual";
1048
1048
  currency: string;
1049
1049
  amountCents: number;
1050
1050
  provider: string | null;
@@ -1097,7 +1097,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1097
1097
  id: string;
1098
1098
  paymentAuthorizationId: string | null;
1099
1099
  invoiceId: string | null;
1100
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1100
+ status: "failed" | "pending" | "completed" | "refunded" | "voided";
1101
1101
  currency: string;
1102
1102
  amountCents: number;
1103
1103
  provider: string | null;
@@ -1123,13 +1123,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1123
1123
  output: {
1124
1124
  data: {
1125
1125
  id: string;
1126
+ status: "failed" | "pending" | "completed" | "refunded" | "voided";
1126
1127
  createdAt: string;
1127
- updatedAt: string;
1128
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1129
1128
  currency: string;
1130
1129
  notes: string | null;
1131
- provider: string | null;
1130
+ updatedAt: string;
1132
1131
  amountCents: number;
1132
+ provider: string | null;
1133
1133
  invoiceId: string | null;
1134
1134
  paymentAuthorizationId: string | null;
1135
1135
  externalCaptureId: string | null;
@@ -1165,7 +1165,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1165
1165
  id: string;
1166
1166
  paymentAuthorizationId: string | null;
1167
1167
  invoiceId: string | null;
1168
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1168
+ status: "failed" | "pending" | "completed" | "refunded" | "voided";
1169
1169
  currency: string;
1170
1170
  amountCents: number;
1171
1171
  provider: string | null;
@@ -1205,7 +1205,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1205
1205
  id: string;
1206
1206
  paymentAuthorizationId: string | null;
1207
1207
  invoiceId: string | null;
1208
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1208
+ status: "failed" | "pending" | "completed" | "refunded" | "voided";
1209
1209
  currency: string;
1210
1210
  amountCents: number;
1211
1211
  provider: string | null;
@@ -1308,7 +1308,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1308
1308
  bookingId: string;
1309
1309
  bookingItemId: string | null;
1310
1310
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1311
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
1311
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1312
1312
  dueDate: string;
1313
1313
  currency: string;
1314
1314
  amountCents: number;
@@ -1343,15 +1343,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1343
1343
  output: {
1344
1344
  data: {
1345
1345
  id: string;
1346
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1346
1347
  createdAt: string;
1347
- updatedAt: string;
1348
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
1349
1348
  currency: string;
1350
1349
  notes: string | null;
1350
+ updatedAt: string;
1351
1351
  bookingId: string;
1352
- bookingItemId: string | null;
1353
1352
  amountCents: number;
1354
1353
  dueDate: string;
1354
+ bookingItemId: string | null;
1355
1355
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1356
1356
  };
1357
1357
  };
@@ -1381,15 +1381,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1381
1381
  output: {
1382
1382
  data: {
1383
1383
  id: string;
1384
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1384
1385
  createdAt: string;
1385
- updatedAt: string;
1386
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
1387
1386
  currency: string;
1388
1387
  notes: string | null;
1388
+ updatedAt: string;
1389
1389
  bookingId: string;
1390
- bookingItemId: string | null;
1391
1390
  amountCents: number;
1392
1391
  dueDate: string;
1392
+ bookingItemId: string | null;
1393
1393
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1394
1394
  }[];
1395
1395
  };
@@ -1426,7 +1426,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1426
1426
  bookingId: string;
1427
1427
  bookingItemId: string | null;
1428
1428
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1429
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
1429
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
1430
1430
  dueDate: string;
1431
1431
  currency: string;
1432
1432
  amountCents: number;
@@ -1464,26 +1464,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1464
1464
  };
1465
1465
  output: {
1466
1466
  data: {
1467
- metadata: {
1468
- [x: string]: import("hono/utils/types").JSONValue;
1469
- } | null;
1470
1467
  id: string;
1468
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1469
+ idempotencyKey: string | null;
1470
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1471
+ targetId: string | null;
1471
1472
  createdAt: string;
1472
- updatedAt: string;
1473
1473
  expiresAt: string | null;
1474
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1475
1474
  currency: string;
1476
1475
  notes: string | null;
1477
- idempotencyKey: string | null;
1478
- provider: string | null;
1476
+ updatedAt: string;
1479
1477
  bookingId: string | null;
1480
- expiredAt: string | null;
1481
- cancelledAt: string | null;
1482
- completedAt: string | null;
1483
1478
  paymentId: string | null;
1484
1479
  amountCents: number;
1485
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1486
- targetId: string | null;
1480
+ provider: string | null;
1481
+ metadata: {
1482
+ [x: string]: import("hono/utils/types").JSONValue;
1483
+ } | null;
1487
1484
  orderId: string | null;
1488
1485
  invoiceId: string | null;
1489
1486
  bookingPaymentScheduleId: string | null;
@@ -1491,7 +1488,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1491
1488
  bookingGuaranteeId: string | null;
1492
1489
  paymentAuthorizationId: string | null;
1493
1490
  paymentCaptureId: string | null;
1494
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1491
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1495
1492
  providerSessionId: string | null;
1496
1493
  providerPaymentId: string | null;
1497
1494
  externalReference: string | null;
@@ -1504,7 +1501,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1504
1501
  returnUrl: string | null;
1505
1502
  cancelUrl: string | null;
1506
1503
  callbackUrl: string | null;
1504
+ completedAt: string | null;
1507
1505
  failedAt: string | null;
1506
+ cancelledAt: string | null;
1507
+ expiredAt: string | null;
1508
1508
  failureCode: string | null;
1509
1509
  failureMessage: string | null;
1510
1510
  providerPayload: {
@@ -1573,8 +1573,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1573
1573
  bookingId: string;
1574
1574
  bookingPaymentScheduleId: string | null;
1575
1575
  bookingItemId: string | null;
1576
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1577
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
1576
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1577
+ status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
1578
1578
  paymentInstrumentId: string | null;
1579
1579
  paymentAuthorizationId: string | null;
1580
1580
  currency: string | null;
@@ -1615,23 +1615,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1615
1615
  output: {
1616
1616
  data: {
1617
1617
  id: string;
1618
+ status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
1618
1619
  createdAt: string;
1619
- updatedAt: string;
1620
1620
  expiresAt: string | null;
1621
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
1622
1621
  currency: string | null;
1623
1622
  notes: string | null;
1624
- provider: string | null;
1623
+ updatedAt: string;
1625
1624
  bookingId: string;
1626
- bookingItemId: string | null;
1627
- releasedAt: string | null;
1628
1625
  amountCents: number | null;
1626
+ provider: string | null;
1627
+ bookingItemId: string | null;
1629
1628
  bookingPaymentScheduleId: string | null;
1630
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1629
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1631
1630
  paymentInstrumentId: string | null;
1632
1631
  paymentAuthorizationId: string | null;
1633
1632
  referenceNumber: string | null;
1634
1633
  guaranteedAt: string | null;
1634
+ releasedAt: string | null;
1635
1635
  };
1636
1636
  };
1637
1637
  outputFormat: "json";
@@ -1663,26 +1663,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1663
1663
  };
1664
1664
  output: {
1665
1665
  data: {
1666
- metadata: {
1667
- [x: string]: import("hono/utils/types").JSONValue;
1668
- } | null;
1669
1666
  id: string;
1667
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1668
+ idempotencyKey: string | null;
1669
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1670
+ targetId: string | null;
1670
1671
  createdAt: string;
1671
- updatedAt: string;
1672
1672
  expiresAt: string | null;
1673
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1674
1673
  currency: string;
1675
1674
  notes: string | null;
1676
- idempotencyKey: string | null;
1677
- provider: string | null;
1675
+ updatedAt: string;
1678
1676
  bookingId: string | null;
1679
- expiredAt: string | null;
1680
- cancelledAt: string | null;
1681
- completedAt: string | null;
1682
1677
  paymentId: string | null;
1683
1678
  amountCents: number;
1684
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1685
- targetId: string | null;
1679
+ provider: string | null;
1680
+ metadata: {
1681
+ [x: string]: import("hono/utils/types").JSONValue;
1682
+ } | null;
1686
1683
  orderId: string | null;
1687
1684
  invoiceId: string | null;
1688
1685
  bookingPaymentScheduleId: string | null;
@@ -1690,7 +1687,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1690
1687
  bookingGuaranteeId: string | null;
1691
1688
  paymentAuthorizationId: string | null;
1692
1689
  paymentCaptureId: string | null;
1693
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1690
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1694
1691
  providerSessionId: string | null;
1695
1692
  providerPaymentId: string | null;
1696
1693
  externalReference: string | null;
@@ -1703,7 +1700,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1703
1700
  returnUrl: string | null;
1704
1701
  cancelUrl: string | null;
1705
1702
  callbackUrl: string | null;
1703
+ completedAt: string | null;
1706
1704
  failedAt: string | null;
1705
+ cancelledAt: string | null;
1706
+ expiredAt: string | null;
1707
1707
  failureCode: string | null;
1708
1708
  failureMessage: string | null;
1709
1709
  providerPayload: {
@@ -1757,8 +1757,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1757
1757
  bookingId: string;
1758
1758
  bookingPaymentScheduleId: string | null;
1759
1759
  bookingItemId: string | null;
1760
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1761
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
1760
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1761
+ status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
1762
1762
  paymentInstrumentId: string | null;
1763
1763
  paymentAuthorizationId: string | null;
1764
1764
  currency: string | null;
@@ -1861,13 +1861,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1861
1861
  name: string;
1862
1862
  id: string;
1863
1863
  createdAt: string;
1864
- updatedAt: string;
1865
- scope: "included" | "excluded" | "withheld";
1866
- currency: string;
1867
1864
  code: string | null;
1868
- bookingItemId: string;
1865
+ currency: string;
1866
+ updatedAt: string;
1869
1867
  amountCents: number;
1868
+ bookingItemId: string;
1870
1869
  jurisdiction: string | null;
1870
+ scope: "included" | "excluded" | "withheld";
1871
1871
  rateBasisPoints: number | null;
1872
1872
  includedInPrice: boolean;
1873
1873
  remittanceParty: string | null;
@@ -1966,12 +1966,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1966
1966
  id: string;
1967
1967
  bookingItemId: string;
1968
1968
  channelId: string | null;
1969
- recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
1969
+ recipientType: "agent" | "other" | "supplier" | "channel" | "agency" | "internal" | "affiliate";
1970
1970
  commissionModel: "fixed" | "percentage" | "markup" | "net";
1971
1971
  currency: string | null;
1972
1972
  amountCents: number | null;
1973
1973
  rateBasisPoints: number | null;
1974
- status: "pending" | "void" | "paid" | "accrued" | "payable";
1974
+ status: "pending" | "paid" | "void" | "accrued" | "payable";
1975
1975
  payableAt: string | null;
1976
1976
  paidAt: string | null;
1977
1977
  notes: string | null;
@@ -2005,19 +2005,19 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2005
2005
  output: {
2006
2006
  data: {
2007
2007
  id: string;
2008
+ status: "pending" | "paid" | "void" | "accrued" | "payable";
2008
2009
  createdAt: string;
2009
- updatedAt: string;
2010
- status: "pending" | "void" | "paid" | "accrued" | "payable";
2011
2010
  currency: string | null;
2012
2011
  notes: string | null;
2013
- paidAt: string | null;
2014
- bookingItemId: string;
2012
+ updatedAt: string;
2015
2013
  amountCents: number | null;
2016
2014
  channelId: string | null;
2015
+ bookingItemId: string;
2017
2016
  rateBasisPoints: number | null;
2018
- recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
2017
+ recipientType: "agent" | "other" | "supplier" | "channel" | "agency" | "internal" | "affiliate";
2019
2018
  commissionModel: "fixed" | "percentage" | "markup" | "net";
2020
2019
  payableAt: string | null;
2020
+ paidAt: string | null;
2021
2021
  };
2022
2022
  };
2023
2023
  outputFormat: "json";
@@ -2052,12 +2052,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2052
2052
  id: string;
2053
2053
  bookingItemId: string;
2054
2054
  channelId: string | null;
2055
- recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
2055
+ recipientType: "agent" | "other" | "supplier" | "channel" | "agency" | "internal" | "affiliate";
2056
2056
  commissionModel: "fixed" | "percentage" | "markup" | "net";
2057
2057
  currency: string | null;
2058
2058
  amountCents: number | null;
2059
2059
  rateBasisPoints: number | null;
2060
- status: "pending" | "void" | "paid" | "accrued" | "payable";
2060
+ status: "pending" | "paid" | "void" | "accrued" | "payable";
2061
2061
  payableAt: string | null;
2062
2062
  paidAt: string | null;
2063
2063
  notes: string | null;
@@ -2202,9 +2202,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2202
2202
  baseCurrency: string | null;
2203
2203
  baseAmountCents: number | null;
2204
2204
  fxRateSetId: string | null;
2205
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2205
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2206
2206
  paymentInstrumentId: string | null;
2207
- status: "pending" | "completed" | "failed" | "refunded";
2207
+ status: "failed" | "pending" | "completed" | "refunded";
2208
2208
  referenceNumber: string | null;
2209
2209
  paymentDate: string;
2210
2210
  notes: string | null;
@@ -2226,20 +2226,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2226
2226
  output: {
2227
2227
  data: {
2228
2228
  id: string;
2229
+ status: "failed" | "pending" | "completed" | "refunded";
2229
2230
  createdAt: string;
2230
- updatedAt: string;
2231
- status: "pending" | "completed" | "failed" | "refunded";
2232
2231
  currency: string;
2233
2232
  notes: string | null;
2233
+ updatedAt: string;
2234
2234
  bookingId: string;
2235
- baseCurrency: string | null;
2236
- fxRateSetId: string | null;
2237
2235
  amountCents: number;
2238
2236
  supplierId: string | null;
2237
+ baseCurrency: string | null;
2238
+ fxRateSetId: string | null;
2239
2239
  paymentInstrumentId: string | null;
2240
2240
  referenceNumber: string | null;
2241
2241
  baseAmountCents: number | null;
2242
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2242
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2243
2243
  paymentDate: string;
2244
2244
  bookingSupplierStatusId: string | null;
2245
2245
  } | undefined;
@@ -2278,9 +2278,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2278
2278
  baseCurrency: string | null;
2279
2279
  baseAmountCents: number | null;
2280
2280
  fxRateSetId: string | null;
2281
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2281
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2282
2282
  paymentInstrumentId: string | null;
2283
- status: "pending" | "completed" | "failed" | "refunded";
2283
+ status: "failed" | "pending" | "completed" | "refunded";
2284
2284
  referenceNumber: string | null;
2285
2285
  paymentDate: string;
2286
2286
  notes: string | null;
@@ -2310,7 +2310,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2310
2310
  bookingId: string;
2311
2311
  personId: string | null;
2312
2312
  organizationId: string | null;
2313
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
2313
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2314
2314
  currency: string;
2315
2315
  baseCurrency: string | null;
2316
2316
  fxRateSetId: string | null;
@@ -2347,17 +2347,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2347
2347
  output: {
2348
2348
  data: {
2349
2349
  id: string;
2350
- createdAt: string;
2351
- updatedAt: string;
2350
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2352
2351
  organizationId: string | null;
2353
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
2354
- issueDate: string;
2352
+ createdAt: string;
2355
2353
  currency: string;
2356
2354
  notes: string | null;
2355
+ updatedAt: string;
2357
2356
  bookingId: string;
2358
2357
  personId: string | null;
2359
- baseCurrency: string | null;
2360
- fxRateSetId: string | null;
2361
2358
  invoiceNumber: string;
2362
2359
  invoiceType: "invoice" | "proforma" | "credit_note";
2363
2360
  convertedFromInvoiceId: string | null;
@@ -2366,6 +2363,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2366
2363
  templateId: string | null;
2367
2364
  taxRegimeId: string | null;
2368
2365
  language: string | null;
2366
+ baseCurrency: string | null;
2367
+ fxRateSetId: string | null;
2369
2368
  subtotalCents: number;
2370
2369
  baseSubtotalCents: number | null;
2371
2370
  taxCents: number;
@@ -2378,6 +2377,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2378
2377
  baseBalanceDueCents: number | null;
2379
2378
  commissionPercent: number | null;
2380
2379
  commissionAmountCents: number | null;
2380
+ issueDate: string;
2381
2381
  dueDate: string;
2382
2382
  } | undefined;
2383
2383
  };
@@ -2399,17 +2399,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2399
2399
  output: {
2400
2400
  data: {
2401
2401
  id: string;
2402
- createdAt: string;
2403
- updatedAt: string;
2402
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2404
2403
  organizationId: string | null;
2405
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
2406
- issueDate: string;
2404
+ createdAt: string;
2407
2405
  currency: string;
2408
2406
  notes: string | null;
2407
+ updatedAt: string;
2409
2408
  bookingId: string;
2410
2409
  personId: string | null;
2411
- baseCurrency: string | null;
2412
- fxRateSetId: string | null;
2413
2410
  invoiceNumber: string;
2414
2411
  invoiceType: "invoice" | "proforma" | "credit_note";
2415
2412
  convertedFromInvoiceId: string | null;
@@ -2418,6 +2415,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2418
2415
  templateId: string | null;
2419
2416
  taxRegimeId: string | null;
2420
2417
  language: string | null;
2418
+ baseCurrency: string | null;
2419
+ fxRateSetId: string | null;
2421
2420
  subtotalCents: number;
2422
2421
  baseSubtotalCents: number | null;
2423
2422
  taxCents: number;
@@ -2430,6 +2429,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2430
2429
  baseBalanceDueCents: number | null;
2431
2430
  commissionPercent: number | null;
2432
2431
  commissionAmountCents: number | null;
2432
+ issueDate: string;
2433
2433
  dueDate: string;
2434
2434
  } | null;
2435
2435
  };
@@ -2470,17 +2470,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2470
2470
  output: {
2471
2471
  data: {
2472
2472
  id: string;
2473
- createdAt: string;
2474
- updatedAt: string;
2473
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2475
2474
  organizationId: string | null;
2476
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
2477
- issueDate: string;
2475
+ createdAt: string;
2478
2476
  currency: string;
2479
2477
  notes: string | null;
2478
+ updatedAt: string;
2480
2479
  bookingId: string;
2481
2480
  personId: string | null;
2482
- baseCurrency: string | null;
2483
- fxRateSetId: string | null;
2484
2481
  invoiceNumber: string;
2485
2482
  invoiceType: "invoice" | "proforma" | "credit_note";
2486
2483
  convertedFromInvoiceId: string | null;
@@ -2489,6 +2486,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2489
2486
  templateId: string | null;
2490
2487
  taxRegimeId: string | null;
2491
2488
  language: string | null;
2489
+ baseCurrency: string | null;
2490
+ fxRateSetId: string | null;
2492
2491
  subtotalCents: number;
2493
2492
  baseSubtotalCents: number | null;
2494
2493
  taxCents: number;
@@ -2501,6 +2500,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2501
2500
  baseBalanceDueCents: number | null;
2502
2501
  commissionPercent: number | null;
2503
2502
  commissionAmountCents: number | null;
2503
+ issueDate: string;
2504
2504
  dueDate: string;
2505
2505
  };
2506
2506
  };
@@ -2541,7 +2541,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2541
2541
  bookingId: string;
2542
2542
  personId: string | null;
2543
2543
  organizationId: string | null;
2544
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
2544
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2545
2545
  currency: string;
2546
2546
  baseCurrency: string | null;
2547
2547
  fxRateSetId: string | null;
@@ -2601,7 +2601,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2601
2601
  bookingId: string;
2602
2602
  personId: string | null;
2603
2603
  organizationId: string | null;
2604
- status: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
2604
+ status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
2605
2605
  currency: string;
2606
2606
  baseCurrency: string | null;
2607
2607
  fxRateSetId: string | null;
@@ -2686,26 +2686,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2686
2686
  };
2687
2687
  output: {
2688
2688
  data: {
2689
- metadata: {
2690
- [x: string]: import("hono/utils/types").JSONValue;
2691
- } | null;
2692
2689
  id: string;
2690
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
2691
+ idempotencyKey: string | null;
2692
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
2693
+ targetId: string | null;
2693
2694
  createdAt: string;
2694
- updatedAt: string;
2695
2695
  expiresAt: string | null;
2696
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
2697
2696
  currency: string;
2698
2697
  notes: string | null;
2699
- idempotencyKey: string | null;
2700
- provider: string | null;
2698
+ updatedAt: string;
2701
2699
  bookingId: string | null;
2702
- expiredAt: string | null;
2703
- cancelledAt: string | null;
2704
- completedAt: string | null;
2705
2700
  paymentId: string | null;
2706
2701
  amountCents: number;
2707
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
2708
- targetId: string | null;
2702
+ provider: string | null;
2703
+ metadata: {
2704
+ [x: string]: import("hono/utils/types").JSONValue;
2705
+ } | null;
2709
2706
  orderId: string | null;
2710
2707
  invoiceId: string | null;
2711
2708
  bookingPaymentScheduleId: string | null;
@@ -2713,7 +2710,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2713
2710
  bookingGuaranteeId: string | null;
2714
2711
  paymentAuthorizationId: string | null;
2715
2712
  paymentCaptureId: string | null;
2716
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
2713
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
2717
2714
  providerSessionId: string | null;
2718
2715
  providerPaymentId: string | null;
2719
2716
  externalReference: string | null;
@@ -2726,7 +2723,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2726
2723
  returnUrl: string | null;
2727
2724
  cancelUrl: string | null;
2728
2725
  callbackUrl: string | null;
2726
+ completedAt: string | null;
2729
2727
  failedAt: string | null;
2728
+ cancelledAt: string | null;
2729
+ expiredAt: string | null;
2730
2730
  failureCode: string | null;
2731
2731
  failureMessage: string | null;
2732
2732
  providerPayload: {
@@ -2797,13 +2797,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2797
2797
  output: {
2798
2798
  data: {
2799
2799
  id: string;
2800
- createdAt: string;
2801
2800
  description: string;
2802
- quantity: number;
2803
- bookingItemId: string | null;
2801
+ createdAt: string;
2804
2802
  totalCents: number;
2805
2803
  invoiceId: string;
2804
+ bookingItemId: string | null;
2806
2805
  sortOrder: number;
2806
+ quantity: number;
2807
2807
  unitPriceCents: number;
2808
2808
  taxRate: number | null;
2809
2809
  };
@@ -2900,11 +2900,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2900
2900
  baseCurrency: string | null;
2901
2901
  baseAmountCents: number | null;
2902
2902
  fxRateSetId: string | null;
2903
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2903
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2904
2904
  paymentInstrumentId: string | null;
2905
2905
  paymentAuthorizationId: string | null;
2906
2906
  paymentCaptureId: string | null;
2907
- status: "pending" | "completed" | "failed" | "refunded";
2907
+ status: "failed" | "pending" | "completed" | "refunded";
2908
2908
  referenceNumber: string | null;
2909
2909
  paymentDate: string;
2910
2910
  notes: string | null;
@@ -2938,21 +2938,21 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2938
2938
  output: {
2939
2939
  data: {
2940
2940
  id: string;
2941
+ status: "failed" | "pending" | "completed" | "refunded";
2941
2942
  createdAt: string;
2942
- updatedAt: string;
2943
- status: "pending" | "completed" | "failed" | "refunded";
2944
2943
  currency: string;
2945
2944
  notes: string | null;
2945
+ updatedAt: string;
2946
+ amountCents: number;
2946
2947
  baseCurrency: string | null;
2947
2948
  fxRateSetId: string | null;
2948
- amountCents: number;
2949
2949
  invoiceId: string;
2950
2950
  paymentInstrumentId: string | null;
2951
2951
  paymentAuthorizationId: string | null;
2952
2952
  referenceNumber: string | null;
2953
2953
  paymentCaptureId: string | null;
2954
2954
  baseAmountCents: number | null;
2955
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2955
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
2956
2956
  paymentDate: string;
2957
2957
  };
2958
2958
  };
@@ -3026,18 +3026,18 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3026
3026
  output: {
3027
3027
  data: {
3028
3028
  id: string;
3029
- createdAt: string;
3030
- updatedAt: string;
3031
3029
  status: "draft" | "issued" | "applied";
3030
+ createdAt: string;
3032
3031
  currency: string;
3033
3032
  notes: string | null;
3033
+ updatedAt: string;
3034
+ amountCents: number;
3034
3035
  baseCurrency: string | null;
3035
3036
  fxRateSetId: string | null;
3036
- reason: string;
3037
- amountCents: number;
3038
3037
  invoiceId: string;
3039
3038
  baseAmountCents: number | null;
3040
3039
  creditNoteNumber: string;
3040
+ reason: string;
3041
3041
  };
3042
3042
  };
3043
3043
  outputFormat: "json";
@@ -3140,11 +3140,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3140
3140
  output: {
3141
3141
  data: {
3142
3142
  id: string;
3143
- createdAt: string;
3144
3143
  description: string;
3145
- quantity: number;
3144
+ createdAt: string;
3146
3145
  totalCents: number;
3147
3146
  sortOrder: number;
3147
+ quantity: number;
3148
3148
  unitPriceCents: number;
3149
3149
  creditNoteId: string;
3150
3150
  };
@@ -3197,9 +3197,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3197
3197
  data: {
3198
3198
  id: string;
3199
3199
  createdAt: string;
3200
+ invoiceId: string;
3200
3201
  authorId: string;
3201
3202
  content: string;
3202
- invoiceId: string;
3203
3203
  };
3204
3204
  };
3205
3205
  outputFormat: "json";
@@ -3242,12 +3242,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3242
3242
  data: {
3243
3243
  name: string;
3244
3244
  id: string;
3245
- prefix: string;
3246
3245
  createdAt: string;
3246
+ active: boolean;
3247
+ code: string;
3247
3248
  updatedAt: string;
3248
3249
  scope: "invoice" | "proforma" | "credit_note";
3249
- code: string;
3250
- active: boolean;
3250
+ prefix: string;
3251
3251
  separator: string;
3252
3252
  padLength: number;
3253
3253
  currentSequence: number;
@@ -3439,17 +3439,17 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3439
3439
  input: {};
3440
3440
  output: {
3441
3441
  data: {
3442
- metadata: import("hono/utils/types").JSONValue;
3443
3442
  name: string;
3444
3443
  id: string;
3445
3444
  createdAt: string;
3446
- updatedAt: string;
3447
- slug: string;
3448
3445
  active: boolean;
3449
- body: string;
3446
+ updatedAt: string;
3447
+ metadata: import("hono/utils/types").JSONValue;
3450
3448
  language: string;
3451
3449
  jurisdiction: string | null;
3450
+ slug: string;
3452
3451
  bodyFormat: "html" | "markdown" | "lexical_json";
3452
+ body: string;
3453
3453
  cssStyles: string | null;
3454
3454
  isDefault: boolean;
3455
3455
  } | null;
@@ -3596,14 +3596,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3596
3596
  input: {};
3597
3597
  output: {
3598
3598
  data: {
3599
- metadata: import("hono/utils/types").JSONValue;
3600
3599
  name: string;
3601
3600
  id: string;
3602
- createdAt: string;
3603
- updatedAt: string;
3604
3601
  description: string | null;
3605
- code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
3602
+ createdAt: string;
3606
3603
  active: boolean;
3604
+ code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
3605
+ updatedAt: string;
3606
+ metadata: import("hono/utils/types").JSONValue;
3607
3607
  jurisdiction: string | null;
3608
3608
  ratePercent: number | null;
3609
3609
  legalReference: string | null;
@@ -3749,11 +3749,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3749
3749
  output: {
3750
3750
  data: {
3751
3751
  id: string;
3752
- createdAt: string;
3753
- updatedAt: string;
3754
3752
  description: string | null;
3755
- code: string;
3753
+ createdAt: string;
3756
3754
  active: boolean;
3755
+ code: string;
3756
+ updatedAt: string;
3757
3757
  label: string;
3758
3758
  defaultRegimeId: string | null;
3759
3759
  lines: {
@@ -3901,11 +3901,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3901
3901
  data: {
3902
3902
  name: string;
3903
3903
  id: string;
3904
- createdAt: string;
3905
- updatedAt: string;
3906
3904
  description: string | null;
3907
- code: string;
3905
+ createdAt: string;
3908
3906
  active: boolean;
3907
+ code: string;
3908
+ updatedAt: string;
3909
3909
  jurisdiction: string | null;
3910
3910
  } | null;
3911
3911
  };
@@ -4020,7 +4020,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4020
4020
  side: "sell" | "buy";
4021
4021
  priority: number;
4022
4022
  name: string;
4023
- appliesTo: "all" | "accommodation" | "base" | "addon";
4023
+ appliesTo: "base" | "addon" | "accommodation" | "all";
4024
4024
  condition: {
4025
4025
  [x: string]: import("hono/utils/types").JSONValue;
4026
4026
  } | null;
@@ -4046,13 +4046,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4046
4046
  name: string;
4047
4047
  id: string;
4048
4048
  createdAt: string;
4049
- updatedAt: string;
4050
4049
  active: boolean;
4050
+ updatedAt: string;
4051
4051
  taxRegimeId: string;
4052
4052
  profileId: string;
4053
4053
  side: "sell" | "buy";
4054
4054
  priority: number;
4055
- appliesTo: "all" | "accommodation" | "base" | "addon";
4055
+ appliesTo: "base" | "addon" | "accommodation" | "all";
4056
4056
  condition: {
4057
4057
  [x: string]: import("hono/utils/types").JSONValue;
4058
4058
  } | null;
@@ -4088,7 +4088,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4088
4088
  side: "sell" | "buy";
4089
4089
  priority: number;
4090
4090
  name: string;
4091
- appliesTo: "all" | "accommodation" | "base" | "addon";
4091
+ appliesTo: "base" | "addon" | "accommodation" | "all";
4092
4092
  condition: {
4093
4093
  [x: string]: import("hono/utils/types").JSONValue;
4094
4094
  } | null;
@@ -4128,7 +4128,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4128
4128
  side: "sell" | "buy";
4129
4129
  priority: number;
4130
4130
  name: string;
4131
- appliesTo: "all" | "accommodation" | "base" | "addon";
4131
+ appliesTo: "base" | "addon" | "accommodation" | "all";
4132
4132
  condition: {
4133
4133
  [x: string]: import("hono/utils/types").JSONValue;
4134
4134
  } | null;
@@ -4181,8 +4181,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4181
4181
  id: string;
4182
4182
  invoiceId: string;
4183
4183
  templateId: string | null;
4184
- format: "json" | "pdf" | "html" | "xml";
4185
- status: "pending" | "failed" | "ready" | "stale";
4184
+ format: "json" | "html" | "pdf" | "xml";
4185
+ status: "failed" | "pending" | "ready" | "stale";
4186
4186
  storageKey: string | null;
4187
4187
  fileSize: number | null;
4188
4188
  checksum: string | null;
@@ -4245,15 +4245,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4245
4245
  };
4246
4246
  output: {
4247
4247
  data: {
4248
- metadata: import("hono/utils/types").JSONValue;
4249
4248
  name: string;
4250
4249
  id: string;
4251
4250
  createdAt: string;
4252
- kind: string;
4251
+ metadata: import("hono/utils/types").JSONValue;
4253
4252
  invoiceId: string;
4254
4253
  storageKey: string | null;
4255
4254
  fileSize: number | null;
4256
4255
  checksum: string | null;
4256
+ kind: string;
4257
4257
  mimeType: string | null;
4258
4258
  };
4259
4259
  };
@@ -4388,19 +4388,19 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4388
4388
  };
4389
4389
  output: {
4390
4390
  data: {
4391
- metadata: import("hono/utils/types").JSONValue;
4391
+ format: "json" | "html" | "pdf" | "xml";
4392
4392
  id: string;
4393
+ status: "failed" | "pending" | "ready" | "stale";
4393
4394
  createdAt: string;
4394
4395
  updatedAt: string;
4395
- status: "pending" | "failed" | "ready" | "stale";
4396
- format: "json" | "pdf" | "html" | "xml";
4397
- errorMessage: string | null;
4396
+ metadata: import("hono/utils/types").JSONValue;
4398
4397
  templateId: string | null;
4399
4398
  language: string | null;
4400
4399
  invoiceId: string;
4401
4400
  storageKey: string | null;
4402
4401
  fileSize: number | null;
4403
4402
  checksum: string | null;
4403
+ errorMessage: string | null;
4404
4404
  generatedAt: string | null;
4405
4405
  } | null;
4406
4406
  };
@@ -4457,12 +4457,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4457
4457
  };
4458
4458
  output: {
4459
4459
  data: {
4460
- metadata: import("hono/utils/types").JSONValue;
4461
4460
  id: string;
4461
+ status: string | null;
4462
4462
  createdAt: string;
4463
4463
  updatedAt: string;
4464
- status: string | null;
4465
4464
  provider: string;
4465
+ metadata: import("hono/utils/types").JSONValue;
4466
4466
  invoiceId: string;
4467
4467
  externalId: string | null;
4468
4468
  externalNumber: string | null;
@@ -4514,7 +4514,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4514
4514
  id: string;
4515
4515
  code: string;
4516
4516
  seriesCode: string | null;
4517
- status: "void" | "active" | "expired" | "redeemed";
4517
+ status: "expired" | "void" | "active" | "redeemed";
4518
4518
  currency: string;
4519
4519
  initialAmountCents: number;
4520
4520
  remainingAmountCents: number;
@@ -4545,23 +4545,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4545
4545
  output: {
4546
4546
  data: {
4547
4547
  id: string;
4548
+ status: "expired" | "void" | "active" | "redeemed";
4548
4549
  createdAt: string;
4549
- updatedAt: string;
4550
4550
  expiresAt: string | null;
4551
- status: "void" | "active" | "expired" | "redeemed";
4552
- currency: string;
4553
- notes: string | null;
4554
4551
  code: string;
4555
- sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
4556
4552
  seriesCode: string | null;
4553
+ currency: string;
4557
4554
  initialAmountCents: number;
4558
4555
  remainingAmountCents: number;
4559
4556
  issuedToPersonId: string | null;
4560
4557
  issuedToOrganizationId: string | null;
4558
+ sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
4561
4559
  sourceBookingId: string | null;
4562
4560
  sourcePaymentId: string | null;
4563
4561
  validFrom: string | null;
4562
+ notes: string | null;
4564
4563
  issuedByUserId: string | null;
4564
+ updatedAt: string;
4565
4565
  } | null;
4566
4566
  };
4567
4567
  outputFormat: "json";
@@ -4608,7 +4608,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4608
4608
  id: string;
4609
4609
  code: string;
4610
4610
  seriesCode: string | null;
4611
- status: "void" | "active" | "expired" | "redeemed";
4611
+ status: "expired" | "void" | "active" | "redeemed";
4612
4612
  currency: string;
4613
4613
  initialAmountCents: number;
4614
4614
  remainingAmountCents: number;
@@ -4653,7 +4653,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4653
4653
  id: string;
4654
4654
  code: string;
4655
4655
  seriesCode: string | null;
4656
- status: "void" | "active" | "expired" | "redeemed";
4656
+ status: "expired" | "void" | "active" | "redeemed";
4657
4657
  currency: string;
4658
4658
  initialAmountCents: number;
4659
4659
  remainingAmountCents: number;
@@ -4688,7 +4688,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4688
4688
  id: string;
4689
4689
  code: string;
4690
4690
  seriesCode: string | null;
4691
- status: "void" | "active" | "expired" | "redeemed";
4691
+ status: "expired" | "void" | "active" | "redeemed";
4692
4692
  currency: string;
4693
4693
  initialAmountCents: number;
4694
4694
  remainingAmountCents: number;
@@ -4707,8 +4707,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4707
4707
  redemption: {
4708
4708
  id: string;
4709
4709
  createdAt: string;
4710
- bookingId: string;
4711
4710
  voucherId: string;
4711
+ bookingId: string;
4712
4712
  paymentId: string | null;
4713
4713
  amountCents: number;
4714
4714
  createdByUserId: string | null;
@@ -4757,8 +4757,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4757
4757
  invoiceId: string;
4758
4758
  invoiceNumber: string;
4759
4759
  invoiceType: "invoice" | "proforma" | "credit_note";
4760
- status: "pending" | "completed" | "failed" | "refunded";
4761
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
4760
+ status: "failed" | "pending" | "completed" | "refunded";
4761
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
4762
4762
  amountCents: number;
4763
4763
  currency: string;
4764
4764
  paymentDate: string;