@voyant-travel/finance 0.119.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +192 -0
  3. package/dist/action-ledger-drift.d.ts +29 -0
  4. package/dist/action-ledger-drift.d.ts.map +1 -0
  5. package/dist/action-ledger-drift.js +166 -0
  6. package/dist/booking-tax.d.ts +124 -0
  7. package/dist/booking-tax.d.ts.map +1 -0
  8. package/dist/booking-tax.js +264 -0
  9. package/dist/checkout-routes.d.ts +1154 -0
  10. package/dist/checkout-routes.d.ts.map +1 -0
  11. package/dist/checkout-routes.js +116 -0
  12. package/dist/checkout-service-plan.d.ts +137 -0
  13. package/dist/checkout-service-plan.d.ts.map +1 -0
  14. package/dist/checkout-service-plan.js +119 -0
  15. package/dist/checkout-service.d.ts +9 -0
  16. package/dist/checkout-service.d.ts.map +1 -0
  17. package/dist/checkout-service.js +324 -0
  18. package/dist/checkout-validation.d.ts +1682 -0
  19. package/dist/checkout-validation.d.ts.map +1 -0
  20. package/dist/checkout-validation.js +228 -0
  21. package/dist/document-download.d.ts +3 -0
  22. package/dist/document-download.d.ts.map +1 -0
  23. package/dist/document-download.js +1 -0
  24. package/dist/fx-money.d.ts +17 -0
  25. package/dist/fx-money.d.ts.map +1 -0
  26. package/dist/fx-money.js +194 -0
  27. package/dist/index.d.ts +65 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +108 -0
  30. package/dist/invoice-fx.d.ts +134 -0
  31. package/dist/invoice-fx.d.ts.map +1 -0
  32. package/dist/invoice-fx.js +240 -0
  33. package/dist/invoice-number-errors.d.ts +2 -0
  34. package/dist/invoice-number-errors.d.ts.map +1 -0
  35. package/dist/invoice-number-errors.js +58 -0
  36. package/dist/markets-ref.d.ts +149 -0
  37. package/dist/markets-ref.d.ts.map +1 -0
  38. package/dist/markets-ref.js +17 -0
  39. package/dist/payment-link.d.ts +23 -0
  40. package/dist/payment-link.d.ts.map +1 -0
  41. package/dist/payment-link.js +30 -0
  42. package/dist/payment-policy.d.ts +113 -0
  43. package/dist/payment-policy.d.ts.map +1 -0
  44. package/dist/payment-policy.js +193 -0
  45. package/dist/route-runtime.d.ts +22 -0
  46. package/dist/route-runtime.d.ts.map +1 -0
  47. package/dist/route-runtime.js +18 -0
  48. package/dist/routes-action-ledger.d.ts +181 -0
  49. package/dist/routes-action-ledger.d.ts.map +1 -0
  50. package/dist/routes-action-ledger.js +142 -0
  51. package/dist/routes-booking-billing.d.ts +852 -0
  52. package/dist/routes-booking-billing.d.ts.map +1 -0
  53. package/dist/routes-booking-billing.js +223 -0
  54. package/dist/routes-booking-create.d.ts +3 -0
  55. package/dist/routes-booking-create.d.ts.map +1 -0
  56. package/dist/routes-booking-create.js +194 -0
  57. package/dist/routes-booking-reads.d.ts +46 -0
  58. package/dist/routes-booking-reads.d.ts.map +1 -0
  59. package/dist/routes-booking-reads.js +20 -0
  60. package/dist/routes-documents.d.ts +195 -0
  61. package/dist/routes-documents.d.ts.map +1 -0
  62. package/dist/routes-documents.js +93 -0
  63. package/dist/routes-invoice-core.d.ts +794 -0
  64. package/dist/routes-invoice-core.d.ts.map +1 -0
  65. package/dist/routes-invoice-core.js +238 -0
  66. package/dist/routes-invoice-documents.d.ts +401 -0
  67. package/dist/routes-invoice-documents.d.ts.map +1 -0
  68. package/dist/routes-invoice-documents.js +91 -0
  69. package/dist/routes-invoice-issue.d.ts +384 -0
  70. package/dist/routes-invoice-issue.d.ts.map +1 -0
  71. package/dist/routes-invoice-issue.js +208 -0
  72. package/dist/routes-payment-processing.d.ts +1193 -0
  73. package/dist/routes-payment-processing.d.ts.map +1 -0
  74. package/dist/routes-payment-processing.js +238 -0
  75. package/dist/routes-payments.d.ts +309 -0
  76. package/dist/routes-payments.d.ts.map +1 -0
  77. package/dist/routes-payments.js +94 -0
  78. package/dist/routes-public.d.ts +1948 -0
  79. package/dist/routes-public.d.ts.map +1 -0
  80. package/dist/routes-public.js +275 -0
  81. package/dist/routes-reference-data.d.ts +977 -0
  82. package/dist/routes-reference-data.d.ts.map +1 -0
  83. package/dist/routes-reference-data.js +191 -0
  84. package/dist/routes-reports.d.ts +344 -0
  85. package/dist/routes-reports.d.ts.map +1 -0
  86. package/dist/routes-reports.js +93 -0
  87. package/dist/routes-runtime.d.ts +71 -0
  88. package/dist/routes-runtime.d.ts.map +1 -0
  89. package/dist/routes-runtime.js +59 -0
  90. package/dist/routes-settlement.d.ts +67 -0
  91. package/dist/routes-settlement.d.ts.map +1 -0
  92. package/dist/routes-settlement.js +23 -0
  93. package/dist/routes-shared.d.ts +35 -0
  94. package/dist/routes-shared.d.ts.map +1 -0
  95. package/dist/routes-shared.js +10 -0
  96. package/dist/routes-supplier-invoices.d.ts +778 -0
  97. package/dist/routes-supplier-invoices.d.ts.map +1 -0
  98. package/dist/routes-supplier-invoices.js +159 -0
  99. package/dist/routes-vouchers.d.ts +228 -0
  100. package/dist/routes-vouchers.d.ts.map +1 -0
  101. package/dist/routes-vouchers.js +54 -0
  102. package/dist/routes.d.ts +5577 -0
  103. package/dist/routes.d.ts.map +1 -0
  104. package/dist/routes.js +44 -0
  105. package/dist/schema/booking-billing.d.ts +1006 -0
  106. package/dist/schema/booking-billing.d.ts.map +1 -0
  107. package/dist/schema/booking-billing.js +106 -0
  108. package/dist/schema/enums.d.ts +48 -0
  109. package/dist/schema/enums.d.ts.map +1 -0
  110. package/dist/schema/enums.js +237 -0
  111. package/dist/schema/invoice-documents.d.ts +1245 -0
  112. package/dist/schema/invoice-documents.d.ts.map +1 -0
  113. package/dist/schema/invoice-documents.js +140 -0
  114. package/dist/schema/payment-instruments.d.ts +418 -0
  115. package/dist/schema/payment-instruments.d.ts.map +1 -0
  116. package/dist/schema/payment-instruments.js +45 -0
  117. package/dist/schema/payment-processing.d.ts +563 -0
  118. package/dist/schema/payment-processing.d.ts.map +1 -0
  119. package/dist/schema/payment-processing.js +65 -0
  120. package/dist/schema/payment-sessions.d.ts +728 -0
  121. package/dist/schema/payment-sessions.d.ts.map +1 -0
  122. package/dist/schema/payment-sessions.js +79 -0
  123. package/dist/schema/receivables.d.ts +1474 -0
  124. package/dist/schema/receivables.d.ts.map +1 -0
  125. package/dist/schema/receivables.js +179 -0
  126. package/dist/schema/relations.d.ts +82 -0
  127. package/dist/schema/relations.d.ts.map +1 -0
  128. package/dist/schema/relations.js +144 -0
  129. package/dist/schema/supplier-invoices.d.ts +1619 -0
  130. package/dist/schema/supplier-invoices.d.ts.map +1 -0
  131. package/dist/schema/supplier-invoices.js +228 -0
  132. package/dist/schema/tax.d.ts +712 -0
  133. package/dist/schema/tax.d.ts.map +1 -0
  134. package/dist/schema/tax.js +98 -0
  135. package/dist/schema/vouchers.d.ts +444 -0
  136. package/dist/schema/vouchers.d.ts.map +1 -0
  137. package/dist/schema/vouchers.js +64 -0
  138. package/dist/schema.d.ts +12 -0
  139. package/dist/schema.d.ts.map +1 -0
  140. package/dist/schema.js +11 -0
  141. package/dist/service-accountant-shares.d.ts +106 -0
  142. package/dist/service-accountant-shares.d.ts.map +1 -0
  143. package/dist/service-accountant-shares.js +331 -0
  144. package/dist/service-action-ledger-accounting.d.ts +104 -0
  145. package/dist/service-action-ledger-accounting.d.ts.map +1 -0
  146. package/dist/service-action-ledger-accounting.js +386 -0
  147. package/dist/service-action-ledger-booking-payments.d.ts +48 -0
  148. package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
  149. package/dist/service-action-ledger-booking-payments.js +178 -0
  150. package/dist/service-action-ledger-bookings.d.ts +44 -0
  151. package/dist/service-action-ledger-bookings.d.ts.map +1 -0
  152. package/dist/service-action-ledger-bookings.js +81 -0
  153. package/dist/service-action-ledger-payment-authorizations.d.ts +48 -0
  154. package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
  155. package/dist/service-action-ledger-payment-authorizations.js +209 -0
  156. package/dist/service-action-ledger-payment-sessions.d.ts +83 -0
  157. package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
  158. package/dist/service-action-ledger-payment-sessions.js +294 -0
  159. package/dist/service-action-ledger-supplier-invoices.d.ts +27 -0
  160. package/dist/service-action-ledger-supplier-invoices.d.ts.map +1 -0
  161. package/dist/service-action-ledger-supplier-invoices.js +111 -0
  162. package/dist/service-action-ledger-supplier-payments.d.ts +21 -0
  163. package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
  164. package/dist/service-action-ledger-supplier-payments.js +97 -0
  165. package/dist/service-action-ledger.d.ts +7 -0
  166. package/dist/service-action-ledger.d.ts.map +1 -0
  167. package/dist/service-action-ledger.js +6 -0
  168. package/dist/service-aggregates.d.ts +96 -0
  169. package/dist/service-aggregates.d.ts.map +1 -0
  170. package/dist/service-aggregates.js +294 -0
  171. package/dist/service-booking-billing.d.ts +2322 -0
  172. package/dist/service-booking-billing.d.ts.map +1 -0
  173. package/dist/service-booking-billing.js +8 -0
  174. package/dist/service-booking-create.d.ts +410 -0
  175. package/dist/service-booking-create.d.ts.map +1 -0
  176. package/dist/service-booking-create.js +1256 -0
  177. package/dist/service-booking-guarantees.d.ts +725 -0
  178. package/dist/service-booking-guarantees.d.ts.map +1 -0
  179. package/dist/service-booking-guarantees.js +153 -0
  180. package/dist/service-booking-item-billing.d.ts +1062 -0
  181. package/dist/service-booking-item-billing.d.ts.map +1 -0
  182. package/dist/service-booking-item-billing.js +77 -0
  183. package/dist/service-booking-payment-schedules.d.ts +557 -0
  184. package/dist/service-booking-payment-schedules.d.ts.map +1 -0
  185. package/dist/service-booking-payment-schedules.js +372 -0
  186. package/dist/service-bookings-dual-create.d.ts +308 -0
  187. package/dist/service-bookings-dual-create.d.ts.map +1 -0
  188. package/dist/service-bookings-dual-create.js +131 -0
  189. package/dist/service-boundary-sql.d.ts +6 -0
  190. package/dist/service-boundary-sql.d.ts.map +1 -0
  191. package/dist/service-boundary-sql.js +15 -0
  192. package/dist/service-cost-categories.d.ts +26 -0
  193. package/dist/service-cost-categories.d.ts.map +1 -0
  194. package/dist/service-cost-categories.js +76 -0
  195. package/dist/service-documents.d.ts +80 -0
  196. package/dist/service-documents.d.ts.map +1 -0
  197. package/dist/service-documents.js +228 -0
  198. package/dist/service-invoice-artifacts.d.ts +246 -0
  199. package/dist/service-invoice-artifacts.d.ts.map +1 -0
  200. package/dist/service-invoice-artifacts.js +277 -0
  201. package/dist/service-invoice-core.d.ts +405 -0
  202. package/dist/service-invoice-core.d.ts.map +1 -0
  203. package/dist/service-invoice-core.js +290 -0
  204. package/dist/service-invoice-credit-notes.d.ts +973 -0
  205. package/dist/service-invoice-credit-notes.d.ts.map +1 -0
  206. package/dist/service-invoice-credit-notes.js +142 -0
  207. package/dist/service-invoice-from-booking.d.ts +41 -0
  208. package/dist/service-invoice-from-booking.d.ts.map +1 -0
  209. package/dist/service-invoice-from-booking.js +267 -0
  210. package/dist/service-invoice-line-items.d.ts +432 -0
  211. package/dist/service-invoice-line-items.d.ts.map +1 -0
  212. package/dist/service-invoice-line-items.js +102 -0
  213. package/dist/service-invoice-numbering.d.ts +227 -0
  214. package/dist/service-invoice-numbering.d.ts.map +1 -0
  215. package/dist/service-invoice-numbering.js +260 -0
  216. package/dist/service-invoice-payments.d.ts +673 -0
  217. package/dist/service-invoice-payments.d.ts.map +1 -0
  218. package/dist/service-invoice-payments.js +398 -0
  219. package/dist/service-invoices.d.ts +2501 -0
  220. package/dist/service-invoices.d.ts.map +1 -0
  221. package/dist/service-invoices.js +12 -0
  222. package/dist/service-issue.d.ts +207 -0
  223. package/dist/service-issue.d.ts.map +1 -0
  224. package/dist/service-issue.js +431 -0
  225. package/dist/service-payment-authorizations.d.ts +164 -0
  226. package/dist/service-payment-authorizations.d.ts.map +1 -0
  227. package/dist/service-payment-authorizations.js +227 -0
  228. package/dist/service-payment-instruments.d.ts +116 -0
  229. package/dist/service-payment-instruments.d.ts.map +1 -0
  230. package/dist/service-payment-instruments.js +99 -0
  231. package/dist/service-payment-processing.d.ts +676 -0
  232. package/dist/service-payment-processing.d.ts.map +1 -0
  233. package/dist/service-payment-processing.js +10 -0
  234. package/dist/service-payment-session-completion.d.ts +48 -0
  235. package/dist/service-payment-session-completion.d.ts.map +1 -0
  236. package/dist/service-payment-session-completion.js +238 -0
  237. package/dist/service-payment-sessions.d.ts +361 -0
  238. package/dist/service-payment-sessions.d.ts.map +1 -0
  239. package/dist/service-payment-sessions.js +280 -0
  240. package/dist/service-profitability.d.ts +114 -0
  241. package/dist/service-profitability.d.ts.map +1 -0
  242. package/dist/service-profitability.js +794 -0
  243. package/dist/service-public.d.ts +553 -0
  244. package/dist/service-public.d.ts.map +1 -0
  245. package/dist/service-public.js +583 -0
  246. package/dist/service-reference-data.d.ts +272 -0
  247. package/dist/service-reference-data.d.ts.map +1 -0
  248. package/dist/service-reference-data.js +280 -0
  249. package/dist/service-rendition-wait.d.ts +38 -0
  250. package/dist/service-rendition-wait.d.ts.map +1 -0
  251. package/dist/service-rendition-wait.js +67 -0
  252. package/dist/service-reports.d.ts +37 -0
  253. package/dist/service-reports.d.ts.map +1 -0
  254. package/dist/service-reports.js +62 -0
  255. package/dist/service-settlement.d.ts +46 -0
  256. package/dist/service-settlement.d.ts.map +1 -0
  257. package/dist/service-settlement.js +185 -0
  258. package/dist/service-shared.d.ts +541 -0
  259. package/dist/service-shared.d.ts.map +1 -0
  260. package/dist/service-shared.js +764 -0
  261. package/dist/service-supplier-invoices.d.ts +871 -0
  262. package/dist/service-supplier-invoices.d.ts.map +1 -0
  263. package/dist/service-supplier-invoices.js +744 -0
  264. package/dist/service-supplier-payments.d.ts +69 -0
  265. package/dist/service-supplier-payments.d.ts.map +1 -0
  266. package/dist/service-supplier-payments.js +136 -0
  267. package/dist/service-vouchers-migration.d.ts +44 -0
  268. package/dist/service-vouchers-migration.d.ts.map +1 -0
  269. package/dist/service-vouchers-migration.js +148 -0
  270. package/dist/service-vouchers.d.ts +157 -0
  271. package/dist/service-vouchers.d.ts.map +1 -0
  272. package/dist/service-vouchers.js +191 -0
  273. package/dist/service.d.ts +6490 -0
  274. package/dist/service.d.ts.map +1 -0
  275. package/dist/service.js +29 -0
  276. package/dist/validation-billing.d.ts +2 -0
  277. package/dist/validation-billing.d.ts.map +1 -0
  278. package/dist/validation-billing.js +1 -0
  279. package/dist/validation-payments.d.ts +2 -0
  280. package/dist/validation-payments.d.ts.map +1 -0
  281. package/dist/validation-payments.js +1 -0
  282. package/dist/validation-public.d.ts +2 -0
  283. package/dist/validation-public.d.ts.map +1 -0
  284. package/dist/validation-public.js +1 -0
  285. package/dist/validation-shared.d.ts +2 -0
  286. package/dist/validation-shared.d.ts.map +1 -0
  287. package/dist/validation-shared.js +1 -0
  288. package/dist/validation-vouchers.d.ts +2 -0
  289. package/dist/validation-vouchers.d.ts.map +1 -0
  290. package/dist/validation-vouchers.js +1 -0
  291. package/dist/validation.d.ts +2 -0
  292. package/dist/validation.d.ts.map +1 -0
  293. package/dist/validation.js +1 -0
  294. package/package.json +121 -0
@@ -0,0 +1,778 @@
1
+ import type { Env } from "./routes-shared.js";
2
+ export declare const supplierInvoiceRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/supplier-invoices": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ supplierId: string;
10
+ supplierInvoiceNo: string;
11
+ internalRef: string | null;
12
+ status: "void" | "paid" | "draft" | "partially_paid" | "received" | "approved" | "disputed";
13
+ currency: string;
14
+ baseCurrency: string | null;
15
+ fxRateSetId: string | null;
16
+ subtotalCents: number;
17
+ taxCents: number;
18
+ totalCents: number;
19
+ baseSubtotalCents: number | null;
20
+ baseTaxCents: number | null;
21
+ baseTotalCents: number | null;
22
+ paidCents: number;
23
+ balanceDueCents: number;
24
+ taxRegimeId: string | null;
25
+ issueDate: string;
26
+ dueDate: string | null;
27
+ receivedAt: string | null;
28
+ approvedAt: string | null;
29
+ approvedBy: string | null;
30
+ storageKey: string | null;
31
+ extractionId: string | null;
32
+ notes: string | null;
33
+ voidedAt: string | null;
34
+ voidReason: string | null;
35
+ createdAt: string;
36
+ updatedAt: string;
37
+ deletedAt: string | null;
38
+ }[];
39
+ total: number;
40
+ limit: number;
41
+ offset: number;
42
+ };
43
+ outputFormat: "json";
44
+ status: import("hono/utils/http-status").ContentfulStatusCode;
45
+ };
46
+ };
47
+ } & {
48
+ "/supplier-invoices": {
49
+ $post: {
50
+ input: {};
51
+ output: {
52
+ data: {
53
+ lines: {
54
+ id: string;
55
+ supplierInvoiceId: string;
56
+ description: string;
57
+ serviceType: "accommodation" | "other" | "transport" | "flight" | "guide" | "meal" | "experience" | "insurance";
58
+ costCategoryId: string | null;
59
+ supplierServiceId: string | null;
60
+ quantity: number;
61
+ unitAmountCents: number;
62
+ taxRateBps: number | null;
63
+ taxAmountCents: number;
64
+ totalAmountCents: number;
65
+ sortOrder: number;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ }[];
69
+ allocations: {
70
+ targetLabel: string | null;
71
+ id: string;
72
+ supplierInvoiceId: string;
73
+ supplierInvoiceLineId: string | null;
74
+ targetType: "booking" | "traveler" | "departure" | "product" | "unattributed";
75
+ departureId: string | null;
76
+ productId: string | null;
77
+ bookingId: string | null;
78
+ bookingItemId: string | null;
79
+ travelerId: string | null;
80
+ amountCents: number;
81
+ baseAmountCents: number | null;
82
+ splitMethod: "manual" | "per_pax" | "equal" | "weighted";
83
+ createdAt: string;
84
+ updatedAt: string;
85
+ }[];
86
+ id: string;
87
+ supplierId: string;
88
+ supplierInvoiceNo: string;
89
+ internalRef: string | null;
90
+ status: "void" | "paid" | "draft" | "partially_paid" | "received" | "approved" | "disputed";
91
+ currency: string;
92
+ baseCurrency: string | null;
93
+ fxRateSetId: string | null;
94
+ subtotalCents: number;
95
+ taxCents: number;
96
+ totalCents: number;
97
+ baseSubtotalCents: number | null;
98
+ baseTaxCents: number | null;
99
+ baseTotalCents: number | null;
100
+ paidCents: number;
101
+ balanceDueCents: number;
102
+ taxRegimeId: string | null;
103
+ issueDate: string;
104
+ dueDate: string | null;
105
+ receivedAt: string | null;
106
+ approvedAt: string | null;
107
+ approvedBy: string | null;
108
+ storageKey: string | null;
109
+ extractionId: string | null;
110
+ notes: string | null;
111
+ voidedAt: string | null;
112
+ voidReason: string | null;
113
+ createdAt: string;
114
+ updatedAt: string;
115
+ deletedAt: string | null;
116
+ } | null;
117
+ };
118
+ outputFormat: "json";
119
+ status: 201;
120
+ } | {
121
+ input: {};
122
+ output: {
123
+ error: string;
124
+ code: import("./service-supplier-invoices.js").SupplierInvoiceErrorCode;
125
+ };
126
+ outputFormat: "json";
127
+ status: 404 | 422;
128
+ };
129
+ };
130
+ } & {
131
+ "/supplier-invoices/:id": {
132
+ $get: {
133
+ input: {
134
+ param: {
135
+ id: string;
136
+ };
137
+ };
138
+ output: {
139
+ error: string;
140
+ };
141
+ outputFormat: "json";
142
+ status: 404;
143
+ } | {
144
+ input: {
145
+ param: {
146
+ id: string;
147
+ };
148
+ };
149
+ output: {
150
+ data: {
151
+ lines: {
152
+ id: string;
153
+ supplierInvoiceId: string;
154
+ description: string;
155
+ serviceType: "accommodation" | "other" | "transport" | "flight" | "guide" | "meal" | "experience" | "insurance";
156
+ costCategoryId: string | null;
157
+ supplierServiceId: string | null;
158
+ quantity: number;
159
+ unitAmountCents: number;
160
+ taxRateBps: number | null;
161
+ taxAmountCents: number;
162
+ totalAmountCents: number;
163
+ sortOrder: number;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ }[];
167
+ allocations: {
168
+ targetLabel: string | null;
169
+ id: string;
170
+ supplierInvoiceId: string;
171
+ supplierInvoiceLineId: string | null;
172
+ targetType: "booking" | "traveler" | "departure" | "product" | "unattributed";
173
+ departureId: string | null;
174
+ productId: string | null;
175
+ bookingId: string | null;
176
+ bookingItemId: string | null;
177
+ travelerId: string | null;
178
+ amountCents: number;
179
+ baseAmountCents: number | null;
180
+ splitMethod: "manual" | "per_pax" | "equal" | "weighted";
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ }[];
184
+ id: string;
185
+ supplierId: string;
186
+ supplierInvoiceNo: string;
187
+ internalRef: string | null;
188
+ status: "void" | "paid" | "draft" | "partially_paid" | "received" | "approved" | "disputed";
189
+ currency: string;
190
+ baseCurrency: string | null;
191
+ fxRateSetId: string | null;
192
+ subtotalCents: number;
193
+ taxCents: number;
194
+ totalCents: number;
195
+ baseSubtotalCents: number | null;
196
+ baseTaxCents: number | null;
197
+ baseTotalCents: number | null;
198
+ paidCents: number;
199
+ balanceDueCents: number;
200
+ taxRegimeId: string | null;
201
+ issueDate: string;
202
+ dueDate: string | null;
203
+ receivedAt: string | null;
204
+ approvedAt: string | null;
205
+ approvedBy: string | null;
206
+ storageKey: string | null;
207
+ extractionId: string | null;
208
+ notes: string | null;
209
+ voidedAt: string | null;
210
+ voidReason: string | null;
211
+ createdAt: string;
212
+ updatedAt: string;
213
+ deletedAt: string | null;
214
+ };
215
+ };
216
+ outputFormat: "json";
217
+ status: import("hono/utils/http-status").ContentfulStatusCode;
218
+ };
219
+ };
220
+ } & {
221
+ "/supplier-invoices/:id": {
222
+ $patch: {
223
+ input: {
224
+ param: {
225
+ id: string;
226
+ };
227
+ };
228
+ output: {
229
+ error: string;
230
+ };
231
+ outputFormat: "json";
232
+ status: 404;
233
+ } | {
234
+ input: {
235
+ param: {
236
+ id: string;
237
+ };
238
+ };
239
+ output: {
240
+ data: {
241
+ lines: {
242
+ id: string;
243
+ supplierInvoiceId: string;
244
+ description: string;
245
+ serviceType: "accommodation" | "other" | "transport" | "flight" | "guide" | "meal" | "experience" | "insurance";
246
+ costCategoryId: string | null;
247
+ supplierServiceId: string | null;
248
+ quantity: number;
249
+ unitAmountCents: number;
250
+ taxRateBps: number | null;
251
+ taxAmountCents: number;
252
+ totalAmountCents: number;
253
+ sortOrder: number;
254
+ createdAt: string;
255
+ updatedAt: string;
256
+ }[];
257
+ allocations: {
258
+ targetLabel: string | null;
259
+ id: string;
260
+ supplierInvoiceId: string;
261
+ supplierInvoiceLineId: string | null;
262
+ targetType: "booking" | "traveler" | "departure" | "product" | "unattributed";
263
+ departureId: string | null;
264
+ productId: string | null;
265
+ bookingId: string | null;
266
+ bookingItemId: string | null;
267
+ travelerId: string | null;
268
+ amountCents: number;
269
+ baseAmountCents: number | null;
270
+ splitMethod: "manual" | "per_pax" | "equal" | "weighted";
271
+ createdAt: string;
272
+ updatedAt: string;
273
+ }[];
274
+ id: string;
275
+ supplierId: string;
276
+ supplierInvoiceNo: string;
277
+ internalRef: string | null;
278
+ status: "void" | "paid" | "draft" | "partially_paid" | "received" | "approved" | "disputed";
279
+ currency: string;
280
+ baseCurrency: string | null;
281
+ fxRateSetId: string | null;
282
+ subtotalCents: number;
283
+ taxCents: number;
284
+ totalCents: number;
285
+ baseSubtotalCents: number | null;
286
+ baseTaxCents: number | null;
287
+ baseTotalCents: number | null;
288
+ paidCents: number;
289
+ balanceDueCents: number;
290
+ taxRegimeId: string | null;
291
+ issueDate: string;
292
+ dueDate: string | null;
293
+ receivedAt: string | null;
294
+ approvedAt: string | null;
295
+ approvedBy: string | null;
296
+ storageKey: string | null;
297
+ extractionId: string | null;
298
+ notes: string | null;
299
+ voidedAt: string | null;
300
+ voidReason: string | null;
301
+ createdAt: string;
302
+ updatedAt: string;
303
+ deletedAt: string | null;
304
+ };
305
+ };
306
+ outputFormat: "json";
307
+ status: import("hono/utils/http-status").ContentfulStatusCode;
308
+ };
309
+ };
310
+ } & {
311
+ "/supplier-invoices/:id": {
312
+ $delete: {
313
+ input: {
314
+ param: {
315
+ id: string;
316
+ };
317
+ };
318
+ output: {
319
+ error: string;
320
+ };
321
+ outputFormat: "json";
322
+ status: 404;
323
+ } | {
324
+ input: {
325
+ param: {
326
+ id: string;
327
+ };
328
+ };
329
+ output: {
330
+ data: {
331
+ id: string;
332
+ };
333
+ };
334
+ outputFormat: "json";
335
+ status: import("hono/utils/http-status").ContentfulStatusCode;
336
+ };
337
+ };
338
+ } & {
339
+ "/supplier-invoices/:id/lines": {
340
+ $put: {
341
+ input: {
342
+ param: {
343
+ id: string;
344
+ };
345
+ };
346
+ output: {
347
+ error: string;
348
+ code: import("./service-supplier-invoices.js").SupplierInvoiceErrorCode;
349
+ };
350
+ outputFormat: "json";
351
+ status: 404 | 422;
352
+ } | {
353
+ input: {
354
+ param: {
355
+ id: string;
356
+ };
357
+ };
358
+ output: {
359
+ error: string;
360
+ };
361
+ outputFormat: "json";
362
+ status: 404;
363
+ } | {
364
+ input: {
365
+ param: {
366
+ id: string;
367
+ };
368
+ };
369
+ output: {
370
+ data: {
371
+ lines: {
372
+ id: string;
373
+ supplierInvoiceId: string;
374
+ description: string;
375
+ serviceType: "accommodation" | "other" | "transport" | "flight" | "guide" | "meal" | "experience" | "insurance";
376
+ costCategoryId: string | null;
377
+ supplierServiceId: string | null;
378
+ quantity: number;
379
+ unitAmountCents: number;
380
+ taxRateBps: number | null;
381
+ taxAmountCents: number;
382
+ totalAmountCents: number;
383
+ sortOrder: number;
384
+ createdAt: string;
385
+ updatedAt: string;
386
+ }[];
387
+ allocations: {
388
+ targetLabel: string | null;
389
+ id: string;
390
+ supplierInvoiceId: string;
391
+ supplierInvoiceLineId: string | null;
392
+ targetType: "booking" | "traveler" | "departure" | "product" | "unattributed";
393
+ departureId: string | null;
394
+ productId: string | null;
395
+ bookingId: string | null;
396
+ bookingItemId: string | null;
397
+ travelerId: string | null;
398
+ amountCents: number;
399
+ baseAmountCents: number | null;
400
+ splitMethod: "manual" | "per_pax" | "equal" | "weighted";
401
+ createdAt: string;
402
+ updatedAt: string;
403
+ }[];
404
+ id: string;
405
+ supplierId: string;
406
+ supplierInvoiceNo: string;
407
+ internalRef: string | null;
408
+ status: "void" | "paid" | "draft" | "partially_paid" | "received" | "approved" | "disputed";
409
+ currency: string;
410
+ baseCurrency: string | null;
411
+ fxRateSetId: string | null;
412
+ subtotalCents: number;
413
+ taxCents: number;
414
+ totalCents: number;
415
+ baseSubtotalCents: number | null;
416
+ baseTaxCents: number | null;
417
+ baseTotalCents: number | null;
418
+ paidCents: number;
419
+ balanceDueCents: number;
420
+ taxRegimeId: string | null;
421
+ issueDate: string;
422
+ dueDate: string | null;
423
+ receivedAt: string | null;
424
+ approvedAt: string | null;
425
+ approvedBy: string | null;
426
+ storageKey: string | null;
427
+ extractionId: string | null;
428
+ notes: string | null;
429
+ voidedAt: string | null;
430
+ voidReason: string | null;
431
+ createdAt: string;
432
+ updatedAt: string;
433
+ deletedAt: string | null;
434
+ };
435
+ };
436
+ outputFormat: "json";
437
+ status: import("hono/utils/http-status").ContentfulStatusCode;
438
+ };
439
+ };
440
+ } & {
441
+ "/supplier-invoices/:id/allocations": {
442
+ $put: {
443
+ input: {
444
+ param: {
445
+ id: string;
446
+ };
447
+ };
448
+ output: {
449
+ error: string;
450
+ code: import("./service-supplier-invoices.js").SupplierInvoiceErrorCode;
451
+ };
452
+ outputFormat: "json";
453
+ status: 404 | 422;
454
+ } | {
455
+ input: {
456
+ param: {
457
+ id: string;
458
+ };
459
+ };
460
+ output: {
461
+ error: string;
462
+ };
463
+ outputFormat: "json";
464
+ status: 404;
465
+ } | {
466
+ input: {
467
+ param: {
468
+ id: string;
469
+ };
470
+ };
471
+ output: {
472
+ data: {
473
+ lines: {
474
+ id: string;
475
+ supplierInvoiceId: string;
476
+ description: string;
477
+ serviceType: "accommodation" | "other" | "transport" | "flight" | "guide" | "meal" | "experience" | "insurance";
478
+ costCategoryId: string | null;
479
+ supplierServiceId: string | null;
480
+ quantity: number;
481
+ unitAmountCents: number;
482
+ taxRateBps: number | null;
483
+ taxAmountCents: number;
484
+ totalAmountCents: number;
485
+ sortOrder: number;
486
+ createdAt: string;
487
+ updatedAt: string;
488
+ }[];
489
+ allocations: {
490
+ targetLabel: string | null;
491
+ id: string;
492
+ supplierInvoiceId: string;
493
+ supplierInvoiceLineId: string | null;
494
+ targetType: "booking" | "traveler" | "departure" | "product" | "unattributed";
495
+ departureId: string | null;
496
+ productId: string | null;
497
+ bookingId: string | null;
498
+ bookingItemId: string | null;
499
+ travelerId: string | null;
500
+ amountCents: number;
501
+ baseAmountCents: number | null;
502
+ splitMethod: "manual" | "per_pax" | "equal" | "weighted";
503
+ createdAt: string;
504
+ updatedAt: string;
505
+ }[];
506
+ id: string;
507
+ supplierId: string;
508
+ supplierInvoiceNo: string;
509
+ internalRef: string | null;
510
+ status: "void" | "paid" | "draft" | "partially_paid" | "received" | "approved" | "disputed";
511
+ currency: string;
512
+ baseCurrency: string | null;
513
+ fxRateSetId: string | null;
514
+ subtotalCents: number;
515
+ taxCents: number;
516
+ totalCents: number;
517
+ baseSubtotalCents: number | null;
518
+ baseTaxCents: number | null;
519
+ baseTotalCents: number | null;
520
+ paidCents: number;
521
+ balanceDueCents: number;
522
+ taxRegimeId: string | null;
523
+ issueDate: string;
524
+ dueDate: string | null;
525
+ receivedAt: string | null;
526
+ approvedAt: string | null;
527
+ approvedBy: string | null;
528
+ storageKey: string | null;
529
+ extractionId: string | null;
530
+ notes: string | null;
531
+ voidedAt: string | null;
532
+ voidReason: string | null;
533
+ createdAt: string;
534
+ updatedAt: string;
535
+ deletedAt: string | null;
536
+ };
537
+ };
538
+ outputFormat: "json";
539
+ status: import("hono/utils/http-status").ContentfulStatusCode;
540
+ };
541
+ };
542
+ } & {
543
+ "/supplier-invoices/:id/document/download": {
544
+ $get: {
545
+ input: {
546
+ param: {
547
+ id: string;
548
+ };
549
+ };
550
+ output: undefined;
551
+ outputFormat: "redirect";
552
+ status: 302;
553
+ } | {
554
+ input: {
555
+ param: {
556
+ id: string;
557
+ };
558
+ };
559
+ output: {
560
+ error: string;
561
+ };
562
+ outputFormat: "json";
563
+ status: 404;
564
+ } | {
565
+ input: {
566
+ param: {
567
+ id: string;
568
+ };
569
+ };
570
+ output: {
571
+ error: string;
572
+ };
573
+ outputFormat: "json";
574
+ status: 501;
575
+ };
576
+ };
577
+ } & {
578
+ "/supplier-invoices/:id/payments": {
579
+ $get: {
580
+ input: {
581
+ param: {
582
+ id: string;
583
+ };
584
+ };
585
+ output: {
586
+ data: {
587
+ id: string;
588
+ bookingId: string | null;
589
+ supplierId: string | null;
590
+ bookingSupplierStatusId: string | null;
591
+ supplierInvoiceId: string | null;
592
+ amountCents: number;
593
+ currency: string;
594
+ baseCurrency: string | null;
595
+ baseAmountCents: number | null;
596
+ fxRateSetId: string | null;
597
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill";
598
+ paymentInstrumentId: string | null;
599
+ status: "failed" | "pending" | "completed" | "refunded";
600
+ referenceNumber: string | null;
601
+ paymentDate: string;
602
+ notes: string | null;
603
+ createdAt: string;
604
+ updatedAt: string;
605
+ }[];
606
+ total: number;
607
+ limit: number;
608
+ offset: number;
609
+ };
610
+ outputFormat: "json";
611
+ status: import("hono/utils/http-status").ContentfulStatusCode;
612
+ };
613
+ };
614
+ } & {
615
+ "/supplier-invoices/:id/payments": {
616
+ $post: {
617
+ input: {
618
+ param: {
619
+ id: string;
620
+ };
621
+ };
622
+ output: {
623
+ data: {
624
+ currency: string;
625
+ id: string;
626
+ createdAt: string;
627
+ updatedAt: string;
628
+ status: "failed" | "pending" | "completed" | "refunded";
629
+ bookingId: string | null;
630
+ amountCents: number;
631
+ notes: string | null;
632
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill";
633
+ baseCurrency: string | null;
634
+ fxRateSetId: string | null;
635
+ supplierId: string | null;
636
+ paymentInstrumentId: string | null;
637
+ referenceNumber: string | null;
638
+ baseAmountCents: number | null;
639
+ paymentDate: string;
640
+ supplierInvoiceId: string | null;
641
+ bookingSupplierStatusId: string | null;
642
+ } | null;
643
+ };
644
+ outputFormat: "json";
645
+ status: 201;
646
+ };
647
+ };
648
+ } & {
649
+ "/supplier-invoices/:id/attachments": {
650
+ $get: {
651
+ input: {
652
+ param: {
653
+ id: string;
654
+ };
655
+ };
656
+ output: {
657
+ data: {
658
+ id: string;
659
+ supplierInvoiceId: string;
660
+ kind: string;
661
+ name: string;
662
+ mimeType: string | null;
663
+ fileSize: number | null;
664
+ storageKey: string | null;
665
+ checksum: string | null;
666
+ metadata: import("hono/utils/types").JSONValue;
667
+ createdAt: string;
668
+ }[];
669
+ };
670
+ outputFormat: "json";
671
+ status: import("hono/utils/http-status").ContentfulStatusCode;
672
+ };
673
+ };
674
+ } & {
675
+ "/supplier-invoices/:id/attachments": {
676
+ $post: {
677
+ input: {
678
+ param: {
679
+ id: string;
680
+ };
681
+ };
682
+ output: {
683
+ error: string;
684
+ };
685
+ outputFormat: "json";
686
+ status: 404;
687
+ } | {
688
+ input: {
689
+ param: {
690
+ id: string;
691
+ };
692
+ };
693
+ output: {
694
+ data: {
695
+ id: string;
696
+ name: string;
697
+ createdAt: string;
698
+ metadata: import("hono/utils/types").JSONValue;
699
+ supplierInvoiceId: string;
700
+ kind: string;
701
+ storageKey: string | null;
702
+ fileSize: number | null;
703
+ checksum: string | null;
704
+ mimeType: string | null;
705
+ };
706
+ };
707
+ outputFormat: "json";
708
+ status: 201;
709
+ };
710
+ };
711
+ } & {
712
+ "/supplier-invoices/:id/attachments/:attachmentId": {
713
+ $delete: {
714
+ input: {
715
+ param: {
716
+ id: string;
717
+ } & {
718
+ attachmentId: string;
719
+ };
720
+ };
721
+ output: {
722
+ error: string;
723
+ };
724
+ outputFormat: "json";
725
+ status: 404;
726
+ } | {
727
+ input: {
728
+ param: {
729
+ id: string;
730
+ } & {
731
+ attachmentId: string;
732
+ };
733
+ };
734
+ output: {
735
+ success: true;
736
+ };
737
+ outputFormat: "json";
738
+ status: import("hono/utils/http-status").ContentfulStatusCode;
739
+ };
740
+ };
741
+ } & {
742
+ "/supplier-invoice-attachments/:id/download": {
743
+ $get: {
744
+ input: {
745
+ param: {
746
+ id: string;
747
+ };
748
+ };
749
+ output: undefined;
750
+ outputFormat: "redirect";
751
+ status: 302;
752
+ } | {
753
+ input: {
754
+ param: {
755
+ id: string;
756
+ };
757
+ };
758
+ output: {
759
+ error: string;
760
+ };
761
+ outputFormat: "json";
762
+ status: 404;
763
+ } | {
764
+ input: {
765
+ param: {
766
+ id: string;
767
+ };
768
+ };
769
+ output: {
770
+ error: string;
771
+ };
772
+ outputFormat: "json";
773
+ status: 501;
774
+ };
775
+ };
776
+ }, "/", "/supplier-invoice-attachments/:id/download">;
777
+ export type SupplierInvoiceRoutes = typeof supplierInvoiceRoutes;
778
+ //# sourceMappingURL=routes-supplier-invoices.d.ts.map