@voyant-travel/finance 0.169.2 → 0.171.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.
@@ -86,13 +86,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
86
86
  };
87
87
  output: {
88
88
  error: string;
89
- code: string;
90
- details?: {
91
- [x: string]: import("hono/utils/types").JSONValue;
92
- } | undefined;
93
89
  };
94
90
  outputFormat: "json";
95
- status: 400;
91
+ status: 404;
96
92
  } | {
97
93
  input: {
98
94
  param: {
@@ -114,9 +110,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
114
110
  };
115
111
  output: {
116
112
  error: string;
113
+ code: string;
114
+ details?: {
115
+ [x: string]: import("hono/utils/types").JSONValue;
116
+ } | undefined;
117
117
  };
118
118
  outputFormat: "json";
119
- status: 404;
119
+ status: 400;
120
120
  } | {
121
121
  input: {
122
122
  param: {
@@ -182,13 +182,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
182
182
  };
183
183
  output: {
184
184
  error: string;
185
- code: string;
186
- details?: {
187
- [x: string]: import("hono/utils/types").JSONValue;
188
- } | undefined;
189
185
  };
190
186
  outputFormat: "json";
191
- status: 400;
187
+ status: 404;
192
188
  } | {
193
189
  input: {
194
190
  param: {
@@ -211,9 +207,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
211
207
  };
212
208
  output: {
213
209
  error: string;
210
+ code: string;
211
+ details?: {
212
+ [x: string]: import("hono/utils/types").JSONValue;
213
+ } | undefined;
214
214
  };
215
215
  outputFormat: "json";
216
- status: 404;
216
+ status: 400;
217
217
  } | {
218
218
  input: {
219
219
  param: {
@@ -1116,13 +1116,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1116
1116
  };
1117
1117
  output: {
1118
1118
  error: string;
1119
- code: string;
1120
- details?: {
1121
- [x: string]: import("hono/utils/types").JSONValue;
1122
- } | undefined;
1123
1119
  };
1124
1120
  outputFormat: "json";
1125
- status: 400;
1121
+ status: 404;
1126
1122
  } | {
1127
1123
  input: {
1128
1124
  param: {
@@ -1132,9 +1128,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1132
1128
  };
1133
1129
  output: {
1134
1130
  error: string;
1131
+ code: string;
1132
+ details?: {
1133
+ [x: string]: import("hono/utils/types").JSONValue;
1134
+ } | undefined;
1135
1135
  };
1136
1136
  outputFormat: "json";
1137
- status: 404;
1137
+ status: 400;
1138
1138
  } | {
1139
1139
  input: {
1140
1140
  param: {
@@ -1195,15 +1195,22 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1195
1195
  };
1196
1196
  };
1197
1197
  output: {
1198
- error: string;
1199
- existingActionId?: string | undefined;
1200
- code?: string | undefined;
1201
- details?: {
1202
- [x: string]: import("hono/utils/types").JSONValue;
1203
- } | undefined;
1198
+ data: {
1199
+ id: string;
1200
+ bookingId: string;
1201
+ bookingItemId: string | null;
1202
+ scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1203
+ status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
1204
+ dueDate: string;
1205
+ currency: string;
1206
+ amountCents: number;
1207
+ notes: string | null;
1208
+ createdAt: string;
1209
+ updatedAt: string;
1210
+ };
1204
1211
  };
1205
1212
  outputFormat: "json";
1206
- status: 409;
1213
+ status: 201;
1207
1214
  } | {
1208
1215
  input: {
1209
1216
  param: {
@@ -1221,22 +1228,10 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1221
1228
  };
1222
1229
  };
1223
1230
  output: {
1224
- data: {
1225
- id: string;
1226
- bookingId: string;
1227
- bookingItemId: string | null;
1228
- scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
1229
- status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
1230
- dueDate: string;
1231
- currency: string;
1232
- amountCents: number;
1233
- notes: string | null;
1234
- createdAt: string;
1235
- updatedAt: string;
1236
- };
1231
+ error: string;
1237
1232
  };
1238
1233
  outputFormat: "json";
1239
- status: 201;
1234
+ status: 404;
1240
1235
  } | {
1241
1236
  input: {
1242
1237
  param: {
@@ -1280,9 +1275,14 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1280
1275
  };
1281
1276
  output: {
1282
1277
  error: string;
1278
+ existingActionId?: string | undefined;
1279
+ code?: string | undefined;
1280
+ details?: {
1281
+ [x: string]: import("hono/utils/types").JSONValue;
1282
+ } | undefined;
1283
1283
  };
1284
1284
  outputFormat: "json";
1285
- status: 404;
1285
+ status: 409;
1286
1286
  };
1287
1287
  };
1288
1288
  } & {
@@ -1388,14 +1388,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1388
1388
  };
1389
1389
  output: {
1390
1390
  error: string;
1391
- existingActionId?: string | undefined;
1392
- code?: string | undefined;
1393
- details?: {
1394
- [x: string]: import("hono/utils/types").JSONValue;
1395
- } | undefined;
1396
1391
  };
1397
1392
  outputFormat: "json";
1398
- status: 409;
1393
+ status: 404;
1399
1394
  } | {
1400
1395
  input: {
1401
1396
  param: {
@@ -1441,9 +1436,14 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1441
1436
  };
1442
1437
  output: {
1443
1438
  error: string;
1439
+ existingActionId?: string | undefined;
1440
+ code?: string | undefined;
1441
+ details?: {
1442
+ [x: string]: import("hono/utils/types").JSONValue;
1443
+ } | undefined;
1444
1444
  };
1445
1445
  outputFormat: "json";
1446
- status: 404;
1446
+ status: 409;
1447
1447
  } | {
1448
1448
  input: {
1449
1449
  param: {
@@ -1685,10 +1685,57 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1685
1685
  };
1686
1686
  };
1687
1687
  output: {
1688
- error: string;
1688
+ data: {
1689
+ id: string;
1690
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1691
+ targetId: string | null;
1692
+ bookingId: string | null;
1693
+ orderId: string | null;
1694
+ invoiceId: string | null;
1695
+ bookingPaymentScheduleId: string | null;
1696
+ bookingGuaranteeId: string | null;
1697
+ paymentInstrumentId: string | null;
1698
+ paymentAuthorizationId: string | null;
1699
+ paymentCaptureId: string | null;
1700
+ paymentId: string | null;
1701
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
1702
+ provider: string | null;
1703
+ providerSessionId: string | null;
1704
+ providerPaymentId: string | null;
1705
+ externalReference: string | null;
1706
+ idempotencyKey: string | null;
1707
+ clientReference: string | null;
1708
+ currency: string;
1709
+ amountCents: number;
1710
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
1711
+ payerPersonId: string | null;
1712
+ payerOrganizationId: string | null;
1713
+ payerEmail: string | null;
1714
+ payerName: string | null;
1715
+ redirectUrl: string | null;
1716
+ returnUrl: string | null;
1717
+ cancelUrl: string | null;
1718
+ callbackUrl: string | null;
1719
+ expiresAt: string | null;
1720
+ completedAt: string | null;
1721
+ failedAt: string | null;
1722
+ cancelledAt: string | null;
1723
+ expiredAt: string | null;
1724
+ failureCode: string | null;
1725
+ failureMessage: string | null;
1726
+ notes: string | null;
1727
+ providerPayload: {
1728
+ [x: string]: import("hono/utils/types").JSONValue;
1729
+ } | null;
1730
+ metadata: {
1731
+ [x: string]: import("hono/utils/types").JSONValue;
1732
+ } | null;
1733
+ createdAt: string;
1734
+ updatedAt: string;
1735
+ };
1689
1736
  };
1690
1737
  outputFormat: "json";
1691
- status: 409;
1738
+ status: 201;
1692
1739
  } | {
1693
1740
  input: {
1694
1741
  param: {
@@ -1754,57 +1801,10 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
1754
1801
  };
1755
1802
  };
1756
1803
  output: {
1757
- data: {
1758
- id: string;
1759
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1760
- targetId: string | null;
1761
- bookingId: string | null;
1762
- orderId: string | null;
1763
- invoiceId: string | null;
1764
- bookingPaymentScheduleId: string | null;
1765
- bookingGuaranteeId: string | null;
1766
- paymentInstrumentId: string | null;
1767
- paymentAuthorizationId: string | null;
1768
- paymentCaptureId: string | null;
1769
- paymentId: string | null;
1770
- status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
1771
- provider: string | null;
1772
- providerSessionId: string | null;
1773
- providerPaymentId: string | null;
1774
- externalReference: string | null;
1775
- idempotencyKey: string | null;
1776
- clientReference: string | null;
1777
- currency: string;
1778
- amountCents: number;
1779
- paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
1780
- payerPersonId: string | null;
1781
- payerOrganizationId: string | null;
1782
- payerEmail: string | null;
1783
- payerName: string | null;
1784
- redirectUrl: string | null;
1785
- returnUrl: string | null;
1786
- cancelUrl: string | null;
1787
- callbackUrl: string | null;
1788
- expiresAt: string | null;
1789
- completedAt: string | null;
1790
- failedAt: string | null;
1791
- cancelledAt: string | null;
1792
- expiredAt: string | null;
1793
- failureCode: string | null;
1794
- failureMessage: string | null;
1795
- notes: string | null;
1796
- providerPayload: {
1797
- [x: string]: import("hono/utils/types").JSONValue;
1798
- } | null;
1799
- metadata: {
1800
- [x: string]: import("hono/utils/types").JSONValue;
1801
- } | null;
1802
- createdAt: string;
1803
- updatedAt: string;
1804
- };
1804
+ error: string;
1805
1805
  };
1806
1806
  outputFormat: "json";
1807
- status: 201;
1807
+ status: 409;
1808
1808
  };
1809
1809
  };
1810
1810
  } & {
@@ -19,6 +19,17 @@ import type { Env } from "./routes-shared.js";
19
19
  export declare const financeBookingReadRoutes: OpenAPIHono<Env, {
20
20
  "/bookings/:bookingId/payments": {
21
21
  $get: {
22
+ input: {
23
+ param: {
24
+ bookingId: string;
25
+ };
26
+ };
27
+ output: {
28
+ error: string;
29
+ };
30
+ outputFormat: "json";
31
+ status: 404;
32
+ } | {
22
33
  input: {
23
34
  param: {
24
35
  bookingId: string;
@@ -47,17 +58,6 @@ export declare const financeBookingReadRoutes: OpenAPIHono<Env, {
47
58
  };
48
59
  outputFormat: "json";
49
60
  status: 200;
50
- } | {
51
- input: {
52
- param: {
53
- bookingId: string;
54
- };
55
- };
56
- output: {
57
- error: string;
58
- };
59
- outputFormat: "json";
60
- status: 404;
61
61
  };
62
62
  };
63
63
  }, "/">;
@@ -203,15 +203,6 @@ export declare function createFinanceAdminDocumentRoutes(options?: FinanceDocume
203
203
  } & {
204
204
  "/invoice-renditions/:id/download": {
205
205
  $get: {
206
- input: {
207
- param: {
208
- id: string;
209
- };
210
- };
211
- output: {};
212
- outputFormat: string;
213
- status: 302;
214
- } | {
215
206
  input: {
216
207
  param: {
217
208
  id: string;
@@ -233,6 +224,15 @@ export declare function createFinanceAdminDocumentRoutes(options?: FinanceDocume
233
224
  };
234
225
  outputFormat: "json";
235
226
  status: 501;
227
+ } | {
228
+ input: {
229
+ param: {
230
+ id: string;
231
+ };
232
+ };
233
+ output: {};
234
+ outputFormat: string;
235
+ status: 302;
236
236
  };
237
237
  };
238
238
  }, "/">;
@@ -273,7 +273,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
273
273
  error: string;
274
274
  };
275
275
  outputFormat: "json";
276
- status: 409;
276
+ status: 400;
277
277
  } | {
278
278
  input: {
279
279
  param: {
@@ -296,7 +296,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
296
296
  error: string;
297
297
  };
298
298
  outputFormat: "json";
299
- status: 400;
299
+ status: 409;
300
300
  } | {
301
301
  input: {
302
302
  param: {
@@ -385,7 +385,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
385
385
  error: string;
386
386
  };
387
387
  outputFormat: "json";
388
- status: 409;
388
+ status: 400;
389
389
  } | {
390
390
  input: {
391
391
  param: {
@@ -409,7 +409,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
409
409
  error: string;
410
410
  };
411
411
  outputFormat: "json";
412
- status: 400;
412
+ status: 409;
413
413
  } | {
414
414
  input: {
415
415
  param: {
@@ -540,7 +540,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
540
540
  error: string;
541
541
  };
542
542
  outputFormat: "json";
543
- status: 409;
543
+ status: 400;
544
544
  } | {
545
545
  input: {
546
546
  param: {
@@ -568,7 +568,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
568
568
  error: string;
569
569
  };
570
570
  outputFormat: "json";
571
- status: 400;
571
+ status: 409;
572
572
  } | {
573
573
  input: {
574
574
  param: {
@@ -842,6 +842,17 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
842
842
  }, "/"> & import("hono/types").MergeSchemaPath<{
843
843
  "/invoices/:id": {
844
844
  $get: {
845
+ input: {
846
+ param: {
847
+ id: string;
848
+ };
849
+ };
850
+ output: {
851
+ error: string;
852
+ };
853
+ outputFormat: "json";
854
+ status: 404;
855
+ } | {
845
856
  input: {
846
857
  param: {
847
858
  id: string;
@@ -890,17 +901,6 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
890
901
  };
891
902
  outputFormat: "json";
892
903
  status: 200;
893
- } | {
894
- input: {
895
- param: {
896
- id: string;
897
- };
898
- };
899
- output: {
900
- error: string;
901
- };
902
- outputFormat: "json";
903
- status: 404;
904
904
  };
905
905
  };
906
906
  } & {
@@ -1051,7 +1051,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
1051
1051
  error: string;
1052
1052
  };
1053
1053
  outputFormat: "json";
1054
- status: 409;
1054
+ status: 400;
1055
1055
  } | {
1056
1056
  input: {
1057
1057
  param: {
@@ -1088,7 +1088,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
1088
1088
  error: string;
1089
1089
  };
1090
1090
  outputFormat: "json";
1091
- status: 400;
1091
+ status: 409;
1092
1092
  };
1093
1093
  };
1094
1094
  } & {
@@ -1151,7 +1151,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
1151
1151
  error: string;
1152
1152
  };
1153
1153
  outputFormat: "json";
1154
- status: 409;
1154
+ status: 400;
1155
1155
  } | {
1156
1156
  input: {
1157
1157
  param: {
@@ -1162,7 +1162,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
1162
1162
  error: string;
1163
1163
  };
1164
1164
  outputFormat: "json";
1165
- status: 400;
1165
+ status: 409;
1166
1166
  } | {
1167
1167
  input: {
1168
1168
  param: {
@@ -1349,7 +1349,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
1349
1349
  error: string;
1350
1350
  };
1351
1351
  outputFormat: "json";
1352
- status: 409;
1352
+ status: 400;
1353
1353
  } | {
1354
1354
  input: {
1355
1355
  param: {
@@ -1417,7 +1417,7 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
1417
1417
  error: string;
1418
1418
  };
1419
1419
  outputFormat: "json";
1420
- status: 400;
1420
+ status: 409;
1421
1421
  } | {
1422
1422
  input: {
1423
1423
  param: {
@@ -2051,7 +2051,7 @@ export declare const financePaymentProcessingRoutes: OpenAPIHono<Env, import("ho
2051
2051
  } | undefined;
2052
2052
  };
2053
2053
  outputFormat: "json";
2054
- status: 409;
2054
+ status: 400;
2055
2055
  } | {
2056
2056
  input: {
2057
2057
  param: {
@@ -2066,7 +2066,7 @@ export declare const financePaymentProcessingRoutes: OpenAPIHono<Env, import("ho
2066
2066
  } | undefined;
2067
2067
  };
2068
2068
  outputFormat: "json";
2069
- status: 400;
2069
+ status: 409;
2070
2070
  };
2071
2071
  };
2072
2072
  } & {
@@ -462,7 +462,7 @@ export declare const financePaymentRoutes: OpenAPIHono<Env, import("hono/types")
462
462
  error: string;
463
463
  };
464
464
  outputFormat: "json";
465
- status: 409;
465
+ status: 400;
466
466
  } | {
467
467
  input: {
468
468
  param: {
@@ -489,7 +489,7 @@ export declare const financePaymentRoutes: OpenAPIHono<Env, import("hono/types")
489
489
  error: string;
490
490
  };
491
491
  outputFormat: "json";
492
- status: 400;
492
+ status: 409;
493
493
  } | {
494
494
  input: {
495
495
  param: {
@@ -11,17 +11,10 @@ export declare function createPublicAccountantRoutes(options?: PublicAccountantR
11
11
  };
12
12
  };
13
13
  output: {
14
- data: {
15
- scope: {
16
- from?: string | null | undefined;
17
- to?: string | null | undefined;
18
- };
19
- departures: import("hono/utils/types").JSONValue;
20
- products: import("hono/utils/types").JSONValue;
21
- };
14
+ error: string;
22
15
  };
23
16
  outputFormat: "json";
24
- status: 200;
17
+ status: 404;
25
18
  } | {
26
19
  input: {
27
20
  param: {
@@ -29,10 +22,17 @@ export declare function createPublicAccountantRoutes(options?: PublicAccountantR
29
22
  };
30
23
  };
31
24
  output: {
32
- error: string;
25
+ data: {
26
+ scope: {
27
+ from?: string | null | undefined;
28
+ to?: string | null | undefined;
29
+ };
30
+ departures: import("hono/utils/types").JSONValue;
31
+ products: import("hono/utils/types").JSONValue;
32
+ };
33
33
  };
34
34
  outputFormat: "json";
35
- status: 404;
35
+ status: 200;
36
36
  } | {
37
37
  input: {
38
38
  param: {