@voyant-travel/finance 0.136.2 → 0.137.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/checkout-routes.d.ts +66 -66
  2. package/dist/checkout-service-plan.d.ts +2 -2
  3. package/dist/checkout-validation.d.ts +49 -49
  4. package/dist/checkout-validation.d.ts.map +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +4 -4
  7. package/dist/invoice-fx.d.ts.map +1 -1
  8. package/dist/invoice-fx.js +0 -1
  9. package/dist/payment-schedule/routes.d.ts +74 -3
  10. package/dist/payment-schedule/routes.d.ts.map +1 -1
  11. package/dist/payment-schedule/routes.js +79 -19
  12. package/dist/routes-action-ledger.d.ts +36 -21
  13. package/dist/routes-action-ledger.d.ts.map +1 -1
  14. package/dist/routes-action-ledger.js +131 -6
  15. package/dist/routes-booking-billing.d.ts +1306 -343
  16. package/dist/routes-booking-billing.d.ts.map +1 -1
  17. package/dist/routes-booking-billing.js +659 -91
  18. package/dist/routes-booking-create.d.ts.map +1 -1
  19. package/dist/routes-booking-create.js +145 -12
  20. package/dist/routes-booking-reads.d.ts +32 -15
  21. package/dist/routes-booking-reads.d.ts.map +1 -1
  22. package/dist/routes-booking-reads.js +42 -15
  23. package/dist/routes-documents.d.ts +92 -47
  24. package/dist/routes-documents.d.ts.map +1 -1
  25. package/dist/routes-documents.js +131 -10
  26. package/dist/routes-invoice-core.d.ts +993 -332
  27. package/dist/routes-invoice-core.d.ts.map +1 -1
  28. package/dist/routes-invoice-core.js +470 -123
  29. package/dist/routes-invoice-documents.d.ts +354 -164
  30. package/dist/routes-invoice-documents.d.ts.map +1 -1
  31. package/dist/routes-invoice-documents.js +299 -66
  32. package/dist/routes-invoice-issue.d.ts +17 -255
  33. package/dist/routes-invoice-issue.d.ts.map +1 -1
  34. package/dist/routes-invoice-issue.js +137 -44
  35. package/dist/routes-invoice-schemas.d.ts +389 -0
  36. package/dist/routes-invoice-schemas.d.ts.map +1 -0
  37. package/dist/routes-invoice-schemas.js +277 -0
  38. package/dist/routes-payment-processing.d.ts +1630 -531
  39. package/dist/routes-payment-processing.d.ts.map +1 -1
  40. package/dist/routes-payment-processing.js +649 -147
  41. package/dist/routes-payment-schemas.d.ts +265 -0
  42. package/dist/routes-payment-schemas.d.ts.map +1 -0
  43. package/dist/routes-payment-schemas.js +224 -0
  44. package/dist/routes-payments.d.ts +312 -108
  45. package/dist/routes-payments.d.ts.map +1 -1
  46. package/dist/routes-payments.js +187 -63
  47. package/dist/routes-public.d.ts +2076 -1229
  48. package/dist/routes-public.d.ts.map +1 -1
  49. package/dist/routes-public.js +336 -51
  50. package/dist/routes-reference-data.d.ts +838 -303
  51. package/dist/routes-reference-data.d.ts.map +1 -1
  52. package/dist/routes-reference-data.js +787 -170
  53. package/dist/routes-reports.d.ts +306 -151
  54. package/dist/routes-reports.d.ts.map +1 -1
  55. package/dist/routes-reports.js +438 -79
  56. package/dist/routes-runtime.d.ts +1 -1
  57. package/dist/routes-settlement.d.ts +15 -16
  58. package/dist/routes-settlement.d.ts.map +1 -1
  59. package/dist/routes-settlement.js +30 -7
  60. package/dist/routes-supplier-invoices.d.ts +910 -367
  61. package/dist/routes-supplier-invoices.d.ts.map +1 -1
  62. package/dist/routes-supplier-invoices.js +533 -50
  63. package/dist/routes-vouchers.d.ts +212 -39
  64. package/dist/routes-vouchers.d.ts.map +1 -1
  65. package/dist/routes-vouchers.js +146 -24
  66. package/dist/routes.d.ts +5757 -2231
  67. package/dist/routes.d.ts.map +1 -1
  68. package/dist/routes.js +2 -2
  69. package/dist/schema/booking-billing.d.ts +5 -5
  70. package/dist/schema/invoice-documents.d.ts +2 -2
  71. package/dist/schema/payment-processing.d.ts +2 -2
  72. package/dist/schema/payment-sessions.d.ts +1 -1
  73. package/dist/schema/receivables.d.ts +1 -1
  74. package/dist/schema/supplier-invoices.d.ts +2 -2
  75. package/dist/schema/vouchers.d.ts +1 -1
  76. package/dist/service-accountant-shares.d.ts +4 -4
  77. package/dist/service-booking-billing.d.ts +51 -51
  78. package/dist/service-booking-create.d.ts +42 -42
  79. package/dist/service-booking-guarantees.d.ts +13 -13
  80. package/dist/service-booking-item-billing.d.ts +16 -16
  81. package/dist/service-booking-payment-schedules.d.ts +22 -22
  82. package/dist/service-bookings-dual-create.d.ts +66 -66
  83. package/dist/service-invoice-artifacts.d.ts +18 -18
  84. package/dist/service-invoice-core.d.ts +3 -3
  85. package/dist/service-invoice-credit-notes.d.ts +2 -2
  86. package/dist/service-invoice-from-booking.d.ts +3 -3
  87. package/dist/service-invoice-line-items.d.ts +2 -2
  88. package/dist/service-invoice-numbering.d.ts +5 -5
  89. package/dist/service-invoice-payments.d.ts +7 -7
  90. package/dist/service-invoices.d.ts +17 -17
  91. package/dist/service-issue.d.ts +6 -6
  92. package/dist/service-payment-authorizations.d.ts +11 -11
  93. package/dist/service-payment-instruments.d.ts +3 -3
  94. package/dist/service-payment-processing.d.ts +28 -28
  95. package/dist/service-payment-session-completion.d.ts +1 -1
  96. package/dist/service-payment-sessions.d.ts +13 -13
  97. package/dist/service-public.d.ts +6 -6
  98. package/dist/service-reference-data.d.ts +10 -10
  99. package/dist/service-rendition-wait.d.ts +2 -2
  100. package/dist/service-reports.d.ts +2 -2
  101. package/dist/service-shared.d.ts +1 -1
  102. package/dist/service-supplier-invoices.d.ts +8 -8
  103. package/dist/service-supplier-payments.d.ts +4 -4
  104. package/dist/service-vouchers.d.ts +7 -7
  105. package/dist/service.d.ts +144 -144
  106. package/package.json +8 -7
@@ -66,9 +66,9 @@ 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;
69
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
71
70
  notes: string | null;
71
+ createdAt: string;
72
72
  updatedAt: string;
73
73
  bookingId: string;
74
74
  currency: string;
@@ -79,11 +79,11 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
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
82
  personId: string | null;
83
+ organizationId: string | null;
84
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
86
85
  notes: string | null;
86
+ createdAt: string;
87
87
  updatedAt: string;
88
88
  invoiceNumber: string;
89
89
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -164,9 +164,9 @@ 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;
167
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
169
168
  notes: string | null;
169
+ createdAt: string;
170
170
  updatedAt: string;
171
171
  bookingId: string;
172
172
  currency: string;
@@ -177,11 +177,11 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
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
180
  personId: string | null;
181
+ organizationId: string | null;
182
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
184
183
  notes: string | null;
184
+ createdAt: string;
185
185
  updatedAt: string;
186
186
  invoiceNumber: string;
187
187
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -218,11 +218,11 @@ 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
221
  personId: string | null;
222
+ organizationId: string | null;
223
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
225
224
  notes: string | null;
225
+ createdAt: string;
226
226
  updatedAt: string;
227
227
  invoiceNumber: string;
228
228
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -255,17 +255,13 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
255
255
  } | null;
256
256
  paymentSession: {
257
257
  id: string;
258
- status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
259
- idempotencyKey: string | null;
260
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
261
- targetId: string | null;
262
- createdAt: string;
263
- expiresAt: string | null;
258
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
264
259
  provider: string | null;
265
260
  notes: string | null;
266
261
  metadata: {
267
262
  [x: string]: import("hono/utils/types").JSONValue;
268
263
  } | null;
264
+ createdAt: string;
269
265
  updatedAt: string;
270
266
  bookingId: string | null;
271
267
  currency: string;
@@ -276,12 +272,16 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
276
272
  paymentInstrumentId: string | null;
277
273
  orderId: string | null;
278
274
  bookingGuaranteeId: string | null;
275
+ expiresAt: string | null;
279
276
  paymentAuthorizationId: string | null;
280
277
  paymentCaptureId: string | null;
278
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
279
+ targetId: string | null;
281
280
  paymentId: string | null;
282
281
  providerSessionId: string | null;
283
282
  providerPaymentId: string | null;
284
283
  externalReference: string | null;
284
+ idempotencyKey: string | null;
285
285
  clientReference: string | null;
286
286
  payerPersonId: string | null;
287
287
  payerOrganizationId: string | null;
@@ -392,9 +392,9 @@ 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;
395
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
397
396
  notes: string | null;
397
+ createdAt: string;
398
398
  updatedAt: string;
399
399
  bookingId: string;
400
400
  currency: string;
@@ -405,11 +405,11 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
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
408
  personId: string | null;
409
+ organizationId: string | null;
410
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
412
411
  notes: string | null;
412
+ createdAt: string;
413
413
  updatedAt: string;
414
414
  invoiceNumber: string;
415
415
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -446,11 +446,11 @@ 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
449
  personId: string | null;
450
+ organizationId: string | null;
451
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
453
452
  notes: string | null;
453
+ createdAt: string;
454
454
  updatedAt: string;
455
455
  invoiceNumber: string;
456
456
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -483,17 +483,13 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
483
483
  } | null;
484
484
  paymentSession: {
485
485
  id: string;
486
- status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
487
- idempotencyKey: string | null;
488
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
489
- targetId: string | null;
490
- createdAt: string;
491
- expiresAt: string | null;
486
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
492
487
  provider: string | null;
493
488
  notes: string | null;
494
489
  metadata: {
495
490
  [x: string]: import("hono/utils/types").JSONValue;
496
491
  } | null;
492
+ createdAt: string;
497
493
  updatedAt: string;
498
494
  bookingId: string | null;
499
495
  currency: string;
@@ -504,12 +500,16 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
504
500
  paymentInstrumentId: string | null;
505
501
  orderId: string | null;
506
502
  bookingGuaranteeId: string | null;
503
+ expiresAt: string | null;
507
504
  paymentAuthorizationId: string | null;
508
505
  paymentCaptureId: string | null;
506
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
507
+ targetId: string | null;
509
508
  paymentId: string | null;
510
509
  providerSessionId: string | null;
511
510
  providerPaymentId: string | null;
512
511
  externalReference: string | null;
512
+ idempotencyKey: string | null;
513
513
  clientReference: string | null;
514
514
  payerPersonId: string | null;
515
515
  payerOrganizationId: string | null;
@@ -620,9 +620,9 @@ 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;
623
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
625
624
  notes: string | null;
625
+ createdAt: string;
626
626
  updatedAt: string;
627
627
  bookingId: string;
628
628
  currency: string;
@@ -633,11 +633,11 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
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
636
  personId: string | null;
637
+ organizationId: string | null;
638
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
640
639
  notes: string | null;
640
+ createdAt: string;
641
641
  updatedAt: string;
642
642
  invoiceNumber: string;
643
643
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -718,9 +718,9 @@ 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;
721
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
723
722
  notes: string | null;
723
+ createdAt: string;
724
724
  updatedAt: string;
725
725
  bookingId: string;
726
726
  currency: string;
@@ -731,11 +731,11 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
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
734
  personId: string | null;
735
+ organizationId: string | null;
736
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
738
737
  notes: string | null;
738
+ createdAt: string;
739
739
  updatedAt: string;
740
740
  invoiceNumber: string;
741
741
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -772,11 +772,11 @@ 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
775
  personId: string | null;
776
+ organizationId: string | null;
777
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
779
778
  notes: string | null;
779
+ createdAt: string;
780
780
  updatedAt: string;
781
781
  invoiceNumber: string;
782
782
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -809,17 +809,13 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
809
809
  } | null;
810
810
  paymentSession: {
811
811
  id: string;
812
- status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
813
- idempotencyKey: string | null;
814
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
815
- targetId: string | null;
816
- createdAt: string;
817
- expiresAt: string | null;
812
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
818
813
  provider: string | null;
819
814
  notes: string | null;
820
815
  metadata: {
821
816
  [x: string]: import("hono/utils/types").JSONValue;
822
817
  } | null;
818
+ createdAt: string;
823
819
  updatedAt: string;
824
820
  bookingId: string | null;
825
821
  currency: string;
@@ -830,12 +826,16 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
830
826
  paymentInstrumentId: string | null;
831
827
  orderId: string | null;
832
828
  bookingGuaranteeId: string | null;
829
+ expiresAt: string | null;
833
830
  paymentAuthorizationId: string | null;
834
831
  paymentCaptureId: string | null;
832
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
833
+ targetId: string | null;
835
834
  paymentId: string | null;
836
835
  providerSessionId: string | null;
837
836
  providerPaymentId: string | null;
838
837
  externalReference: string | null;
838
+ idempotencyKey: string | null;
839
839
  clientReference: string | null;
840
840
  payerPersonId: string | null;
841
841
  payerOrganizationId: string | null;
@@ -946,9 +946,9 @@ 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;
949
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
951
950
  notes: string | null;
951
+ createdAt: string;
952
952
  updatedAt: string;
953
953
  bookingId: string;
954
954
  currency: string;
@@ -959,11 +959,11 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
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
962
  personId: string | null;
963
+ organizationId: string | null;
964
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
966
965
  notes: string | null;
966
+ createdAt: string;
967
967
  updatedAt: string;
968
968
  invoiceNumber: string;
969
969
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -1000,11 +1000,11 @@ 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
1003
  personId: string | null;
1004
+ organizationId: string | null;
1005
+ status: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
1007
1006
  notes: string | null;
1007
+ createdAt: string;
1008
1008
  updatedAt: string;
1009
1009
  invoiceNumber: string;
1010
1010
  invoiceType: "invoice" | "proforma" | "credit_note";
@@ -1037,17 +1037,13 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
1037
1037
  } | null;
1038
1038
  paymentSession: {
1039
1039
  id: string;
1040
- status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1041
- idempotencyKey: string | null;
1042
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1043
- targetId: string | null;
1044
- createdAt: string;
1045
- expiresAt: string | null;
1040
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
1046
1041
  provider: string | null;
1047
1042
  notes: string | null;
1048
1043
  metadata: {
1049
1044
  [x: string]: import("hono/utils/types").JSONValue;
1050
1045
  } | null;
1046
+ createdAt: string;
1051
1047
  updatedAt: string;
1052
1048
  bookingId: string | null;
1053
1049
  currency: string;
@@ -1058,12 +1054,16 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
1058
1054
  paymentInstrumentId: string | null;
1059
1055
  orderId: string | null;
1060
1056
  bookingGuaranteeId: string | null;
1057
+ expiresAt: string | null;
1061
1058
  paymentAuthorizationId: string | null;
1062
1059
  paymentCaptureId: string | null;
1060
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1061
+ targetId: string | null;
1063
1062
  paymentId: string | null;
1064
1063
  providerSessionId: string | null;
1065
1064
  providerPaymentId: string | null;
1066
1065
  externalReference: string | null;
1066
+ idempotencyKey: string | null;
1067
1067
  clientReference: string | null;
1068
1068
  payerPersonId: string | null;
1069
1069
  payerOrganizationId: string | null;
@@ -111,7 +111,7 @@ export interface CheckoutRuntimeOptions {
111
111
  export declare const OUTSTANDING_SCHEDULE_STATUSES: Array<(typeof bookingPaymentSchedules.$inferSelect)["status"]>;
112
112
  export declare const OUTSTANDING_INVOICE_STATUSES: Array<(typeof invoices.$inferSelect)["status"]>;
113
113
  export declare function defaultPaymentPlan(options: CheckoutPolicyOptions): {
114
- readonly depositMode: "none" | "percentage" | "fixed_amount";
114
+ readonly depositMode: "percentage" | "none" | "fixed_amount";
115
115
  readonly depositValue: number;
116
116
  readonly balanceDueDaysBeforeStart: number;
117
117
  readonly clearExistingPending: boolean;
@@ -124,7 +124,7 @@ export declare function resolveDocumentType(method: "card" | "bank_transfer", ta
124
124
  export declare function fallbackInvoiceNumber(bookingNumber: string, documentType: "proforma" | "invoice", amountCents: number): string;
125
125
  export declare function lineDescription(booking: typeof bookings.$inferSelect, schedule: typeof bookingPaymentSchedules.$inferSelect | null, stage: "initial" | "reminder" | "manual"): string;
126
126
  export declare function normalizeExactAmountCents(amountCents: number | undefined): number | null;
127
- export declare function resolveCheckoutIntent(input: Pick<BootstrapCheckoutCollectionInput, "intent" | "stage" | "amountCents"> | Pick<InitiateCheckoutCollectionInput, "stage" | "amountCents">): "custom" | "deposit" | "balance";
127
+ export declare function resolveCheckoutIntent(input: Pick<BootstrapCheckoutCollectionInput, "intent" | "stage" | "amountCents"> | Pick<InitiateCheckoutCollectionInput, "stage" | "amountCents">): "deposit" | "balance" | "custom";
128
128
  export declare function resolveCheckoutSubject(input: BootstrapCheckoutCollectionInput): {
129
129
  bookingId: string;
130
130
  sessionId: string;