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