@voyant-travel/finance 0.132.0 → 0.134.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/checkout-routes.d.ts +138 -138
  2. package/dist/checkout-validation.d.ts +39 -39
  3. package/dist/routes-action-ledger.d.ts +15 -15
  4. package/dist/routes-booking-billing.d.ts +59 -59
  5. package/dist/routes-documents.d.ts +10 -10
  6. package/dist/routes-invoice-core.d.ts +26 -26
  7. package/dist/routes-invoice-documents.d.ts +28 -28
  8. package/dist/routes-invoice-issue.d.ts +18 -18
  9. package/dist/routes-payment-processing.d.ts +45 -45
  10. package/dist/routes-payments.d.ts +6 -6
  11. package/dist/routes-public.d.ts +34 -34
  12. package/dist/routes-reference-data.d.ts +15 -15
  13. package/dist/routes-supplier-invoices.d.ts +32 -32
  14. package/dist/routes-vouchers.d.ts +13 -13
  15. package/dist/routes.d.ts +210 -210
  16. package/dist/schema/booking-billing.d.ts +3 -3
  17. package/dist/schema/payment-processing.d.ts +1 -1
  18. package/dist/schema/payment-sessions.d.ts +2 -2
  19. package/dist/schema/supplier-invoices.d.ts +3 -3
  20. package/dist/schema/tax.d.ts +1 -1
  21. package/dist/schema/vouchers.d.ts +1 -1
  22. package/dist/service-accountant-shares.d.ts +5 -5
  23. package/dist/service-booking-billing.d.ts +79 -79
  24. package/dist/service-booking-create.d.ts +23 -23
  25. package/dist/service-booking-guarantees.d.ts +23 -23
  26. package/dist/service-booking-item-billing.d.ts +15 -15
  27. package/dist/service-booking-payment-schedules.d.ts +41 -41
  28. package/dist/service-bookings-dual-create.d.ts +36 -36
  29. package/dist/service-invoice-artifacts.d.ts +34 -39
  30. package/dist/service-invoice-artifacts.d.ts.map +1 -1
  31. package/dist/service-invoice-artifacts.js +1 -1
  32. package/dist/service-invoice-core.d.ts +6 -6
  33. package/dist/service-invoice-credit-notes.d.ts +7 -7
  34. package/dist/service-invoice-from-booking.d.ts +6 -6
  35. package/dist/service-invoice-line-items.d.ts +8 -8
  36. package/dist/service-invoice-numbering.d.ts +26 -31
  37. package/dist/service-invoice-numbering.d.ts.map +1 -1
  38. package/dist/service-invoice-numbering.js +1 -1
  39. package/dist/service-invoice-payments.d.ts +3 -3
  40. package/dist/service-invoices.d.ts +30 -30
  41. package/dist/service-issue.d.ts +12 -12
  42. package/dist/service-payment-authorizations.d.ts +48 -58
  43. package/dist/service-payment-authorizations.d.ts.map +1 -1
  44. package/dist/service-payment-authorizations.js +2 -2
  45. package/dist/service-payment-instruments.d.ts +30 -35
  46. package/dist/service-payment-instruments.d.ts.map +1 -1
  47. package/dist/service-payment-instruments.js +1 -1
  48. package/dist/service-payment-processing.d.ts +145 -165
  49. package/dist/service-payment-processing.d.ts.map +1 -1
  50. package/dist/service-payment-session-completion.d.ts +2 -2
  51. package/dist/service-payment-sessions.d.ts +65 -70
  52. package/dist/service-payment-sessions.d.ts.map +1 -1
  53. package/dist/service-payment-sessions.js +1 -1
  54. package/dist/service-public.d.ts +10 -10
  55. package/dist/service-reference-data.d.ts +63 -83
  56. package/dist/service-reference-data.d.ts.map +1 -1
  57. package/dist/service-reference-data.js +4 -4
  58. package/dist/service-reports.d.ts +2 -2
  59. package/dist/service-shared.d.ts +3 -8
  60. package/dist/service-shared.d.ts.map +1 -1
  61. package/dist/service-shared.js +2 -1
  62. package/dist/service-supplier-invoices.d.ts +19 -19
  63. package/dist/service-supplier-payments.d.ts +6 -6
  64. package/dist/service-vouchers.d.ts +12 -12
  65. package/dist/service.d.ts +399 -449
  66. package/dist/service.d.ts.map +1 -1
  67. package/package.json +8 -7
@@ -66,19 +66,25 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
66
66
  willCreateDefaultPaymentPlan: boolean;
67
67
  selectedSchedule: {
68
68
  id: string;
69
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
70
+ createdAt: string;
71
+ notes: string | null;
72
+ updatedAt: string;
69
73
  bookingId: string;
70
- status: "paid" | "expired" | "cancelled" | "pending" | "due" | "waived";
71
74
  currency: string;
72
75
  dueDate: string;
73
- notes: string | null;
74
- createdAt: string;
75
- updatedAt: string;
76
- amountCents: number;
77
76
  bookingItemId: string | null;
78
77
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
78
+ amountCents: number;
79
79
  } | null;
80
80
  selectedInvoice: {
81
81
  id: string;
82
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
83
+ organizationId: string | null;
84
+ createdAt: string;
85
+ personId: string | null;
86
+ notes: string | null;
87
+ updatedAt: string;
82
88
  invoiceNumber: string;
83
89
  invoiceType: "invoice" | "proforma" | "credit_note";
84
90
  convertedFromInvoiceId: string | null;
@@ -88,9 +94,6 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
88
94
  taxRegimeId: string | null;
89
95
  language: string | null;
90
96
  bookingId: string;
91
- personId: string | null;
92
- organizationId: string | null;
93
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
94
97
  currency: string;
95
98
  baseCurrency: string | null;
96
99
  fxRateSetId: string | null;
@@ -108,11 +111,8 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
108
111
  commissionAmountCents: number | null;
109
112
  issueDate: string;
110
113
  dueDate: string;
111
- notes: string | null;
112
114
  voidedAt: string | null;
113
115
  voidReason: string | null;
114
- createdAt: string;
115
- updatedAt: string;
116
116
  } | null;
117
117
  amountCents: number;
118
118
  currency: string;
@@ -164,19 +164,25 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
164
164
  willCreateDefaultPaymentPlan: boolean;
165
165
  selectedSchedule: {
166
166
  id: string;
167
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
168
+ createdAt: string;
169
+ notes: string | null;
170
+ updatedAt: string;
167
171
  bookingId: string;
168
- status: "paid" | "expired" | "cancelled" | "pending" | "due" | "waived";
169
172
  currency: string;
170
173
  dueDate: string;
171
- notes: string | null;
172
- createdAt: string;
173
- updatedAt: string;
174
- amountCents: number;
175
174
  bookingItemId: string | null;
176
175
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
176
+ amountCents: number;
177
177
  } | null;
178
178
  selectedInvoice: {
179
179
  id: string;
180
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
181
+ organizationId: string | null;
182
+ createdAt: string;
183
+ personId: string | null;
184
+ notes: string | null;
185
+ updatedAt: string;
180
186
  invoiceNumber: string;
181
187
  invoiceType: "invoice" | "proforma" | "credit_note";
182
188
  convertedFromInvoiceId: string | null;
@@ -186,9 +192,6 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
186
192
  taxRegimeId: string | null;
187
193
  language: string | null;
188
194
  bookingId: string;
189
- personId: string | null;
190
- organizationId: string | null;
191
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
192
195
  currency: string;
193
196
  baseCurrency: string | null;
194
197
  fxRateSetId: string | null;
@@ -206,11 +209,8 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
206
209
  commissionAmountCents: number | null;
207
210
  issueDate: string;
208
211
  dueDate: string;
209
- notes: string | null;
210
212
  voidedAt: string | null;
211
213
  voidReason: string | null;
212
- createdAt: string;
213
- updatedAt: string;
214
214
  } | null;
215
215
  amountCents: number;
216
216
  currency: string;
@@ -218,6 +218,12 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
218
218
  };
219
219
  invoice: {
220
220
  id: string;
221
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
222
+ organizationId: string | null;
223
+ createdAt: string;
224
+ personId: string | null;
225
+ notes: string | null;
226
+ updatedAt: string;
221
227
  invoiceNumber: string;
222
228
  invoiceType: "invoice" | "proforma" | "credit_note";
223
229
  convertedFromInvoiceId: string | null;
@@ -227,9 +233,6 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
227
233
  taxRegimeId: string | null;
228
234
  language: string | null;
229
235
  bookingId: string;
230
- personId: string | null;
231
- organizationId: string | null;
232
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
233
236
  currency: string;
234
237
  baseCurrency: string | null;
235
238
  fxRateSetId: string | null;
@@ -247,37 +250,34 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
247
250
  commissionAmountCents: number | null;
248
251
  issueDate: string;
249
252
  dueDate: string;
250
- notes: string | null;
251
253
  voidedAt: string | null;
252
254
  voidReason: string | null;
253
- createdAt: string;
254
- updatedAt: string;
255
255
  } | null;
256
256
  paymentSession: {
257
257
  id: string;
258
- bookingId: string | null;
259
- status: "paid" | "failed" | "expired" | "cancelled" | "pending" | "authorized" | "requires_redirect" | "processing";
260
- currency: string;
261
- notes: string | null;
262
- createdAt: string;
263
- updatedAt: string;
258
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
264
259
  idempotencyKey: string | null;
265
- targetType: "invoice" | "booking" | "other" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
260
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
266
261
  targetId: string | null;
267
- invoiceId: string | null;
268
- amountCents: number;
269
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
262
+ createdAt: string;
263
+ expiresAt: string | null;
270
264
  provider: string | null;
265
+ notes: string | null;
271
266
  metadata: {
272
267
  [x: string]: import("hono/utils/types").JSONValue;
273
268
  } | null;
269
+ updatedAt: string;
270
+ bookingId: string | null;
271
+ currency: string;
272
+ invoiceId: string | null;
273
+ amountCents: number;
274
+ bookingPaymentScheduleId: string | null;
275
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
274
276
  paymentInstrumentId: string | null;
275
277
  orderId: string | null;
276
278
  bookingGuaranteeId: string | null;
277
- expiresAt: string | null;
278
279
  paymentAuthorizationId: string | null;
279
280
  paymentCaptureId: string | null;
280
- bookingPaymentScheduleId: string | null;
281
281
  paymentId: string | null;
282
282
  providerSessionId: string | null;
283
283
  providerPaymentId: string | null;
@@ -392,19 +392,25 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
392
392
  willCreateDefaultPaymentPlan: boolean;
393
393
  selectedSchedule: {
394
394
  id: string;
395
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
396
+ createdAt: string;
397
+ notes: string | null;
398
+ updatedAt: string;
395
399
  bookingId: string;
396
- status: "paid" | "expired" | "cancelled" | "pending" | "due" | "waived";
397
400
  currency: string;
398
401
  dueDate: string;
399
- notes: string | null;
400
- createdAt: string;
401
- updatedAt: string;
402
- amountCents: number;
403
402
  bookingItemId: string | null;
404
403
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
404
+ amountCents: number;
405
405
  } | null;
406
406
  selectedInvoice: {
407
407
  id: string;
408
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
409
+ organizationId: string | null;
410
+ createdAt: string;
411
+ personId: string | null;
412
+ notes: string | null;
413
+ updatedAt: string;
408
414
  invoiceNumber: string;
409
415
  invoiceType: "invoice" | "proforma" | "credit_note";
410
416
  convertedFromInvoiceId: string | null;
@@ -414,9 +420,6 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
414
420
  taxRegimeId: string | null;
415
421
  language: string | null;
416
422
  bookingId: string;
417
- personId: string | null;
418
- organizationId: string | null;
419
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
420
423
  currency: string;
421
424
  baseCurrency: string | null;
422
425
  fxRateSetId: string | null;
@@ -434,11 +437,8 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
434
437
  commissionAmountCents: number | null;
435
438
  issueDate: string;
436
439
  dueDate: string;
437
- notes: string | null;
438
440
  voidedAt: string | null;
439
441
  voidReason: string | null;
440
- createdAt: string;
441
- updatedAt: string;
442
442
  } | null;
443
443
  amountCents: number;
444
444
  currency: string;
@@ -446,6 +446,12 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
446
446
  };
447
447
  invoice: {
448
448
  id: string;
449
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
450
+ organizationId: string | null;
451
+ createdAt: string;
452
+ personId: string | null;
453
+ notes: string | null;
454
+ updatedAt: string;
449
455
  invoiceNumber: string;
450
456
  invoiceType: "invoice" | "proforma" | "credit_note";
451
457
  convertedFromInvoiceId: string | null;
@@ -455,9 +461,6 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
455
461
  taxRegimeId: string | null;
456
462
  language: string | null;
457
463
  bookingId: string;
458
- personId: string | null;
459
- organizationId: string | null;
460
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
461
464
  currency: string;
462
465
  baseCurrency: string | null;
463
466
  fxRateSetId: string | null;
@@ -475,37 +478,34 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
475
478
  commissionAmountCents: number | null;
476
479
  issueDate: string;
477
480
  dueDate: string;
478
- notes: string | null;
479
481
  voidedAt: string | null;
480
482
  voidReason: string | null;
481
- createdAt: string;
482
- updatedAt: string;
483
483
  } | null;
484
484
  paymentSession: {
485
485
  id: string;
486
- bookingId: string | null;
487
- status: "paid" | "failed" | "expired" | "cancelled" | "pending" | "authorized" | "requires_redirect" | "processing";
488
- currency: string;
489
- notes: string | null;
490
- createdAt: string;
491
- updatedAt: string;
486
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
492
487
  idempotencyKey: string | null;
493
- targetType: "invoice" | "booking" | "other" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
488
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
494
489
  targetId: string | null;
495
- invoiceId: string | null;
496
- amountCents: number;
497
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
490
+ createdAt: string;
491
+ expiresAt: string | null;
498
492
  provider: string | null;
493
+ notes: string | null;
499
494
  metadata: {
500
495
  [x: string]: import("hono/utils/types").JSONValue;
501
496
  } | null;
497
+ updatedAt: string;
498
+ bookingId: string | null;
499
+ currency: string;
500
+ invoiceId: string | null;
501
+ amountCents: number;
502
+ bookingPaymentScheduleId: string | null;
503
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
502
504
  paymentInstrumentId: string | null;
503
505
  orderId: string | null;
504
506
  bookingGuaranteeId: string | null;
505
- expiresAt: string | null;
506
507
  paymentAuthorizationId: string | null;
507
508
  paymentCaptureId: string | null;
508
- bookingPaymentScheduleId: string | null;
509
509
  paymentId: string | null;
510
510
  providerSessionId: string | null;
511
511
  providerPaymentId: string | null;
@@ -620,19 +620,25 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
620
620
  willCreateDefaultPaymentPlan: boolean;
621
621
  selectedSchedule: {
622
622
  id: string;
623
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
624
+ createdAt: string;
625
+ notes: string | null;
626
+ updatedAt: string;
623
627
  bookingId: string;
624
- status: "paid" | "expired" | "cancelled" | "pending" | "due" | "waived";
625
628
  currency: string;
626
629
  dueDate: string;
627
- notes: string | null;
628
- createdAt: string;
629
- updatedAt: string;
630
- amountCents: number;
631
630
  bookingItemId: string | null;
632
631
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
632
+ amountCents: number;
633
633
  } | null;
634
634
  selectedInvoice: {
635
635
  id: string;
636
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
637
+ organizationId: string | null;
638
+ createdAt: string;
639
+ personId: string | null;
640
+ notes: string | null;
641
+ updatedAt: string;
636
642
  invoiceNumber: string;
637
643
  invoiceType: "invoice" | "proforma" | "credit_note";
638
644
  convertedFromInvoiceId: string | null;
@@ -642,9 +648,6 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
642
648
  taxRegimeId: string | null;
643
649
  language: string | null;
644
650
  bookingId: string;
645
- personId: string | null;
646
- organizationId: string | null;
647
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
648
651
  currency: string;
649
652
  baseCurrency: string | null;
650
653
  fxRateSetId: string | null;
@@ -662,11 +665,8 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
662
665
  commissionAmountCents: number | null;
663
666
  issueDate: string;
664
667
  dueDate: string;
665
- notes: string | null;
666
668
  voidedAt: string | null;
667
669
  voidReason: string | null;
668
- createdAt: string;
669
- updatedAt: string;
670
670
  } | null;
671
671
  amountCents: number;
672
672
  currency: string;
@@ -718,19 +718,25 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
718
718
  willCreateDefaultPaymentPlan: boolean;
719
719
  selectedSchedule: {
720
720
  id: string;
721
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
722
+ createdAt: string;
723
+ notes: string | null;
724
+ updatedAt: string;
721
725
  bookingId: string;
722
- status: "paid" | "expired" | "cancelled" | "pending" | "due" | "waived";
723
726
  currency: string;
724
727
  dueDate: string;
725
- notes: string | null;
726
- createdAt: string;
727
- updatedAt: string;
728
- amountCents: number;
729
728
  bookingItemId: string | null;
730
729
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
730
+ amountCents: number;
731
731
  } | null;
732
732
  selectedInvoice: {
733
733
  id: string;
734
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
735
+ organizationId: string | null;
736
+ createdAt: string;
737
+ personId: string | null;
738
+ notes: string | null;
739
+ updatedAt: string;
734
740
  invoiceNumber: string;
735
741
  invoiceType: "invoice" | "proforma" | "credit_note";
736
742
  convertedFromInvoiceId: string | null;
@@ -740,9 +746,6 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
740
746
  taxRegimeId: string | null;
741
747
  language: string | null;
742
748
  bookingId: string;
743
- personId: string | null;
744
- organizationId: string | null;
745
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
746
749
  currency: string;
747
750
  baseCurrency: string | null;
748
751
  fxRateSetId: string | null;
@@ -760,11 +763,8 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
760
763
  commissionAmountCents: number | null;
761
764
  issueDate: string;
762
765
  dueDate: string;
763
- notes: string | null;
764
766
  voidedAt: string | null;
765
767
  voidReason: string | null;
766
- createdAt: string;
767
- updatedAt: string;
768
768
  } | null;
769
769
  amountCents: number;
770
770
  currency: string;
@@ -772,6 +772,12 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
772
772
  };
773
773
  invoice: {
774
774
  id: string;
775
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
776
+ organizationId: string | null;
777
+ createdAt: string;
778
+ personId: string | null;
779
+ notes: string | null;
780
+ updatedAt: string;
775
781
  invoiceNumber: string;
776
782
  invoiceType: "invoice" | "proforma" | "credit_note";
777
783
  convertedFromInvoiceId: string | null;
@@ -781,9 +787,6 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
781
787
  taxRegimeId: string | null;
782
788
  language: string | null;
783
789
  bookingId: string;
784
- personId: string | null;
785
- organizationId: string | null;
786
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
787
790
  currency: string;
788
791
  baseCurrency: string | null;
789
792
  fxRateSetId: string | null;
@@ -801,37 +804,34 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
801
804
  commissionAmountCents: number | null;
802
805
  issueDate: string;
803
806
  dueDate: string;
804
- notes: string | null;
805
807
  voidedAt: string | null;
806
808
  voidReason: string | null;
807
- createdAt: string;
808
- updatedAt: string;
809
809
  } | null;
810
810
  paymentSession: {
811
811
  id: string;
812
- bookingId: string | null;
813
- status: "paid" | "failed" | "expired" | "cancelled" | "pending" | "authorized" | "requires_redirect" | "processing";
814
- currency: string;
815
- notes: string | null;
816
- createdAt: string;
817
- updatedAt: string;
812
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
818
813
  idempotencyKey: string | null;
819
- targetType: "invoice" | "booking" | "other" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
814
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
820
815
  targetId: string | null;
821
- invoiceId: string | null;
822
- amountCents: number;
823
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
816
+ createdAt: string;
817
+ expiresAt: string | null;
824
818
  provider: string | null;
819
+ notes: string | null;
825
820
  metadata: {
826
821
  [x: string]: import("hono/utils/types").JSONValue;
827
822
  } | null;
823
+ updatedAt: string;
824
+ bookingId: string | null;
825
+ currency: string;
826
+ invoiceId: string | null;
827
+ amountCents: number;
828
+ bookingPaymentScheduleId: string | null;
829
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
828
830
  paymentInstrumentId: string | null;
829
831
  orderId: string | null;
830
832
  bookingGuaranteeId: string | null;
831
- expiresAt: string | null;
832
833
  paymentAuthorizationId: string | null;
833
834
  paymentCaptureId: string | null;
834
- bookingPaymentScheduleId: string | null;
835
835
  paymentId: string | null;
836
836
  providerSessionId: string | null;
837
837
  providerPaymentId: string | null;
@@ -946,19 +946,25 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
946
946
  willCreateDefaultPaymentPlan: boolean;
947
947
  selectedSchedule: {
948
948
  id: string;
949
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
950
+ createdAt: string;
951
+ notes: string | null;
952
+ updatedAt: string;
949
953
  bookingId: string;
950
- status: "paid" | "expired" | "cancelled" | "pending" | "due" | "waived";
951
954
  currency: string;
952
955
  dueDate: string;
953
- notes: string | null;
954
- createdAt: string;
955
- updatedAt: string;
956
- amountCents: number;
957
956
  bookingItemId: string | null;
958
957
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
958
+ amountCents: number;
959
959
  } | null;
960
960
  selectedInvoice: {
961
961
  id: string;
962
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
963
+ organizationId: string | null;
964
+ createdAt: string;
965
+ personId: string | null;
966
+ notes: string | null;
967
+ updatedAt: string;
962
968
  invoiceNumber: string;
963
969
  invoiceType: "invoice" | "proforma" | "credit_note";
964
970
  convertedFromInvoiceId: string | null;
@@ -968,9 +974,6 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
968
974
  taxRegimeId: string | null;
969
975
  language: string | null;
970
976
  bookingId: string;
971
- personId: string | null;
972
- organizationId: string | null;
973
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
974
977
  currency: string;
975
978
  baseCurrency: string | null;
976
979
  fxRateSetId: string | null;
@@ -988,11 +991,8 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
988
991
  commissionAmountCents: number | null;
989
992
  issueDate: string;
990
993
  dueDate: string;
991
- notes: string | null;
992
994
  voidedAt: string | null;
993
995
  voidReason: string | null;
994
- createdAt: string;
995
- updatedAt: string;
996
996
  } | null;
997
997
  amountCents: number;
998
998
  currency: string;
@@ -1000,6 +1000,12 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
1000
1000
  };
1001
1001
  invoice: {
1002
1002
  id: string;
1003
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
1004
+ organizationId: string | null;
1005
+ createdAt: string;
1006
+ personId: string | null;
1007
+ notes: string | null;
1008
+ updatedAt: string;
1003
1009
  invoiceNumber: string;
1004
1010
  invoiceType: "invoice" | "proforma" | "credit_note";
1005
1011
  convertedFromInvoiceId: string | null;
@@ -1009,9 +1015,6 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
1009
1015
  taxRegimeId: string | null;
1010
1016
  language: string | null;
1011
1017
  bookingId: string;
1012
- personId: string | null;
1013
- organizationId: string | null;
1014
- status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
1015
1018
  currency: string;
1016
1019
  baseCurrency: string | null;
1017
1020
  fxRateSetId: string | null;
@@ -1029,37 +1032,34 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
1029
1032
  commissionAmountCents: number | null;
1030
1033
  issueDate: string;
1031
1034
  dueDate: string;
1032
- notes: string | null;
1033
1035
  voidedAt: string | null;
1034
1036
  voidReason: string | null;
1035
- createdAt: string;
1036
- updatedAt: string;
1037
1037
  } | null;
1038
1038
  paymentSession: {
1039
1039
  id: string;
1040
- bookingId: string | null;
1041
- status: "paid" | "failed" | "expired" | "cancelled" | "pending" | "authorized" | "requires_redirect" | "processing";
1042
- currency: string;
1043
- notes: string | null;
1044
- createdAt: string;
1045
- updatedAt: string;
1040
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1046
1041
  idempotencyKey: string | null;
1047
- targetType: "invoice" | "booking" | "other" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1042
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1048
1043
  targetId: string | null;
1049
- invoiceId: string | null;
1050
- amountCents: number;
1051
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1044
+ createdAt: string;
1045
+ expiresAt: string | null;
1052
1046
  provider: string | null;
1047
+ notes: string | null;
1053
1048
  metadata: {
1054
1049
  [x: string]: import("hono/utils/types").JSONValue;
1055
1050
  } | null;
1051
+ updatedAt: string;
1052
+ bookingId: string | null;
1053
+ currency: string;
1054
+ invoiceId: string | null;
1055
+ amountCents: number;
1056
+ bookingPaymentScheduleId: string | null;
1057
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1056
1058
  paymentInstrumentId: string | null;
1057
1059
  orderId: string | null;
1058
1060
  bookingGuaranteeId: string | null;
1059
- expiresAt: string | null;
1060
1061
  paymentAuthorizationId: string | null;
1061
1062
  paymentCaptureId: string | null;
1062
- bookingPaymentScheduleId: string | null;
1063
1063
  paymentId: string | null;
1064
1064
  providerSessionId: string | null;
1065
1065
  providerPaymentId: string | null;