@voyant-travel/finance 0.167.0 → 0.168.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/README.md +23 -9
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/booking-lifecycle.d.ts.map +1 -0
- package/dist/booking-schedule/subscriber-runtime.d.ts.map +1 -0
- package/dist/booking-tax.d.ts +31 -19
- package/dist/booking-tax.d.ts.map +1 -0
- package/dist/booking-tax.js +48 -15
- package/dist/card-payment.d.ts.map +1 -0
- package/dist/checkout-routes.d.ts +294 -294
- package/dist/checkout-routes.d.ts.map +1 -0
- package/dist/checkout-service-plan.d.ts +2 -2
- package/dist/checkout-service-plan.d.ts.map +1 -0
- package/dist/checkout-service.d.ts.map +1 -0
- package/dist/checkout-validation.d.ts.map +1 -0
- package/dist/document-download.d.ts.map +1 -0
- package/dist/fx-money.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -3
- package/dist/invoice-fx.d.ts.map +1 -0
- package/dist/invoice-number-errors.d.ts.map +1 -0
- package/dist/linkables.d.ts.map +1 -0
- package/dist/markets-ref.d.ts.map +1 -0
- package/dist/mcp-runtime.d.ts.map +1 -0
- package/dist/order-payment-sessions.d.ts.map +1 -0
- package/dist/payment-adapter-events.d.ts +3 -3
- package/dist/payment-link.d.ts.map +1 -0
- package/dist/payment-policy-cascade.d.ts.map +1 -0
- package/dist/payment-policy.d.ts.map +1 -0
- package/dist/payment-schedule/routes.d.ts +2 -2
- package/dist/payment-schedule/routes.d.ts.map +1 -0
- package/dist/route-runtime.d.ts.map +1 -0
- package/dist/routes-action-ledger.d.ts +25 -25
- package/dist/routes-action-ledger.d.ts.map +1 -0
- package/dist/routes-booking-billing.d.ts +95 -95
- package/dist/routes-booking-billing.d.ts.map +1 -0
- package/dist/routes-booking-create.d.ts.map +1 -0
- package/dist/routes-booking-reads.d.ts +13 -13
- package/dist/routes-booking-reads.d.ts.map +1 -0
- package/dist/routes-documents.d.ts +11 -11
- package/dist/routes-documents.d.ts.map +1 -0
- package/dist/routes-invoice-core.d.ts +87 -87
- package/dist/routes-invoice-core.d.ts.map +1 -0
- package/dist/routes-invoice-documents.d.ts +16 -16
- package/dist/routes-invoice-documents.d.ts.map +1 -0
- package/dist/routes-invoice-issue.d.ts.map +1 -0
- package/dist/routes-invoice-schemas.d.ts +20 -20
- package/dist/routes-invoice-schemas.d.ts.map +1 -0
- package/dist/routes-payment-processing.d.ts +152 -152
- package/dist/routes-payment-processing.d.ts.map +1 -0
- package/dist/routes-payment-schemas.d.ts +17 -17
- package/dist/routes-payment-schemas.d.ts.map +1 -0
- package/dist/routes-payments.d.ts +64 -64
- package/dist/routes-payments.d.ts.map +1 -0
- package/dist/routes-public-accountant.d.ts +19 -19
- package/dist/routes-public.d.ts +102 -102
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-reference-data.d.ts +33 -33
- package/dist/routes-reference-data.d.ts.map +1 -0
- package/dist/routes-reports.d.ts +11 -11
- package/dist/routes-reports.d.ts.map +1 -0
- package/dist/routes-runtime.d.ts +1 -1
- package/dist/routes-runtime.d.ts.map +1 -0
- package/dist/routes-settlement.d.ts +12 -12
- package/dist/routes-settlement.d.ts.map +1 -0
- package/dist/routes-shared.d.ts.map +1 -0
- package/dist/routes-supplier-invoices.d.ts +75 -75
- package/dist/routes-supplier-invoices.d.ts.map +1 -0
- package/dist/routes-travel-credits.d.ts +4 -4
- package/dist/routes-vouchers.d.ts +401 -0
- package/dist/routes-vouchers.d.ts.map +1 -0
- package/dist/routes-vouchers.js +176 -0
- package/dist/routes.d.ts +477 -477
- package/dist/routes.d.ts.map +1 -0
- package/dist/runtime-contributor.d.ts.map +1 -0
- package/dist/runtime-port.d.ts +20 -24
- package/dist/runtime-port.d.ts.map +1 -0
- package/dist/runtime-port.js +10 -11
- package/dist/runtime.d.ts.map +1 -0
- package/dist/schema/booking-billing.d.ts +5 -5
- package/dist/schema/booking-billing.d.ts.map +1 -0
- package/dist/schema/enums.d.ts.map +1 -0
- package/dist/schema/invoice-documents.d.ts +1 -1
- package/dist/schema/invoice-documents.d.ts.map +1 -0
- package/dist/schema/payment-instruments.d.ts +1 -1
- package/dist/schema/payment-instruments.d.ts.map +1 -0
- package/dist/schema/payment-processing.d.ts +3 -3
- package/dist/schema/payment-processing.d.ts.map +1 -0
- package/dist/schema/payment-sessions.d.ts +3 -3
- package/dist/schema/payment-sessions.d.ts.map +1 -0
- package/dist/schema/receivables.d.ts +3 -3
- package/dist/schema/receivables.d.ts.map +1 -0
- package/dist/schema/relations.d.ts.map +1 -0
- package/dist/schema/supplier-invoices.d.ts +5 -5
- package/dist/schema/supplier-invoices.d.ts.map +1 -0
- package/dist/schema/tax.d.ts +1 -1
- package/dist/schema/tax.d.ts.map +1 -0
- package/dist/schema/vouchers.d.ts +444 -0
- package/dist/schema/vouchers.d.ts.map +1 -0
- package/dist/schema/vouchers.js +64 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/service-accountant-shares.d.ts.map +1 -0
- package/dist/service-action-ledger-accounting.d.ts.map +1 -0
- package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
- package/dist/service-action-ledger-bookings.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-invoices.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
- package/dist/service-action-ledger.d.ts.map +1 -0
- package/dist/service-aggregates.d.ts.map +1 -0
- package/dist/service-booking-billing.d.ts +111 -111
- package/dist/service-booking-billing.d.ts.map +1 -0
- package/dist/service-booking-create.d.ts +11 -11
- package/dist/service-booking-create.d.ts.map +1 -0
- package/dist/service-booking-guarantees.d.ts +34 -34
- package/dist/service-booking-guarantees.d.ts.map +1 -0
- package/dist/service-booking-item-billing.d.ts +21 -21
- package/dist/service-booking-item-billing.d.ts.map +1 -0
- package/dist/service-booking-payment-schedules.d.ts +56 -56
- package/dist/service-booking-payment-schedules.d.ts.map +1 -0
- package/dist/service-bookings-dual-create.d.ts +22 -22
- package/dist/service-bookings-dual-create.d.ts.map +1 -0
- package/dist/service-boundary-sql.d.ts.map +1 -0
- package/dist/service-cost-categories.d.ts.map +1 -0
- package/dist/service-documents.d.ts.map +1 -0
- package/dist/service-invoice-artifacts.d.ts +24 -24
- package/dist/service-invoice-artifacts.d.ts.map +1 -0
- package/dist/service-invoice-core.d.ts +28 -28
- package/dist/service-invoice-core.d.ts.map +1 -0
- package/dist/service-invoice-credit-notes.d.ts +10 -10
- package/dist/service-invoice-credit-notes.d.ts.map +1 -0
- package/dist/service-invoice-from-booking.d.ts +19 -19
- package/dist/service-invoice-from-booking.d.ts.map +1 -0
- package/dist/service-invoice-line-items.d.ts +10 -10
- package/dist/service-invoice-line-items.d.ts.map +1 -0
- package/dist/service-invoice-numbering.d.ts +28 -28
- package/dist/service-invoice-numbering.d.ts.map +1 -0
- package/dist/service-invoice-payments.d.ts +20 -20
- package/dist/service-invoice-payments.d.ts.map +1 -0
- package/dist/service-invoices.d.ts +87 -87
- package/dist/service-invoices.d.ts.map +1 -0
- package/dist/service-issue.d.ts +38 -38
- package/dist/service-issue.d.ts.map +1 -0
- package/dist/service-payment-authorizations.d.ts +26 -26
- package/dist/service-payment-authorizations.d.ts.map +1 -0
- package/dist/service-payment-instruments.d.ts +10 -10
- package/dist/service-payment-instruments.d.ts.map +1 -0
- package/dist/service-payment-processing.d.ts +77 -77
- package/dist/service-payment-processing.d.ts.map +1 -0
- package/dist/service-payment-session-completion.d.ts +3 -3
- package/dist/service-payment-session-completion.d.ts.map +1 -0
- package/dist/service-payment-sessions.d.ts +38 -38
- package/dist/service-payment-sessions.d.ts.map +1 -0
- package/dist/service-profitability.d.ts.map +1 -0
- package/dist/service-public.d.ts +16 -16
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-reference-data.d.ts +23 -23
- package/dist/service-reference-data.d.ts.map +1 -0
- package/dist/service-rendition-wait.d.ts +1 -1
- package/dist/service-rendition-wait.d.ts.map +1 -0
- package/dist/service-reports.d.ts.map +1 -0
- package/dist/service-settlement.d.ts.map +1 -0
- package/dist/service-shared.d.ts +4 -4
- package/dist/service-shared.d.ts.map +1 -0
- package/dist/service-supplier-invoices.d.ts +20 -20
- package/dist/service-supplier-invoices.d.ts.map +1 -0
- package/dist/service-supplier-payments.d.ts +16 -16
- package/dist/service-supplier-payments.d.ts.map +1 -0
- package/dist/service-travel-credits.d.ts +10 -10
- package/dist/service-vouchers-migration.d.ts +51 -0
- package/dist/service-vouchers-migration.d.ts.map +1 -0
- package/dist/service-vouchers-migration.js +154 -0
- package/dist/service-vouchers.d.ts +157 -0
- package/dist/service-vouchers.d.ts.map +1 -0
- package/dist/service-vouchers.js +191 -0
- package/dist/service.d.ts +376 -376
- package/dist/service.d.ts.map +1 -0
- package/dist/stale-booking-holds-runtime.d.ts.map +1 -0
- package/dist/tools.d.ts +21 -21
- package/dist/tools.d.ts.map +1 -0
- package/dist/validation-billing.d.ts.map +1 -0
- package/dist/validation-payments.d.ts.map +1 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-shared.d.ts.map +1 -0
- package/dist/validation-vouchers.d.ts +2 -0
- package/dist/validation-vouchers.d.ts.map +1 -0
- package/dist/validation-vouchers.js +1 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/voyant.d.ts +2 -1
- package/dist/voyant.d.ts.map +1 -0
- package/dist/voyant.js +43 -7
- package/openapi/admin/booking-tax-preview.json +33 -0
- package/openapi/admin/{booking-tax.json → booking-tax-settings.json} +7 -32
- package/package.json +205 -170
- package/LICENSE +0 -201
|
@@ -67,53 +67,53 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
67
67
|
willCreateDefaultPaymentPlan: boolean;
|
|
68
68
|
selectedSchedule: {
|
|
69
69
|
id: string;
|
|
70
|
-
|
|
70
|
+
currency: string;
|
|
71
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
72
|
+
amountCents: number;
|
|
71
73
|
notes: string | null;
|
|
72
|
-
createdAt: string;
|
|
73
|
-
updatedAt: string;
|
|
74
74
|
bookingId: string;
|
|
75
|
-
currency: string;
|
|
76
|
-
dueDate: string;
|
|
77
75
|
bookingItemId: string | null;
|
|
78
76
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
79
|
-
|
|
77
|
+
dueDate: string;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
} | null;
|
|
81
81
|
selectedInvoice: {
|
|
82
82
|
id: string;
|
|
83
|
+
currency: string;
|
|
84
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
85
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
86
|
+
notes: string | null;
|
|
87
|
+
bookingId: string;
|
|
83
88
|
personId: string | null;
|
|
84
89
|
organizationId: string | null;
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
voidedAt: string | null;
|
|
91
|
+
dueDate: string;
|
|
87
92
|
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
|
-
invoiceNumber: string;
|
|
90
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
91
|
-
convertedFromInvoiceId: string | null;
|
|
92
|
-
seriesId: string | null;
|
|
93
|
-
sequence: number | null;
|
|
94
|
-
templateId: string | null;
|
|
95
|
-
taxRegimeId: string | null;
|
|
96
|
-
language: string | null;
|
|
97
|
-
bookingId: string;
|
|
98
|
-
currency: string;
|
|
99
93
|
baseCurrency: string | null;
|
|
100
94
|
fxRateSetId: string | null;
|
|
95
|
+
invoiceNumber: string;
|
|
96
|
+
totalCents: number;
|
|
97
|
+
paidCents: number;
|
|
98
|
+
balanceDueCents: number;
|
|
99
|
+
issueDate: string;
|
|
101
100
|
subtotalCents: number;
|
|
102
101
|
baseSubtotalCents: number | null;
|
|
103
102
|
taxCents: number;
|
|
104
103
|
baseTaxCents: number | null;
|
|
105
|
-
totalCents: number;
|
|
106
104
|
baseTotalCents: number | null;
|
|
107
|
-
paidCents: number;
|
|
108
105
|
basePaidCents: number | null;
|
|
109
|
-
balanceDueCents: number;
|
|
110
106
|
baseBalanceDueCents: number | null;
|
|
111
107
|
commissionPercent: number | null;
|
|
112
108
|
commissionAmountCents: number | null;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
seriesId: string | null;
|
|
110
|
+
convertedFromInvoiceId: string | null;
|
|
111
|
+
language: string | null;
|
|
112
|
+
templateId: string | null;
|
|
113
|
+
taxRegimeId: string | null;
|
|
114
|
+
sequence: number | null;
|
|
116
115
|
voidReason: string | null;
|
|
116
|
+
updatedAt: string;
|
|
117
117
|
} | null;
|
|
118
118
|
amountCents: number;
|
|
119
119
|
currency: string;
|
|
@@ -165,53 +165,53 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
165
165
|
willCreateDefaultPaymentPlan: boolean;
|
|
166
166
|
selectedSchedule: {
|
|
167
167
|
id: string;
|
|
168
|
-
|
|
168
|
+
currency: string;
|
|
169
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
170
|
+
amountCents: number;
|
|
169
171
|
notes: string | null;
|
|
170
|
-
createdAt: string;
|
|
171
|
-
updatedAt: string;
|
|
172
172
|
bookingId: string;
|
|
173
|
-
currency: string;
|
|
174
|
-
dueDate: string;
|
|
175
173
|
bookingItemId: string | null;
|
|
176
174
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
177
|
-
|
|
175
|
+
dueDate: string;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
updatedAt: string;
|
|
178
178
|
} | null;
|
|
179
179
|
selectedInvoice: {
|
|
180
180
|
id: string;
|
|
181
|
+
currency: string;
|
|
182
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
183
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
184
|
+
notes: string | null;
|
|
185
|
+
bookingId: string;
|
|
181
186
|
personId: string | null;
|
|
182
187
|
organizationId: string | null;
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
voidedAt: string | null;
|
|
189
|
+
dueDate: string;
|
|
185
190
|
createdAt: string;
|
|
186
|
-
updatedAt: string;
|
|
187
|
-
invoiceNumber: string;
|
|
188
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
189
|
-
convertedFromInvoiceId: string | null;
|
|
190
|
-
seriesId: string | null;
|
|
191
|
-
sequence: number | null;
|
|
192
|
-
templateId: string | null;
|
|
193
|
-
taxRegimeId: string | null;
|
|
194
|
-
language: string | null;
|
|
195
|
-
bookingId: string;
|
|
196
|
-
currency: string;
|
|
197
191
|
baseCurrency: string | null;
|
|
198
192
|
fxRateSetId: string | null;
|
|
193
|
+
invoiceNumber: string;
|
|
194
|
+
totalCents: number;
|
|
195
|
+
paidCents: number;
|
|
196
|
+
balanceDueCents: number;
|
|
197
|
+
issueDate: string;
|
|
199
198
|
subtotalCents: number;
|
|
200
199
|
baseSubtotalCents: number | null;
|
|
201
200
|
taxCents: number;
|
|
202
201
|
baseTaxCents: number | null;
|
|
203
|
-
totalCents: number;
|
|
204
202
|
baseTotalCents: number | null;
|
|
205
|
-
paidCents: number;
|
|
206
203
|
basePaidCents: number | null;
|
|
207
|
-
balanceDueCents: number;
|
|
208
204
|
baseBalanceDueCents: number | null;
|
|
209
205
|
commissionPercent: number | null;
|
|
210
206
|
commissionAmountCents: number | null;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
207
|
+
seriesId: string | null;
|
|
208
|
+
convertedFromInvoiceId: string | null;
|
|
209
|
+
language: string | null;
|
|
210
|
+
templateId: string | null;
|
|
211
|
+
taxRegimeId: string | null;
|
|
212
|
+
sequence: number | null;
|
|
214
213
|
voidReason: string | null;
|
|
214
|
+
updatedAt: string;
|
|
215
215
|
} | null;
|
|
216
216
|
amountCents: number;
|
|
217
217
|
currency: string;
|
|
@@ -219,71 +219,69 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
219
219
|
};
|
|
220
220
|
invoice: {
|
|
221
221
|
id: string;
|
|
222
|
+
currency: string;
|
|
223
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
224
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
225
|
+
notes: string | null;
|
|
226
|
+
bookingId: string;
|
|
222
227
|
personId: string | null;
|
|
223
228
|
organizationId: string | null;
|
|
224
|
-
|
|
225
|
-
|
|
229
|
+
voidedAt: string | null;
|
|
230
|
+
dueDate: string;
|
|
226
231
|
createdAt: string;
|
|
227
|
-
updatedAt: string;
|
|
228
|
-
invoiceNumber: string;
|
|
229
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
230
|
-
convertedFromInvoiceId: string | null;
|
|
231
|
-
seriesId: string | null;
|
|
232
|
-
sequence: number | null;
|
|
233
|
-
templateId: string | null;
|
|
234
|
-
taxRegimeId: string | null;
|
|
235
|
-
language: string | null;
|
|
236
|
-
bookingId: string;
|
|
237
|
-
currency: string;
|
|
238
232
|
baseCurrency: string | null;
|
|
239
233
|
fxRateSetId: string | null;
|
|
234
|
+
invoiceNumber: string;
|
|
235
|
+
totalCents: number;
|
|
236
|
+
paidCents: number;
|
|
237
|
+
balanceDueCents: number;
|
|
238
|
+
issueDate: string;
|
|
240
239
|
subtotalCents: number;
|
|
241
240
|
baseSubtotalCents: number | null;
|
|
242
241
|
taxCents: number;
|
|
243
242
|
baseTaxCents: number | null;
|
|
244
|
-
totalCents: number;
|
|
245
243
|
baseTotalCents: number | null;
|
|
246
|
-
paidCents: number;
|
|
247
244
|
basePaidCents: number | null;
|
|
248
|
-
balanceDueCents: number;
|
|
249
245
|
baseBalanceDueCents: number | null;
|
|
250
246
|
commissionPercent: number | null;
|
|
251
247
|
commissionAmountCents: number | null;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
248
|
+
seriesId: string | null;
|
|
249
|
+
convertedFromInvoiceId: string | null;
|
|
250
|
+
language: string | null;
|
|
251
|
+
templateId: string | null;
|
|
252
|
+
taxRegimeId: string | null;
|
|
253
|
+
sequence: number | null;
|
|
255
254
|
voidReason: string | null;
|
|
255
|
+
updatedAt: string;
|
|
256
256
|
} | null;
|
|
257
257
|
paymentSession: {
|
|
258
|
-
id: string;
|
|
259
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
260
258
|
provider: string | null;
|
|
261
|
-
|
|
259
|
+
id: string;
|
|
260
|
+
currency: string;
|
|
261
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
262
262
|
metadata: {
|
|
263
263
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
264
264
|
} | null;
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
idempotencyKey: string | null;
|
|
266
|
+
amountCents: number;
|
|
267
|
+
expiresAt: string | null;
|
|
268
|
+
notes: string | null;
|
|
267
269
|
bookingId: string | null;
|
|
268
|
-
|
|
270
|
+
paymentId: string | null;
|
|
269
271
|
invoiceId: string | null;
|
|
270
|
-
amountCents: number;
|
|
271
272
|
bookingPaymentScheduleId: string | null;
|
|
272
|
-
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
|
|
273
|
-
paymentInstrumentId: string | null;
|
|
274
|
-
orderId: string | null;
|
|
275
273
|
bookingGuaranteeId: string | null;
|
|
276
|
-
|
|
277
|
-
paymentAuthorizationId: string | null;
|
|
278
|
-
paymentCaptureId: string | null;
|
|
279
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
280
|
-
targetId: string | null;
|
|
281
|
-
paymentId: string | null;
|
|
274
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
282
275
|
providerSessionId: string | null;
|
|
283
276
|
providerPaymentId: string | null;
|
|
284
277
|
externalReference: string | null;
|
|
285
|
-
idempotencyKey: string | null;
|
|
286
278
|
clientReference: string | null;
|
|
279
|
+
orderId: string | null;
|
|
280
|
+
targetId: string | null;
|
|
281
|
+
paymentInstrumentId: string | null;
|
|
282
|
+
paymentAuthorizationId: string | null;
|
|
283
|
+
paymentCaptureId: string | null;
|
|
284
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
287
285
|
payerPersonId: string | null;
|
|
288
286
|
payerOrganizationId: string | null;
|
|
289
287
|
payerEmail: string | null;
|
|
@@ -301,6 +299,8 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
301
299
|
providerPayload: {
|
|
302
300
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
303
301
|
} | null;
|
|
302
|
+
createdAt: string;
|
|
303
|
+
updatedAt: string;
|
|
304
304
|
} | null;
|
|
305
305
|
invoiceNotification: {
|
|
306
306
|
id: string;
|
|
@@ -404,53 +404,53 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
404
404
|
willCreateDefaultPaymentPlan: boolean;
|
|
405
405
|
selectedSchedule: {
|
|
406
406
|
id: string;
|
|
407
|
-
|
|
407
|
+
currency: string;
|
|
408
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
409
|
+
amountCents: number;
|
|
408
410
|
notes: string | null;
|
|
409
|
-
createdAt: string;
|
|
410
|
-
updatedAt: string;
|
|
411
411
|
bookingId: string;
|
|
412
|
-
currency: string;
|
|
413
|
-
dueDate: string;
|
|
414
412
|
bookingItemId: string | null;
|
|
415
413
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
416
|
-
|
|
414
|
+
dueDate: string;
|
|
415
|
+
createdAt: string;
|
|
416
|
+
updatedAt: string;
|
|
417
417
|
} | null;
|
|
418
418
|
selectedInvoice: {
|
|
419
419
|
id: string;
|
|
420
|
+
currency: string;
|
|
421
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
422
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
423
|
+
notes: string | null;
|
|
424
|
+
bookingId: string;
|
|
420
425
|
personId: string | null;
|
|
421
426
|
organizationId: string | null;
|
|
422
|
-
|
|
423
|
-
|
|
427
|
+
voidedAt: string | null;
|
|
428
|
+
dueDate: string;
|
|
424
429
|
createdAt: string;
|
|
425
|
-
updatedAt: string;
|
|
426
|
-
invoiceNumber: string;
|
|
427
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
428
|
-
convertedFromInvoiceId: string | null;
|
|
429
|
-
seriesId: string | null;
|
|
430
|
-
sequence: number | null;
|
|
431
|
-
templateId: string | null;
|
|
432
|
-
taxRegimeId: string | null;
|
|
433
|
-
language: string | null;
|
|
434
|
-
bookingId: string;
|
|
435
|
-
currency: string;
|
|
436
430
|
baseCurrency: string | null;
|
|
437
431
|
fxRateSetId: string | null;
|
|
432
|
+
invoiceNumber: string;
|
|
433
|
+
totalCents: number;
|
|
434
|
+
paidCents: number;
|
|
435
|
+
balanceDueCents: number;
|
|
436
|
+
issueDate: string;
|
|
438
437
|
subtotalCents: number;
|
|
439
438
|
baseSubtotalCents: number | null;
|
|
440
439
|
taxCents: number;
|
|
441
440
|
baseTaxCents: number | null;
|
|
442
|
-
totalCents: number;
|
|
443
441
|
baseTotalCents: number | null;
|
|
444
|
-
paidCents: number;
|
|
445
442
|
basePaidCents: number | null;
|
|
446
|
-
balanceDueCents: number;
|
|
447
443
|
baseBalanceDueCents: number | null;
|
|
448
444
|
commissionPercent: number | null;
|
|
449
445
|
commissionAmountCents: number | null;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
446
|
+
seriesId: string | null;
|
|
447
|
+
convertedFromInvoiceId: string | null;
|
|
448
|
+
language: string | null;
|
|
449
|
+
templateId: string | null;
|
|
450
|
+
taxRegimeId: string | null;
|
|
451
|
+
sequence: number | null;
|
|
453
452
|
voidReason: string | null;
|
|
453
|
+
updatedAt: string;
|
|
454
454
|
} | null;
|
|
455
455
|
amountCents: number;
|
|
456
456
|
currency: string;
|
|
@@ -458,71 +458,69 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
458
458
|
};
|
|
459
459
|
invoice: {
|
|
460
460
|
id: string;
|
|
461
|
+
currency: string;
|
|
462
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
463
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
464
|
+
notes: string | null;
|
|
465
|
+
bookingId: string;
|
|
461
466
|
personId: string | null;
|
|
462
467
|
organizationId: string | null;
|
|
463
|
-
|
|
464
|
-
|
|
468
|
+
voidedAt: string | null;
|
|
469
|
+
dueDate: string;
|
|
465
470
|
createdAt: string;
|
|
466
|
-
updatedAt: string;
|
|
467
|
-
invoiceNumber: string;
|
|
468
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
469
|
-
convertedFromInvoiceId: string | null;
|
|
470
|
-
seriesId: string | null;
|
|
471
|
-
sequence: number | null;
|
|
472
|
-
templateId: string | null;
|
|
473
|
-
taxRegimeId: string | null;
|
|
474
|
-
language: string | null;
|
|
475
|
-
bookingId: string;
|
|
476
|
-
currency: string;
|
|
477
471
|
baseCurrency: string | null;
|
|
478
472
|
fxRateSetId: string | null;
|
|
473
|
+
invoiceNumber: string;
|
|
474
|
+
totalCents: number;
|
|
475
|
+
paidCents: number;
|
|
476
|
+
balanceDueCents: number;
|
|
477
|
+
issueDate: string;
|
|
479
478
|
subtotalCents: number;
|
|
480
479
|
baseSubtotalCents: number | null;
|
|
481
480
|
taxCents: number;
|
|
482
481
|
baseTaxCents: number | null;
|
|
483
|
-
totalCents: number;
|
|
484
482
|
baseTotalCents: number | null;
|
|
485
|
-
paidCents: number;
|
|
486
483
|
basePaidCents: number | null;
|
|
487
|
-
balanceDueCents: number;
|
|
488
484
|
baseBalanceDueCents: number | null;
|
|
489
485
|
commissionPercent: number | null;
|
|
490
486
|
commissionAmountCents: number | null;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
487
|
+
seriesId: string | null;
|
|
488
|
+
convertedFromInvoiceId: string | null;
|
|
489
|
+
language: string | null;
|
|
490
|
+
templateId: string | null;
|
|
491
|
+
taxRegimeId: string | null;
|
|
492
|
+
sequence: number | null;
|
|
494
493
|
voidReason: string | null;
|
|
494
|
+
updatedAt: string;
|
|
495
495
|
} | null;
|
|
496
496
|
paymentSession: {
|
|
497
|
-
id: string;
|
|
498
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
499
497
|
provider: string | null;
|
|
500
|
-
|
|
498
|
+
id: string;
|
|
499
|
+
currency: string;
|
|
500
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
501
501
|
metadata: {
|
|
502
502
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
503
503
|
} | null;
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
idempotencyKey: string | null;
|
|
505
|
+
amountCents: number;
|
|
506
|
+
expiresAt: string | null;
|
|
507
|
+
notes: string | null;
|
|
506
508
|
bookingId: string | null;
|
|
507
|
-
|
|
509
|
+
paymentId: string | null;
|
|
508
510
|
invoiceId: string | null;
|
|
509
|
-
amountCents: number;
|
|
510
511
|
bookingPaymentScheduleId: string | null;
|
|
511
|
-
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
|
|
512
|
-
paymentInstrumentId: string | null;
|
|
513
|
-
orderId: string | null;
|
|
514
512
|
bookingGuaranteeId: string | null;
|
|
515
|
-
|
|
516
|
-
paymentAuthorizationId: string | null;
|
|
517
|
-
paymentCaptureId: string | null;
|
|
518
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
519
|
-
targetId: string | null;
|
|
520
|
-
paymentId: string | null;
|
|
513
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
521
514
|
providerSessionId: string | null;
|
|
522
515
|
providerPaymentId: string | null;
|
|
523
516
|
externalReference: string | null;
|
|
524
|
-
idempotencyKey: string | null;
|
|
525
517
|
clientReference: string | null;
|
|
518
|
+
orderId: string | null;
|
|
519
|
+
targetId: string | null;
|
|
520
|
+
paymentInstrumentId: string | null;
|
|
521
|
+
paymentAuthorizationId: string | null;
|
|
522
|
+
paymentCaptureId: string | null;
|
|
523
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
526
524
|
payerPersonId: string | null;
|
|
527
525
|
payerOrganizationId: string | null;
|
|
528
526
|
payerEmail: string | null;
|
|
@@ -540,6 +538,8 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
540
538
|
providerPayload: {
|
|
541
539
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
542
540
|
} | null;
|
|
541
|
+
createdAt: string;
|
|
542
|
+
updatedAt: string;
|
|
543
543
|
} | null;
|
|
544
544
|
invoiceNotification: {
|
|
545
545
|
id: string;
|
|
@@ -639,53 +639,53 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
639
639
|
willCreateDefaultPaymentPlan: boolean;
|
|
640
640
|
selectedSchedule: {
|
|
641
641
|
id: string;
|
|
642
|
-
|
|
642
|
+
currency: string;
|
|
643
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
644
|
+
amountCents: number;
|
|
643
645
|
notes: string | null;
|
|
644
|
-
createdAt: string;
|
|
645
|
-
updatedAt: string;
|
|
646
646
|
bookingId: string;
|
|
647
|
-
currency: string;
|
|
648
|
-
dueDate: string;
|
|
649
647
|
bookingItemId: string | null;
|
|
650
648
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
651
|
-
|
|
649
|
+
dueDate: string;
|
|
650
|
+
createdAt: string;
|
|
651
|
+
updatedAt: string;
|
|
652
652
|
} | null;
|
|
653
653
|
selectedInvoice: {
|
|
654
654
|
id: string;
|
|
655
|
+
currency: string;
|
|
656
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
657
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
658
|
+
notes: string | null;
|
|
659
|
+
bookingId: string;
|
|
655
660
|
personId: string | null;
|
|
656
661
|
organizationId: string | null;
|
|
657
|
-
|
|
658
|
-
|
|
662
|
+
voidedAt: string | null;
|
|
663
|
+
dueDate: string;
|
|
659
664
|
createdAt: string;
|
|
660
|
-
updatedAt: string;
|
|
661
|
-
invoiceNumber: string;
|
|
662
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
663
|
-
convertedFromInvoiceId: string | null;
|
|
664
|
-
seriesId: string | null;
|
|
665
|
-
sequence: number | null;
|
|
666
|
-
templateId: string | null;
|
|
667
|
-
taxRegimeId: string | null;
|
|
668
|
-
language: string | null;
|
|
669
|
-
bookingId: string;
|
|
670
|
-
currency: string;
|
|
671
665
|
baseCurrency: string | null;
|
|
672
666
|
fxRateSetId: string | null;
|
|
667
|
+
invoiceNumber: string;
|
|
668
|
+
totalCents: number;
|
|
669
|
+
paidCents: number;
|
|
670
|
+
balanceDueCents: number;
|
|
671
|
+
issueDate: string;
|
|
673
672
|
subtotalCents: number;
|
|
674
673
|
baseSubtotalCents: number | null;
|
|
675
674
|
taxCents: number;
|
|
676
675
|
baseTaxCents: number | null;
|
|
677
|
-
totalCents: number;
|
|
678
676
|
baseTotalCents: number | null;
|
|
679
|
-
paidCents: number;
|
|
680
677
|
basePaidCents: number | null;
|
|
681
|
-
balanceDueCents: number;
|
|
682
678
|
baseBalanceDueCents: number | null;
|
|
683
679
|
commissionPercent: number | null;
|
|
684
680
|
commissionAmountCents: number | null;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
681
|
+
seriesId: string | null;
|
|
682
|
+
convertedFromInvoiceId: string | null;
|
|
683
|
+
language: string | null;
|
|
684
|
+
templateId: string | null;
|
|
685
|
+
taxRegimeId: string | null;
|
|
686
|
+
sequence: number | null;
|
|
688
687
|
voidReason: string | null;
|
|
688
|
+
updatedAt: string;
|
|
689
689
|
} | null;
|
|
690
690
|
amountCents: number;
|
|
691
691
|
currency: string;
|
|
@@ -737,53 +737,53 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
737
737
|
willCreateDefaultPaymentPlan: boolean;
|
|
738
738
|
selectedSchedule: {
|
|
739
739
|
id: string;
|
|
740
|
-
|
|
740
|
+
currency: string;
|
|
741
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
742
|
+
amountCents: number;
|
|
741
743
|
notes: string | null;
|
|
742
|
-
createdAt: string;
|
|
743
|
-
updatedAt: string;
|
|
744
744
|
bookingId: string;
|
|
745
|
-
currency: string;
|
|
746
|
-
dueDate: string;
|
|
747
745
|
bookingItemId: string | null;
|
|
748
746
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
749
|
-
|
|
747
|
+
dueDate: string;
|
|
748
|
+
createdAt: string;
|
|
749
|
+
updatedAt: string;
|
|
750
750
|
} | null;
|
|
751
751
|
selectedInvoice: {
|
|
752
752
|
id: string;
|
|
753
|
+
currency: string;
|
|
754
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
755
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
756
|
+
notes: string | null;
|
|
757
|
+
bookingId: string;
|
|
753
758
|
personId: string | null;
|
|
754
759
|
organizationId: string | null;
|
|
755
|
-
|
|
756
|
-
|
|
760
|
+
voidedAt: string | null;
|
|
761
|
+
dueDate: string;
|
|
757
762
|
createdAt: string;
|
|
758
|
-
updatedAt: string;
|
|
759
|
-
invoiceNumber: string;
|
|
760
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
761
|
-
convertedFromInvoiceId: string | null;
|
|
762
|
-
seriesId: string | null;
|
|
763
|
-
sequence: number | null;
|
|
764
|
-
templateId: string | null;
|
|
765
|
-
taxRegimeId: string | null;
|
|
766
|
-
language: string | null;
|
|
767
|
-
bookingId: string;
|
|
768
|
-
currency: string;
|
|
769
763
|
baseCurrency: string | null;
|
|
770
764
|
fxRateSetId: string | null;
|
|
765
|
+
invoiceNumber: string;
|
|
766
|
+
totalCents: number;
|
|
767
|
+
paidCents: number;
|
|
768
|
+
balanceDueCents: number;
|
|
769
|
+
issueDate: string;
|
|
771
770
|
subtotalCents: number;
|
|
772
771
|
baseSubtotalCents: number | null;
|
|
773
772
|
taxCents: number;
|
|
774
773
|
baseTaxCents: number | null;
|
|
775
|
-
totalCents: number;
|
|
776
774
|
baseTotalCents: number | null;
|
|
777
|
-
paidCents: number;
|
|
778
775
|
basePaidCents: number | null;
|
|
779
|
-
balanceDueCents: number;
|
|
780
776
|
baseBalanceDueCents: number | null;
|
|
781
777
|
commissionPercent: number | null;
|
|
782
778
|
commissionAmountCents: number | null;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
779
|
+
seriesId: string | null;
|
|
780
|
+
convertedFromInvoiceId: string | null;
|
|
781
|
+
language: string | null;
|
|
782
|
+
templateId: string | null;
|
|
783
|
+
taxRegimeId: string | null;
|
|
784
|
+
sequence: number | null;
|
|
786
785
|
voidReason: string | null;
|
|
786
|
+
updatedAt: string;
|
|
787
787
|
} | null;
|
|
788
788
|
amountCents: number;
|
|
789
789
|
currency: string;
|
|
@@ -791,71 +791,69 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
791
791
|
};
|
|
792
792
|
invoice: {
|
|
793
793
|
id: string;
|
|
794
|
+
currency: string;
|
|
795
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
796
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
797
|
+
notes: string | null;
|
|
798
|
+
bookingId: string;
|
|
794
799
|
personId: string | null;
|
|
795
800
|
organizationId: string | null;
|
|
796
|
-
|
|
797
|
-
|
|
801
|
+
voidedAt: string | null;
|
|
802
|
+
dueDate: string;
|
|
798
803
|
createdAt: string;
|
|
799
|
-
updatedAt: string;
|
|
800
|
-
invoiceNumber: string;
|
|
801
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
802
|
-
convertedFromInvoiceId: string | null;
|
|
803
|
-
seriesId: string | null;
|
|
804
|
-
sequence: number | null;
|
|
805
|
-
templateId: string | null;
|
|
806
|
-
taxRegimeId: string | null;
|
|
807
|
-
language: string | null;
|
|
808
|
-
bookingId: string;
|
|
809
|
-
currency: string;
|
|
810
804
|
baseCurrency: string | null;
|
|
811
805
|
fxRateSetId: string | null;
|
|
806
|
+
invoiceNumber: string;
|
|
807
|
+
totalCents: number;
|
|
808
|
+
paidCents: number;
|
|
809
|
+
balanceDueCents: number;
|
|
810
|
+
issueDate: string;
|
|
812
811
|
subtotalCents: number;
|
|
813
812
|
baseSubtotalCents: number | null;
|
|
814
813
|
taxCents: number;
|
|
815
814
|
baseTaxCents: number | null;
|
|
816
|
-
totalCents: number;
|
|
817
815
|
baseTotalCents: number | null;
|
|
818
|
-
paidCents: number;
|
|
819
816
|
basePaidCents: number | null;
|
|
820
|
-
balanceDueCents: number;
|
|
821
817
|
baseBalanceDueCents: number | null;
|
|
822
818
|
commissionPercent: number | null;
|
|
823
819
|
commissionAmountCents: number | null;
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
820
|
+
seriesId: string | null;
|
|
821
|
+
convertedFromInvoiceId: string | null;
|
|
822
|
+
language: string | null;
|
|
823
|
+
templateId: string | null;
|
|
824
|
+
taxRegimeId: string | null;
|
|
825
|
+
sequence: number | null;
|
|
827
826
|
voidReason: string | null;
|
|
827
|
+
updatedAt: string;
|
|
828
828
|
} | null;
|
|
829
829
|
paymentSession: {
|
|
830
|
-
id: string;
|
|
831
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
832
830
|
provider: string | null;
|
|
833
|
-
|
|
831
|
+
id: string;
|
|
832
|
+
currency: string;
|
|
833
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
834
834
|
metadata: {
|
|
835
835
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
836
836
|
} | null;
|
|
837
|
-
|
|
838
|
-
|
|
837
|
+
idempotencyKey: string | null;
|
|
838
|
+
amountCents: number;
|
|
839
|
+
expiresAt: string | null;
|
|
840
|
+
notes: string | null;
|
|
839
841
|
bookingId: string | null;
|
|
840
|
-
|
|
842
|
+
paymentId: string | null;
|
|
841
843
|
invoiceId: string | null;
|
|
842
|
-
amountCents: number;
|
|
843
844
|
bookingPaymentScheduleId: string | null;
|
|
844
|
-
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
|
|
845
|
-
paymentInstrumentId: string | null;
|
|
846
|
-
orderId: string | null;
|
|
847
845
|
bookingGuaranteeId: string | null;
|
|
848
|
-
|
|
849
|
-
paymentAuthorizationId: string | null;
|
|
850
|
-
paymentCaptureId: string | null;
|
|
851
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
852
|
-
targetId: string | null;
|
|
853
|
-
paymentId: string | null;
|
|
846
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
854
847
|
providerSessionId: string | null;
|
|
855
848
|
providerPaymentId: string | null;
|
|
856
849
|
externalReference: string | null;
|
|
857
|
-
idempotencyKey: string | null;
|
|
858
850
|
clientReference: string | null;
|
|
851
|
+
orderId: string | null;
|
|
852
|
+
targetId: string | null;
|
|
853
|
+
paymentInstrumentId: string | null;
|
|
854
|
+
paymentAuthorizationId: string | null;
|
|
855
|
+
paymentCaptureId: string | null;
|
|
856
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
859
857
|
payerPersonId: string | null;
|
|
860
858
|
payerOrganizationId: string | null;
|
|
861
859
|
payerEmail: string | null;
|
|
@@ -873,6 +871,8 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
873
871
|
providerPayload: {
|
|
874
872
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
875
873
|
} | null;
|
|
874
|
+
createdAt: string;
|
|
875
|
+
updatedAt: string;
|
|
876
876
|
} | null;
|
|
877
877
|
invoiceNotification: {
|
|
878
878
|
id: string;
|
|
@@ -976,53 +976,53 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
976
976
|
willCreateDefaultPaymentPlan: boolean;
|
|
977
977
|
selectedSchedule: {
|
|
978
978
|
id: string;
|
|
979
|
-
|
|
979
|
+
currency: string;
|
|
980
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
981
|
+
amountCents: number;
|
|
980
982
|
notes: string | null;
|
|
981
|
-
createdAt: string;
|
|
982
|
-
updatedAt: string;
|
|
983
983
|
bookingId: string;
|
|
984
|
-
currency: string;
|
|
985
|
-
dueDate: string;
|
|
986
984
|
bookingItemId: string | null;
|
|
987
985
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
988
|
-
|
|
986
|
+
dueDate: string;
|
|
987
|
+
createdAt: string;
|
|
988
|
+
updatedAt: string;
|
|
989
989
|
} | null;
|
|
990
990
|
selectedInvoice: {
|
|
991
991
|
id: string;
|
|
992
|
+
currency: string;
|
|
993
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
994
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
995
|
+
notes: string | null;
|
|
996
|
+
bookingId: string;
|
|
992
997
|
personId: string | null;
|
|
993
998
|
organizationId: string | null;
|
|
994
|
-
|
|
995
|
-
|
|
999
|
+
voidedAt: string | null;
|
|
1000
|
+
dueDate: string;
|
|
996
1001
|
createdAt: string;
|
|
997
|
-
updatedAt: string;
|
|
998
|
-
invoiceNumber: string;
|
|
999
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1000
|
-
convertedFromInvoiceId: string | null;
|
|
1001
|
-
seriesId: string | null;
|
|
1002
|
-
sequence: number | null;
|
|
1003
|
-
templateId: string | null;
|
|
1004
|
-
taxRegimeId: string | null;
|
|
1005
|
-
language: string | null;
|
|
1006
|
-
bookingId: string;
|
|
1007
|
-
currency: string;
|
|
1008
1002
|
baseCurrency: string | null;
|
|
1009
1003
|
fxRateSetId: string | null;
|
|
1004
|
+
invoiceNumber: string;
|
|
1005
|
+
totalCents: number;
|
|
1006
|
+
paidCents: number;
|
|
1007
|
+
balanceDueCents: number;
|
|
1008
|
+
issueDate: string;
|
|
1010
1009
|
subtotalCents: number;
|
|
1011
1010
|
baseSubtotalCents: number | null;
|
|
1012
1011
|
taxCents: number;
|
|
1013
1012
|
baseTaxCents: number | null;
|
|
1014
|
-
totalCents: number;
|
|
1015
1013
|
baseTotalCents: number | null;
|
|
1016
|
-
paidCents: number;
|
|
1017
1014
|
basePaidCents: number | null;
|
|
1018
|
-
balanceDueCents: number;
|
|
1019
1015
|
baseBalanceDueCents: number | null;
|
|
1020
1016
|
commissionPercent: number | null;
|
|
1021
1017
|
commissionAmountCents: number | null;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1018
|
+
seriesId: string | null;
|
|
1019
|
+
convertedFromInvoiceId: string | null;
|
|
1020
|
+
language: string | null;
|
|
1021
|
+
templateId: string | null;
|
|
1022
|
+
taxRegimeId: string | null;
|
|
1023
|
+
sequence: number | null;
|
|
1025
1024
|
voidReason: string | null;
|
|
1025
|
+
updatedAt: string;
|
|
1026
1026
|
} | null;
|
|
1027
1027
|
amountCents: number;
|
|
1028
1028
|
currency: string;
|
|
@@ -1030,71 +1030,69 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
1030
1030
|
};
|
|
1031
1031
|
invoice: {
|
|
1032
1032
|
id: string;
|
|
1033
|
+
currency: string;
|
|
1034
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1035
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1036
|
+
notes: string | null;
|
|
1037
|
+
bookingId: string;
|
|
1033
1038
|
personId: string | null;
|
|
1034
1039
|
organizationId: string | null;
|
|
1035
|
-
|
|
1036
|
-
|
|
1040
|
+
voidedAt: string | null;
|
|
1041
|
+
dueDate: string;
|
|
1037
1042
|
createdAt: string;
|
|
1038
|
-
updatedAt: string;
|
|
1039
|
-
invoiceNumber: string;
|
|
1040
|
-
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1041
|
-
convertedFromInvoiceId: string | null;
|
|
1042
|
-
seriesId: string | null;
|
|
1043
|
-
sequence: number | null;
|
|
1044
|
-
templateId: string | null;
|
|
1045
|
-
taxRegimeId: string | null;
|
|
1046
|
-
language: string | null;
|
|
1047
|
-
bookingId: string;
|
|
1048
|
-
currency: string;
|
|
1049
1043
|
baseCurrency: string | null;
|
|
1050
1044
|
fxRateSetId: string | null;
|
|
1045
|
+
invoiceNumber: string;
|
|
1046
|
+
totalCents: number;
|
|
1047
|
+
paidCents: number;
|
|
1048
|
+
balanceDueCents: number;
|
|
1049
|
+
issueDate: string;
|
|
1051
1050
|
subtotalCents: number;
|
|
1052
1051
|
baseSubtotalCents: number | null;
|
|
1053
1052
|
taxCents: number;
|
|
1054
1053
|
baseTaxCents: number | null;
|
|
1055
|
-
totalCents: number;
|
|
1056
1054
|
baseTotalCents: number | null;
|
|
1057
|
-
paidCents: number;
|
|
1058
1055
|
basePaidCents: number | null;
|
|
1059
|
-
balanceDueCents: number;
|
|
1060
1056
|
baseBalanceDueCents: number | null;
|
|
1061
1057
|
commissionPercent: number | null;
|
|
1062
1058
|
commissionAmountCents: number | null;
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1059
|
+
seriesId: string | null;
|
|
1060
|
+
convertedFromInvoiceId: string | null;
|
|
1061
|
+
language: string | null;
|
|
1062
|
+
templateId: string | null;
|
|
1063
|
+
taxRegimeId: string | null;
|
|
1064
|
+
sequence: number | null;
|
|
1066
1065
|
voidReason: string | null;
|
|
1066
|
+
updatedAt: string;
|
|
1067
1067
|
} | null;
|
|
1068
1068
|
paymentSession: {
|
|
1069
|
-
id: string;
|
|
1070
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
1071
1069
|
provider: string | null;
|
|
1072
|
-
|
|
1070
|
+
id: string;
|
|
1071
|
+
currency: string;
|
|
1072
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
1073
1073
|
metadata: {
|
|
1074
1074
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1075
1075
|
} | null;
|
|
1076
|
-
|
|
1077
|
-
|
|
1076
|
+
idempotencyKey: string | null;
|
|
1077
|
+
amountCents: number;
|
|
1078
|
+
expiresAt: string | null;
|
|
1079
|
+
notes: string | null;
|
|
1078
1080
|
bookingId: string | null;
|
|
1079
|
-
|
|
1081
|
+
paymentId: string | null;
|
|
1080
1082
|
invoiceId: string | null;
|
|
1081
|
-
amountCents: number;
|
|
1082
1083
|
bookingPaymentScheduleId: string | null;
|
|
1083
|
-
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
|
|
1084
|
-
paymentInstrumentId: string | null;
|
|
1085
|
-
orderId: string | null;
|
|
1086
1084
|
bookingGuaranteeId: string | null;
|
|
1087
|
-
|
|
1088
|
-
paymentAuthorizationId: string | null;
|
|
1089
|
-
paymentCaptureId: string | null;
|
|
1090
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1091
|
-
targetId: string | null;
|
|
1092
|
-
paymentId: string | null;
|
|
1085
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1093
1086
|
providerSessionId: string | null;
|
|
1094
1087
|
providerPaymentId: string | null;
|
|
1095
1088
|
externalReference: string | null;
|
|
1096
|
-
idempotencyKey: string | null;
|
|
1097
1089
|
clientReference: string | null;
|
|
1090
|
+
orderId: string | null;
|
|
1091
|
+
targetId: string | null;
|
|
1092
|
+
paymentInstrumentId: string | null;
|
|
1093
|
+
paymentAuthorizationId: string | null;
|
|
1094
|
+
paymentCaptureId: string | null;
|
|
1095
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
1098
1096
|
payerPersonId: string | null;
|
|
1099
1097
|
payerOrganizationId: string | null;
|
|
1100
1098
|
payerEmail: string | null;
|
|
@@ -1112,6 +1110,8 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
1112
1110
|
providerPayload: {
|
|
1113
1111
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1114
1112
|
} | null;
|
|
1113
|
+
createdAt: string;
|
|
1114
|
+
updatedAt: string;
|
|
1115
1115
|
} | null;
|
|
1116
1116
|
invoiceNotification: {
|
|
1117
1117
|
id: string;
|