@voyantjs/finance 0.20.0 → 0.21.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/routes.d.ts CHANGED
@@ -54,7 +54,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
54
54
  paymentAuthorizationId: string | null;
55
55
  paymentCaptureId: string | null;
56
56
  paymentId: string | null;
57
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
57
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
58
58
  provider: string | null;
59
59
  providerSessionId: string | null;
60
60
  providerPaymentId: string | null;
@@ -110,7 +110,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
110
110
  createdAt: string;
111
111
  updatedAt: string;
112
112
  expiresAt: string | null;
113
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
113
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
114
114
  currency: string;
115
115
  notes: string | null;
116
116
  idempotencyKey: string | null;
@@ -188,7 +188,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
188
188
  paymentAuthorizationId: string | null;
189
189
  paymentCaptureId: string | null;
190
190
  paymentId: string | null;
191
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
191
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
192
192
  provider: string | null;
193
193
  providerSessionId: string | null;
194
194
  providerPaymentId: string | null;
@@ -261,7 +261,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
261
261
  paymentAuthorizationId: string | null;
262
262
  paymentCaptureId: string | null;
263
263
  paymentId: string | null;
264
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
264
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
265
265
  provider: string | null;
266
266
  providerSessionId: string | null;
267
267
  providerPaymentId: string | null;
@@ -334,7 +334,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
334
334
  paymentAuthorizationId: string | null;
335
335
  paymentCaptureId: string | null;
336
336
  paymentId: string | null;
337
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
337
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
338
338
  provider: string | null;
339
339
  providerSessionId: string | null;
340
340
  providerPaymentId: string | null;
@@ -407,7 +407,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
407
407
  paymentAuthorizationId: string | null;
408
408
  paymentCaptureId: string | null;
409
409
  paymentId: string | null;
410
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
410
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
411
411
  provider: string | null;
412
412
  providerSessionId: string | null;
413
413
  providerPaymentId: string | null;
@@ -480,7 +480,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
480
480
  paymentAuthorizationId: string | null;
481
481
  paymentCaptureId: string | null;
482
482
  paymentId: string | null;
483
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
483
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
484
484
  provider: string | null;
485
485
  providerSessionId: string | null;
486
486
  providerPaymentId: string | null;
@@ -553,7 +553,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
553
553
  paymentAuthorizationId: string | null;
554
554
  paymentCaptureId: string | null;
555
555
  paymentId: string | null;
556
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
556
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
557
557
  provider: string | null;
558
558
  providerSessionId: string | null;
559
559
  providerPaymentId: string | null;
@@ -626,7 +626,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
626
626
  paymentAuthorizationId: string | null;
627
627
  paymentCaptureId: string | null;
628
628
  paymentId: string | null;
629
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
629
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
630
630
  provider: string | null;
631
631
  providerSessionId: string | null;
632
632
  providerPaymentId: string | null;
@@ -881,7 +881,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
881
881
  invoiceId: string | null;
882
882
  bookingGuaranteeId: string | null;
883
883
  paymentInstrumentId: string | null;
884
- status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
884
+ status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
885
885
  captureMode: "manual" | "automatic";
886
886
  currency: string;
887
887
  amountCents: number;
@@ -913,7 +913,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
913
913
  createdAt: string;
914
914
  updatedAt: string;
915
915
  expiresAt: string | null;
916
- status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
916
+ status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
917
917
  currency: string;
918
918
  notes: string | null;
919
919
  provider: string | null;
@@ -961,7 +961,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
961
961
  invoiceId: string | null;
962
962
  bookingGuaranteeId: string | null;
963
963
  paymentInstrumentId: string | null;
964
- status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
964
+ status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
965
965
  captureMode: "manual" | "automatic";
966
966
  currency: string;
967
967
  amountCents: number;
@@ -1007,7 +1007,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1007
1007
  invoiceId: string | null;
1008
1008
  bookingGuaranteeId: string | null;
1009
1009
  paymentInstrumentId: string | null;
1010
- status: "pending" | "expired" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
1010
+ status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
1011
1011
  captureMode: "manual" | "automatic";
1012
1012
  currency: string;
1013
1013
  amountCents: number;
@@ -1061,7 +1061,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1061
1061
  id: string;
1062
1062
  paymentAuthorizationId: string | null;
1063
1063
  invoiceId: string | null;
1064
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1064
+ status: "pending" | "failed" | "completed" | "refunded" | "voided";
1065
1065
  currency: string;
1066
1066
  amountCents: number;
1067
1067
  provider: string | null;
@@ -1089,7 +1089,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1089
1089
  id: string;
1090
1090
  createdAt: string;
1091
1091
  updatedAt: string;
1092
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1092
+ status: "pending" | "failed" | "completed" | "refunded" | "voided";
1093
1093
  currency: string;
1094
1094
  notes: string | null;
1095
1095
  provider: string | null;
@@ -1129,7 +1129,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1129
1129
  id: string;
1130
1130
  paymentAuthorizationId: string | null;
1131
1131
  invoiceId: string | null;
1132
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1132
+ status: "pending" | "failed" | "completed" | "refunded" | "voided";
1133
1133
  currency: string;
1134
1134
  amountCents: number;
1135
1135
  provider: string | null;
@@ -1169,7 +1169,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1169
1169
  id: string;
1170
1170
  paymentAuthorizationId: string | null;
1171
1171
  invoiceId: string | null;
1172
- status: "pending" | "completed" | "failed" | "refunded" | "voided";
1172
+ status: "pending" | "failed" | "completed" | "refunded" | "voided";
1173
1173
  currency: string;
1174
1174
  amountCents: number;
1175
1175
  provider: string | null;
@@ -1435,7 +1435,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1435
1435
  createdAt: string;
1436
1436
  updatedAt: string;
1437
1437
  expiresAt: string | null;
1438
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1438
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1439
1439
  currency: string;
1440
1440
  notes: string | null;
1441
1441
  idempotencyKey: string | null;
@@ -1538,7 +1538,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1538
1538
  bookingPaymentScheduleId: string | null;
1539
1539
  bookingItemId: string | null;
1540
1540
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1541
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
1541
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
1542
1542
  paymentInstrumentId: string | null;
1543
1543
  paymentAuthorizationId: string | null;
1544
1544
  currency: string | null;
@@ -1582,7 +1582,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1582
1582
  createdAt: string;
1583
1583
  updatedAt: string;
1584
1584
  expiresAt: string | null;
1585
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
1585
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
1586
1586
  currency: string | null;
1587
1587
  notes: string | null;
1588
1588
  provider: string | null;
@@ -1634,7 +1634,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1634
1634
  createdAt: string;
1635
1635
  updatedAt: string;
1636
1636
  expiresAt: string | null;
1637
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1637
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1638
1638
  currency: string;
1639
1639
  notes: string | null;
1640
1640
  idempotencyKey: string | null;
@@ -1722,7 +1722,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1722
1722
  bookingPaymentScheduleId: string | null;
1723
1723
  bookingItemId: string | null;
1724
1724
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
1725
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
1725
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
1726
1726
  paymentInstrumentId: string | null;
1727
1727
  paymentAuthorizationId: string | null;
1728
1728
  currency: string | null;
@@ -1974,6 +1974,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1974
1974
  status: "pending" | "void" | "paid" | "accrued" | "payable";
1975
1975
  currency: string | null;
1976
1976
  notes: string | null;
1977
+ paidAt: string | null;
1977
1978
  bookingItemId: string;
1978
1979
  amountCents: number | null;
1979
1980
  channelId: string | null;
@@ -1981,7 +1982,6 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1981
1982
  recipientType: "internal" | "supplier" | "other" | "affiliate" | "channel" | "agency" | "agent";
1982
1983
  commissionModel: "fixed" | "percentage" | "markup" | "net";
1983
1984
  payableAt: string | null;
1984
- paidAt: string | null;
1985
1985
  };
1986
1986
  };
1987
1987
  outputFormat: "json";
@@ -2080,7 +2080,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2080
2080
  fxRateSetId: string | null;
2081
2081
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2082
2082
  paymentInstrumentId: string | null;
2083
- status: "pending" | "completed" | "failed" | "refunded";
2083
+ status: "pending" | "failed" | "completed" | "refunded";
2084
2084
  referenceNumber: string | null;
2085
2085
  paymentDate: string;
2086
2086
  notes: string | null;
@@ -2104,7 +2104,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2104
2104
  id: string;
2105
2105
  createdAt: string;
2106
2106
  updatedAt: string;
2107
- status: "pending" | "completed" | "failed" | "refunded";
2107
+ status: "pending" | "failed" | "completed" | "refunded";
2108
2108
  currency: string;
2109
2109
  notes: string | null;
2110
2110
  bookingId: string;
@@ -2156,7 +2156,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2156
2156
  fxRateSetId: string | null;
2157
2157
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
2158
2158
  paymentInstrumentId: string | null;
2159
- status: "pending" | "completed" | "failed" | "refunded";
2159
+ status: "pending" | "failed" | "completed" | "refunded";
2160
2160
  referenceNumber: string | null;
2161
2161
  paymentDate: string;
2162
2162
  notes: string | null;
@@ -2177,6 +2177,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2177
2177
  id: string;
2178
2178
  invoiceNumber: string;
2179
2179
  invoiceType: "invoice" | "proforma" | "credit_note";
2180
+ convertedFromInvoiceId: string | null;
2180
2181
  seriesId: string | null;
2181
2182
  sequence: number | null;
2182
2183
  templateId: string | null;
@@ -2235,6 +2236,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2235
2236
  fxRateSetId: string | null;
2236
2237
  invoiceNumber: string;
2237
2238
  invoiceType: "invoice" | "proforma" | "credit_note";
2239
+ convertedFromInvoiceId: string | null;
2238
2240
  seriesId: string | null;
2239
2241
  sequence: number | null;
2240
2242
  templateId: string | null;
@@ -2286,6 +2288,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2286
2288
  fxRateSetId: string | null;
2287
2289
  invoiceNumber: string;
2288
2290
  invoiceType: "invoice" | "proforma" | "credit_note";
2291
+ convertedFromInvoiceId: string | null;
2289
2292
  seriesId: string | null;
2290
2293
  sequence: number | null;
2291
2294
  templateId: string | null;
@@ -2334,6 +2337,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2334
2337
  id: string;
2335
2338
  invoiceNumber: string;
2336
2339
  invoiceType: "invoice" | "proforma" | "credit_note";
2340
+ convertedFromInvoiceId: string | null;
2337
2341
  seriesId: string | null;
2338
2342
  sequence: number | null;
2339
2343
  templateId: string | null;
@@ -2393,6 +2397,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2393
2397
  id: string;
2394
2398
  invoiceNumber: string;
2395
2399
  invoiceType: "invoice" | "proforma" | "credit_note";
2400
+ convertedFromInvoiceId: string | null;
2396
2401
  seriesId: string | null;
2397
2402
  sequence: number | null;
2398
2403
  templateId: string | null;
@@ -2493,7 +2498,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2493
2498
  createdAt: string;
2494
2499
  updatedAt: string;
2495
2500
  expiresAt: string | null;
2496
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
2501
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
2497
2502
  currency: string;
2498
2503
  notes: string | null;
2499
2504
  idempotencyKey: string | null;
@@ -2704,7 +2709,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2704
2709
  paymentInstrumentId: string | null;
2705
2710
  paymentAuthorizationId: string | null;
2706
2711
  paymentCaptureId: string | null;
2707
- status: "pending" | "completed" | "failed" | "refunded";
2712
+ status: "pending" | "failed" | "completed" | "refunded";
2708
2713
  referenceNumber: string | null;
2709
2714
  paymentDate: string;
2710
2715
  notes: string | null;
@@ -2740,7 +2745,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2740
2745
  id: string;
2741
2746
  createdAt: string;
2742
2747
  updatedAt: string;
2743
- status: "pending" | "completed" | "failed" | "refunded";
2748
+ status: "pending" | "failed" | "completed" | "refunded";
2744
2749
  currency: string;
2745
2750
  notes: string | null;
2746
2751
  baseCurrency: string | null;
@@ -3500,6 +3505,459 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3500
3505
  status: import("hono/utils/http-status").ContentfulStatusCode;
3501
3506
  };
3502
3507
  };
3508
+ } & {
3509
+ "/tax-classes": {
3510
+ $get: {
3511
+ input: {};
3512
+ output: {
3513
+ data: {
3514
+ id: string;
3515
+ code: string;
3516
+ label: string;
3517
+ description: string | null;
3518
+ defaultRegimeId: string | null;
3519
+ lines: {
3520
+ regime_id: string;
3521
+ applies_to: "base" | "addon" | "accommodation" | "all";
3522
+ }[] | null;
3523
+ active: boolean;
3524
+ createdAt: string;
3525
+ updatedAt: string;
3526
+ }[];
3527
+ total: number;
3528
+ limit: number;
3529
+ offset: number;
3530
+ };
3531
+ outputFormat: "json";
3532
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3533
+ };
3534
+ };
3535
+ } & {
3536
+ "/tax-classes": {
3537
+ $post: {
3538
+ input: {};
3539
+ output: {
3540
+ data: {
3541
+ id: string;
3542
+ createdAt: string;
3543
+ updatedAt: string;
3544
+ description: string | null;
3545
+ code: string;
3546
+ active: boolean;
3547
+ label: string;
3548
+ defaultRegimeId: string | null;
3549
+ lines: {
3550
+ regime_id: string;
3551
+ applies_to: "base" | "addon" | "accommodation" | "all";
3552
+ }[] | null;
3553
+ } | null;
3554
+ };
3555
+ outputFormat: "json";
3556
+ status: 201;
3557
+ };
3558
+ };
3559
+ } & {
3560
+ "/tax-classes/:id": {
3561
+ $get: {
3562
+ input: {
3563
+ param: {
3564
+ id: string;
3565
+ };
3566
+ };
3567
+ output: {
3568
+ error: string;
3569
+ };
3570
+ outputFormat: "json";
3571
+ status: 404;
3572
+ } | {
3573
+ input: {
3574
+ param: {
3575
+ id: string;
3576
+ };
3577
+ };
3578
+ output: {
3579
+ data: {
3580
+ id: string;
3581
+ code: string;
3582
+ label: string;
3583
+ description: string | null;
3584
+ defaultRegimeId: string | null;
3585
+ lines: {
3586
+ regime_id: string;
3587
+ applies_to: "base" | "addon" | "accommodation" | "all";
3588
+ }[] | null;
3589
+ active: boolean;
3590
+ createdAt: string;
3591
+ updatedAt: string;
3592
+ };
3593
+ };
3594
+ outputFormat: "json";
3595
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3596
+ };
3597
+ };
3598
+ } & {
3599
+ "/tax-classes/:id": {
3600
+ $patch: {
3601
+ input: {
3602
+ param: {
3603
+ id: string;
3604
+ };
3605
+ };
3606
+ output: {
3607
+ error: string;
3608
+ };
3609
+ outputFormat: "json";
3610
+ status: 404;
3611
+ } | {
3612
+ input: {
3613
+ param: {
3614
+ id: string;
3615
+ };
3616
+ };
3617
+ output: {
3618
+ data: {
3619
+ id: string;
3620
+ code: string;
3621
+ label: string;
3622
+ description: string | null;
3623
+ defaultRegimeId: string | null;
3624
+ lines: {
3625
+ regime_id: string;
3626
+ applies_to: "base" | "addon" | "accommodation" | "all";
3627
+ }[] | null;
3628
+ active: boolean;
3629
+ createdAt: string;
3630
+ updatedAt: string;
3631
+ };
3632
+ };
3633
+ outputFormat: "json";
3634
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3635
+ };
3636
+ };
3637
+ } & {
3638
+ "/tax-classes/:id": {
3639
+ $delete: {
3640
+ input: {
3641
+ param: {
3642
+ id: string;
3643
+ };
3644
+ };
3645
+ output: {
3646
+ error: string;
3647
+ };
3648
+ outputFormat: "json";
3649
+ status: 404;
3650
+ } | {
3651
+ input: {
3652
+ param: {
3653
+ id: string;
3654
+ };
3655
+ };
3656
+ output: {
3657
+ success: true;
3658
+ };
3659
+ outputFormat: "json";
3660
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3661
+ };
3662
+ };
3663
+ } & {
3664
+ "/tax-policy-profiles": {
3665
+ $get: {
3666
+ input: {};
3667
+ output: {
3668
+ data: {
3669
+ id: string;
3670
+ code: string;
3671
+ name: string;
3672
+ jurisdiction: string | null;
3673
+ description: string | null;
3674
+ active: boolean;
3675
+ createdAt: string;
3676
+ updatedAt: string;
3677
+ }[];
3678
+ total: number;
3679
+ limit: number;
3680
+ offset: number;
3681
+ };
3682
+ outputFormat: "json";
3683
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3684
+ };
3685
+ };
3686
+ } & {
3687
+ "/tax-policy-profiles": {
3688
+ $post: {
3689
+ input: {};
3690
+ output: {
3691
+ data: {
3692
+ id: string;
3693
+ name: string;
3694
+ createdAt: string;
3695
+ updatedAt: string;
3696
+ description: string | null;
3697
+ code: string;
3698
+ active: boolean;
3699
+ jurisdiction: string | null;
3700
+ } | null;
3701
+ };
3702
+ outputFormat: "json";
3703
+ status: 201;
3704
+ };
3705
+ };
3706
+ } & {
3707
+ "/tax-policy-profiles/:id": {
3708
+ $get: {
3709
+ input: {
3710
+ param: {
3711
+ id: string;
3712
+ };
3713
+ };
3714
+ output: {
3715
+ error: string;
3716
+ };
3717
+ outputFormat: "json";
3718
+ status: 404;
3719
+ } | {
3720
+ input: {
3721
+ param: {
3722
+ id: string;
3723
+ };
3724
+ };
3725
+ output: {
3726
+ data: {
3727
+ id: string;
3728
+ code: string;
3729
+ name: string;
3730
+ jurisdiction: string | null;
3731
+ description: string | null;
3732
+ active: boolean;
3733
+ createdAt: string;
3734
+ updatedAt: string;
3735
+ };
3736
+ };
3737
+ outputFormat: "json";
3738
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3739
+ };
3740
+ };
3741
+ } & {
3742
+ "/tax-policy-profiles/:id": {
3743
+ $patch: {
3744
+ input: {
3745
+ param: {
3746
+ id: string;
3747
+ };
3748
+ };
3749
+ output: {
3750
+ error: string;
3751
+ };
3752
+ outputFormat: "json";
3753
+ status: 404;
3754
+ } | {
3755
+ input: {
3756
+ param: {
3757
+ id: string;
3758
+ };
3759
+ };
3760
+ output: {
3761
+ data: {
3762
+ id: string;
3763
+ code: string;
3764
+ name: string;
3765
+ jurisdiction: string | null;
3766
+ description: string | null;
3767
+ active: boolean;
3768
+ createdAt: string;
3769
+ updatedAt: string;
3770
+ };
3771
+ };
3772
+ outputFormat: "json";
3773
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3774
+ };
3775
+ };
3776
+ } & {
3777
+ "/tax-policy-profiles/:id": {
3778
+ $delete: {
3779
+ input: {
3780
+ param: {
3781
+ id: string;
3782
+ };
3783
+ };
3784
+ output: {
3785
+ error: string;
3786
+ };
3787
+ outputFormat: "json";
3788
+ status: 404;
3789
+ } | {
3790
+ input: {
3791
+ param: {
3792
+ id: string;
3793
+ };
3794
+ };
3795
+ output: {
3796
+ success: true;
3797
+ };
3798
+ outputFormat: "json";
3799
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3800
+ };
3801
+ };
3802
+ } & {
3803
+ "/tax-policy-rules": {
3804
+ $get: {
3805
+ input: {};
3806
+ output: {
3807
+ data: {
3808
+ id: string;
3809
+ profileId: string;
3810
+ side: "sell" | "buy";
3811
+ priority: number;
3812
+ name: string;
3813
+ appliesTo: "all" | "accommodation" | "base" | "addon";
3814
+ condition: {
3815
+ [x: string]: import("hono/utils/types").JSONValue;
3816
+ } | null;
3817
+ taxRegimeId: string;
3818
+ active: boolean;
3819
+ createdAt: string;
3820
+ updatedAt: string;
3821
+ }[];
3822
+ total: number;
3823
+ limit: number;
3824
+ offset: number;
3825
+ };
3826
+ outputFormat: "json";
3827
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3828
+ };
3829
+ };
3830
+ } & {
3831
+ "/tax-policy-rules": {
3832
+ $post: {
3833
+ input: {};
3834
+ output: {
3835
+ data: {
3836
+ id: string;
3837
+ name: string;
3838
+ createdAt: string;
3839
+ updatedAt: string;
3840
+ active: boolean;
3841
+ taxRegimeId: string;
3842
+ profileId: string;
3843
+ side: "sell" | "buy";
3844
+ priority: number;
3845
+ appliesTo: "all" | "accommodation" | "base" | "addon";
3846
+ condition: {
3847
+ [x: string]: import("hono/utils/types").JSONValue;
3848
+ } | null;
3849
+ } | null;
3850
+ };
3851
+ outputFormat: "json";
3852
+ status: 201;
3853
+ };
3854
+ };
3855
+ } & {
3856
+ "/tax-policy-rules/:id": {
3857
+ $get: {
3858
+ input: {
3859
+ param: {
3860
+ id: string;
3861
+ };
3862
+ };
3863
+ output: {
3864
+ error: string;
3865
+ };
3866
+ outputFormat: "json";
3867
+ status: 404;
3868
+ } | {
3869
+ input: {
3870
+ param: {
3871
+ id: string;
3872
+ };
3873
+ };
3874
+ output: {
3875
+ data: {
3876
+ id: string;
3877
+ profileId: string;
3878
+ side: "sell" | "buy";
3879
+ priority: number;
3880
+ name: string;
3881
+ appliesTo: "all" | "accommodation" | "base" | "addon";
3882
+ condition: {
3883
+ [x: string]: import("hono/utils/types").JSONValue;
3884
+ } | null;
3885
+ taxRegimeId: string;
3886
+ active: boolean;
3887
+ createdAt: string;
3888
+ updatedAt: string;
3889
+ };
3890
+ };
3891
+ outputFormat: "json";
3892
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3893
+ };
3894
+ };
3895
+ } & {
3896
+ "/tax-policy-rules/:id": {
3897
+ $patch: {
3898
+ input: {
3899
+ param: {
3900
+ id: string;
3901
+ };
3902
+ };
3903
+ output: {
3904
+ error: string;
3905
+ };
3906
+ outputFormat: "json";
3907
+ status: 404;
3908
+ } | {
3909
+ input: {
3910
+ param: {
3911
+ id: string;
3912
+ };
3913
+ };
3914
+ output: {
3915
+ data: {
3916
+ id: string;
3917
+ profileId: string;
3918
+ side: "sell" | "buy";
3919
+ priority: number;
3920
+ name: string;
3921
+ appliesTo: "all" | "accommodation" | "base" | "addon";
3922
+ condition: {
3923
+ [x: string]: import("hono/utils/types").JSONValue;
3924
+ } | null;
3925
+ taxRegimeId: string;
3926
+ active: boolean;
3927
+ createdAt: string;
3928
+ updatedAt: string;
3929
+ };
3930
+ };
3931
+ outputFormat: "json";
3932
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3933
+ };
3934
+ };
3935
+ } & {
3936
+ "/tax-policy-rules/:id": {
3937
+ $delete: {
3938
+ input: {
3939
+ param: {
3940
+ id: string;
3941
+ };
3942
+ };
3943
+ output: {
3944
+ error: string;
3945
+ };
3946
+ outputFormat: "json";
3947
+ status: 404;
3948
+ } | {
3949
+ input: {
3950
+ param: {
3951
+ id: string;
3952
+ };
3953
+ };
3954
+ output: {
3955
+ success: true;
3956
+ };
3957
+ outputFormat: "json";
3958
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3959
+ };
3960
+ };
3503
3961
  } & {
3504
3962
  "/invoices/:id/renditions": {
3505
3963
  $get: {
@@ -3557,13 +4015,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3557
4015
  updatedAt: string;
3558
4016
  status: "pending" | "failed" | "ready" | "stale";
3559
4017
  format: "json" | "pdf" | "html" | "xml";
4018
+ errorMessage: string | null;
3560
4019
  templateId: string | null;
3561
4020
  language: string | null;
3562
4021
  invoiceId: string;
3563
4022
  storageKey: string | null;
3564
4023
  fileSize: number | null;
3565
4024
  checksum: string | null;
3566
- errorMessage: string | null;
3567
4025
  generatedAt: string | null;
3568
4026
  } | null;
3569
4027
  };
@@ -3893,7 +4351,48 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3893
4351
  status: 404 | 409 | 422;
3894
4352
  };
3895
4353
  };
3896
- }, "/", "/vouchers/:id/redeem">;
4354
+ } & {
4355
+ "/bookings/:bookingId/payments": {
4356
+ $get: {
4357
+ input: {
4358
+ param: {
4359
+ bookingId: string;
4360
+ };
4361
+ };
4362
+ output: {
4363
+ error: string;
4364
+ };
4365
+ outputFormat: "json";
4366
+ status: 404;
4367
+ } | {
4368
+ input: {
4369
+ param: {
4370
+ bookingId: string;
4371
+ };
4372
+ };
4373
+ output: {
4374
+ data: {
4375
+ bookingId: string;
4376
+ payments: {
4377
+ id: string;
4378
+ invoiceId: string;
4379
+ invoiceNumber: string;
4380
+ invoiceType: "invoice" | "proforma" | "credit_note";
4381
+ status: "pending" | "failed" | "completed" | "refunded";
4382
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
4383
+ amountCents: number;
4384
+ currency: string;
4385
+ paymentDate: string;
4386
+ referenceNumber: string | null;
4387
+ notes: string | null;
4388
+ }[];
4389
+ };
4390
+ };
4391
+ outputFormat: "json";
4392
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4393
+ };
4394
+ };
4395
+ }, "/", "/bookings/:bookingId/payments">;
3897
4396
  export type FinanceRoutes = typeof financeRoutes;
3898
4397
  export type PublicFinanceRoutes = typeof publicFinanceRoutes;
3899
4398
  //# sourceMappingURL=routes.d.ts.map