@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,794 @@
1
+ import type { Env } from "./routes-shared.js";
2
+ export declare const financeInvoiceCoreRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/invoices/:id": {
4
+ $get: {
5
+ input: {
6
+ param: {
7
+ id: string;
8
+ };
9
+ };
10
+ output: {
11
+ error: string;
12
+ };
13
+ outputFormat: "json";
14
+ status: 404;
15
+ } | {
16
+ input: {
17
+ param: {
18
+ id: string;
19
+ };
20
+ };
21
+ output: {
22
+ data: {
23
+ convertedToInvoiceId: string | null;
24
+ convertedToInvoiceNumber: string | null;
25
+ id: string;
26
+ invoiceNumber: string;
27
+ invoiceType: "invoice" | "proforma" | "credit_note";
28
+ convertedFromInvoiceId: string | null;
29
+ seriesId: string | null;
30
+ sequence: number | null;
31
+ templateId: string | null;
32
+ taxRegimeId: string | null;
33
+ language: string | null;
34
+ bookingId: string;
35
+ personId: string | null;
36
+ organizationId: string | null;
37
+ status: "void" | "paid" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "overdue";
38
+ currency: string;
39
+ baseCurrency: string | null;
40
+ fxRateSetId: string | null;
41
+ subtotalCents: number;
42
+ baseSubtotalCents: number | null;
43
+ taxCents: number;
44
+ baseTaxCents: number | null;
45
+ totalCents: number;
46
+ baseTotalCents: number | null;
47
+ paidCents: number;
48
+ basePaidCents: number | null;
49
+ balanceDueCents: number;
50
+ baseBalanceDueCents: number | null;
51
+ commissionPercent: number | null;
52
+ commissionAmountCents: number | null;
53
+ issueDate: string;
54
+ dueDate: string;
55
+ notes: string | null;
56
+ voidedAt: string | null;
57
+ voidReason: string | null;
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ };
61
+ };
62
+ outputFormat: "json";
63
+ status: import("hono/utils/http-status").ContentfulStatusCode;
64
+ };
65
+ };
66
+ } & {
67
+ "/invoices/:id": {
68
+ $patch: {
69
+ input: {
70
+ param: {
71
+ id: string;
72
+ };
73
+ };
74
+ output: {
75
+ error: string;
76
+ };
77
+ outputFormat: "json";
78
+ status: 404;
79
+ } | {
80
+ input: {
81
+ param: {
82
+ id: string;
83
+ };
84
+ };
85
+ output: {
86
+ data: {
87
+ id: string;
88
+ invoiceNumber: string;
89
+ invoiceType: "invoice" | "proforma" | "credit_note";
90
+ convertedFromInvoiceId: string | null;
91
+ seriesId: string | null;
92
+ sequence: number | null;
93
+ templateId: string | null;
94
+ taxRegimeId: string | null;
95
+ language: string | null;
96
+ bookingId: string;
97
+ personId: string | null;
98
+ organizationId: string | null;
99
+ status: "void" | "paid" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "overdue";
100
+ currency: string;
101
+ baseCurrency: string | null;
102
+ fxRateSetId: string | null;
103
+ subtotalCents: number;
104
+ baseSubtotalCents: number | null;
105
+ taxCents: number;
106
+ baseTaxCents: number | null;
107
+ totalCents: number;
108
+ baseTotalCents: number | null;
109
+ paidCents: number;
110
+ basePaidCents: number | null;
111
+ balanceDueCents: number;
112
+ baseBalanceDueCents: number | null;
113
+ commissionPercent: number | null;
114
+ commissionAmountCents: number | null;
115
+ issueDate: string;
116
+ dueDate: string;
117
+ notes: string | null;
118
+ voidedAt: string | null;
119
+ voidReason: string | null;
120
+ createdAt: string;
121
+ updatedAt: string;
122
+ };
123
+ };
124
+ outputFormat: "json";
125
+ status: import("hono/utils/http-status").ContentfulStatusCode;
126
+ };
127
+ };
128
+ } & {
129
+ "/invoices/:id": {
130
+ $delete: {
131
+ input: {
132
+ param: {
133
+ id: string;
134
+ };
135
+ };
136
+ output: {
137
+ error: string;
138
+ };
139
+ outputFormat: "json";
140
+ status: 404;
141
+ } | {
142
+ input: {
143
+ param: {
144
+ id: string;
145
+ };
146
+ };
147
+ output: {
148
+ error: string;
149
+ };
150
+ outputFormat: "json";
151
+ status: 400;
152
+ } | {
153
+ input: {
154
+ param: {
155
+ id: string;
156
+ };
157
+ };
158
+ output: {
159
+ success: true;
160
+ };
161
+ outputFormat: "json";
162
+ status: 200;
163
+ };
164
+ };
165
+ } & {
166
+ "/invoices/:id/void": {
167
+ $post: {
168
+ input: {
169
+ param: {
170
+ id: string;
171
+ };
172
+ };
173
+ output: {
174
+ error: string;
175
+ };
176
+ outputFormat: "json";
177
+ status: 404;
178
+ } | {
179
+ input: {
180
+ param: {
181
+ id: string;
182
+ };
183
+ };
184
+ output: {
185
+ error: string;
186
+ };
187
+ outputFormat: "json";
188
+ status: 409;
189
+ } | {
190
+ input: {
191
+ param: {
192
+ id: string;
193
+ };
194
+ };
195
+ output: {
196
+ error: string;
197
+ };
198
+ outputFormat: "json";
199
+ status: 400;
200
+ } | {
201
+ input: {
202
+ param: {
203
+ id: string;
204
+ };
205
+ };
206
+ output: {
207
+ data: {
208
+ id: string;
209
+ invoiceNumber: string;
210
+ invoiceType: "invoice" | "proforma" | "credit_note";
211
+ convertedFromInvoiceId: string | null;
212
+ seriesId: string | null;
213
+ sequence: number | null;
214
+ templateId: string | null;
215
+ taxRegimeId: string | null;
216
+ language: string | null;
217
+ bookingId: string;
218
+ personId: string | null;
219
+ organizationId: string | null;
220
+ status: "void" | "paid" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "overdue";
221
+ currency: string;
222
+ baseCurrency: string | null;
223
+ fxRateSetId: string | null;
224
+ subtotalCents: number;
225
+ baseSubtotalCents: number | null;
226
+ taxCents: number;
227
+ baseTaxCents: number | null;
228
+ totalCents: number;
229
+ baseTotalCents: number | null;
230
+ paidCents: number;
231
+ basePaidCents: number | null;
232
+ balanceDueCents: number;
233
+ baseBalanceDueCents: number | null;
234
+ commissionPercent: number | null;
235
+ commissionAmountCents: number | null;
236
+ issueDate: string;
237
+ dueDate: string;
238
+ notes: string | null;
239
+ voidedAt: string | null;
240
+ voidReason: string | null;
241
+ createdAt: string;
242
+ updatedAt: string;
243
+ };
244
+ };
245
+ outputFormat: "json";
246
+ status: 200;
247
+ };
248
+ };
249
+ } & {
250
+ "/invoices/:id/payment-session": {
251
+ $post: {
252
+ input: {
253
+ param: {
254
+ id: string;
255
+ };
256
+ };
257
+ output: {
258
+ error: string;
259
+ };
260
+ outputFormat: "json";
261
+ status: 404;
262
+ } | {
263
+ input: {
264
+ param: {
265
+ id: string;
266
+ };
267
+ };
268
+ output: {
269
+ data: {
270
+ currency: string;
271
+ id: string;
272
+ createdAt: string;
273
+ updatedAt: string;
274
+ metadata: {
275
+ [x: string]: import("hono/utils/types").JSONValue;
276
+ } | null;
277
+ idempotencyKey: string | null;
278
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
279
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
280
+ targetId: string | null;
281
+ bookingId: string | null;
282
+ provider: string | null;
283
+ invoiceId: string | null;
284
+ amountCents: number;
285
+ notes: string | null;
286
+ bookingPaymentScheduleId: string | null;
287
+ bookingGuaranteeId: string | null;
288
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
289
+ payerPersonId: string | null;
290
+ payerOrganizationId: string | null;
291
+ payerEmail: string | null;
292
+ payerName: string | null;
293
+ externalReference: string | null;
294
+ clientReference: string | null;
295
+ returnUrl: string | null;
296
+ cancelUrl: string | null;
297
+ callbackUrl: string | null;
298
+ expiresAt: string | null;
299
+ providerPayload: {
300
+ [x: string]: import("hono/utils/types").JSONValue;
301
+ } | null;
302
+ orderId: string | null;
303
+ paymentInstrumentId: string | null;
304
+ paymentAuthorizationId: string | null;
305
+ paymentCaptureId: string | null;
306
+ paymentId: string | null;
307
+ providerSessionId: string | null;
308
+ providerPaymentId: string | null;
309
+ redirectUrl: string | null;
310
+ completedAt: string | null;
311
+ failedAt: string | null;
312
+ cancelledAt: string | null;
313
+ expiredAt: string | null;
314
+ failureCode: string | null;
315
+ failureMessage: string | null;
316
+ };
317
+ };
318
+ outputFormat: "json";
319
+ status: 201;
320
+ } | {
321
+ input: {
322
+ param: {
323
+ id: string;
324
+ };
325
+ };
326
+ output: {
327
+ error: string;
328
+ };
329
+ outputFormat: "json";
330
+ status: 409;
331
+ };
332
+ };
333
+ } & {
334
+ "/invoices/:id/line-items": {
335
+ $get: {
336
+ input: {
337
+ param: {
338
+ id: string;
339
+ };
340
+ };
341
+ output: {
342
+ data: {
343
+ id: string;
344
+ invoiceId: string;
345
+ bookingItemId: string | null;
346
+ bookingPaymentScheduleId: string | null;
347
+ description: string;
348
+ quantity: number;
349
+ unitPriceCents: number;
350
+ totalCents: number;
351
+ taxRate: number | null;
352
+ sortOrder: number;
353
+ createdAt: string;
354
+ }[];
355
+ };
356
+ outputFormat: "json";
357
+ status: import("hono/utils/http-status").ContentfulStatusCode;
358
+ };
359
+ };
360
+ } & {
361
+ "/invoices/:id/line-items": {
362
+ $post: {
363
+ input: {
364
+ param: {
365
+ id: string;
366
+ };
367
+ };
368
+ output: {
369
+ error: string;
370
+ };
371
+ outputFormat: "json";
372
+ status: 404;
373
+ } | {
374
+ input: {
375
+ param: {
376
+ id: string;
377
+ };
378
+ };
379
+ output: {
380
+ data: {
381
+ id: string;
382
+ description: string;
383
+ createdAt: string;
384
+ totalCents: number;
385
+ taxRate: number | null;
386
+ invoiceId: string;
387
+ bookingPaymentScheduleId: string | null;
388
+ bookingItemId: string | null;
389
+ quantity: number;
390
+ sortOrder: number;
391
+ unitPriceCents: number;
392
+ };
393
+ };
394
+ outputFormat: "json";
395
+ status: 201;
396
+ };
397
+ };
398
+ } & {
399
+ "/invoices/:id/line-items/:lineId": {
400
+ $patch: {
401
+ input: {
402
+ param: {
403
+ id: string;
404
+ } & {
405
+ lineId: string;
406
+ };
407
+ };
408
+ output: {
409
+ error: string;
410
+ };
411
+ outputFormat: "json";
412
+ status: 404;
413
+ } | {
414
+ input: {
415
+ param: {
416
+ id: string;
417
+ } & {
418
+ lineId: string;
419
+ };
420
+ };
421
+ output: {
422
+ data: {
423
+ id: string;
424
+ invoiceId: string;
425
+ bookingItemId: string | null;
426
+ bookingPaymentScheduleId: string | null;
427
+ description: string;
428
+ quantity: number;
429
+ unitPriceCents: number;
430
+ totalCents: number;
431
+ taxRate: number | null;
432
+ sortOrder: number;
433
+ createdAt: string;
434
+ };
435
+ };
436
+ outputFormat: "json";
437
+ status: import("hono/utils/http-status").ContentfulStatusCode;
438
+ };
439
+ };
440
+ } & {
441
+ "/invoices/:id/line-items/:lineId": {
442
+ $delete: {
443
+ input: {
444
+ param: {
445
+ id: string;
446
+ } & {
447
+ lineId: string;
448
+ };
449
+ };
450
+ output: {
451
+ error: string;
452
+ };
453
+ outputFormat: "json";
454
+ status: 404;
455
+ } | {
456
+ input: {
457
+ param: {
458
+ id: string;
459
+ } & {
460
+ lineId: string;
461
+ };
462
+ };
463
+ output: {
464
+ success: true;
465
+ };
466
+ outputFormat: "json";
467
+ status: 200;
468
+ };
469
+ };
470
+ } & {
471
+ "/invoices/:id/payments": {
472
+ $get: {
473
+ input: {
474
+ param: {
475
+ id: string;
476
+ };
477
+ };
478
+ output: {
479
+ data: {
480
+ id: string;
481
+ invoiceId: string;
482
+ amountCents: number;
483
+ currency: string;
484
+ baseCurrency: string | null;
485
+ baseAmountCents: number | null;
486
+ fxRateSetId: string | null;
487
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill";
488
+ paymentInstrumentId: string | null;
489
+ paymentAuthorizationId: string | null;
490
+ paymentCaptureId: string | null;
491
+ status: "failed" | "pending" | "completed" | "refunded";
492
+ referenceNumber: string | null;
493
+ paymentDate: string;
494
+ notes: string | null;
495
+ createdAt: string;
496
+ updatedAt: string;
497
+ }[];
498
+ };
499
+ outputFormat: "json";
500
+ status: import("hono/utils/http-status").ContentfulStatusCode;
501
+ };
502
+ };
503
+ } & {
504
+ "/invoices/:id/payments": {
505
+ $post: {
506
+ input: {
507
+ param: {
508
+ id: string;
509
+ };
510
+ };
511
+ output: {
512
+ error: string;
513
+ };
514
+ outputFormat: "json";
515
+ status: 404;
516
+ } | {
517
+ input: {
518
+ param: {
519
+ id: string;
520
+ };
521
+ };
522
+ output: {
523
+ data: {
524
+ currency: string;
525
+ id: string;
526
+ createdAt: string;
527
+ updatedAt: string;
528
+ status: "failed" | "pending" | "completed" | "refunded";
529
+ invoiceId: string;
530
+ amountCents: number;
531
+ notes: string | null;
532
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill";
533
+ baseCurrency: string | null;
534
+ fxRateSetId: string | null;
535
+ paymentInstrumentId: string | null;
536
+ paymentAuthorizationId: string | null;
537
+ referenceNumber: string | null;
538
+ paymentCaptureId: string | null;
539
+ baseAmountCents: number | null;
540
+ paymentDate: string;
541
+ };
542
+ };
543
+ outputFormat: "json";
544
+ status: 201;
545
+ } | {
546
+ input: {
547
+ param: {
548
+ id: string;
549
+ };
550
+ };
551
+ output: {
552
+ error: string;
553
+ code: string;
554
+ details: {
555
+ [x: string]: import("hono/utils/types").JSONValue;
556
+ } | undefined;
557
+ };
558
+ outputFormat: "json";
559
+ status: 400 | 409;
560
+ };
561
+ };
562
+ } & {
563
+ "/invoices/:id/credit-notes": {
564
+ $get: {
565
+ input: {
566
+ param: {
567
+ id: string;
568
+ };
569
+ };
570
+ output: {
571
+ data: {
572
+ id: string;
573
+ creditNoteNumber: string;
574
+ invoiceId: string;
575
+ status: "draft" | "issued" | "applied";
576
+ amountCents: number;
577
+ currency: string;
578
+ baseCurrency: string | null;
579
+ baseAmountCents: number | null;
580
+ fxRateSetId: string | null;
581
+ reason: string;
582
+ notes: string | null;
583
+ createdAt: string;
584
+ updatedAt: string;
585
+ }[];
586
+ };
587
+ outputFormat: "json";
588
+ status: import("hono/utils/http-status").ContentfulStatusCode;
589
+ };
590
+ };
591
+ } & {
592
+ "/invoices/:id/credit-notes": {
593
+ $post: {
594
+ input: {
595
+ param: {
596
+ id: string;
597
+ };
598
+ };
599
+ output: {
600
+ error: string;
601
+ };
602
+ outputFormat: "json";
603
+ status: 404;
604
+ } | {
605
+ input: {
606
+ param: {
607
+ id: string;
608
+ };
609
+ };
610
+ output: {
611
+ data: {
612
+ currency: string;
613
+ id: string;
614
+ createdAt: string;
615
+ updatedAt: string;
616
+ status: "draft" | "issued" | "applied";
617
+ invoiceId: string;
618
+ amountCents: number;
619
+ notes: string | null;
620
+ baseCurrency: string | null;
621
+ fxRateSetId: string | null;
622
+ baseAmountCents: number | null;
623
+ reason: string;
624
+ creditNoteNumber: string;
625
+ };
626
+ };
627
+ outputFormat: "json";
628
+ status: 201;
629
+ };
630
+ };
631
+ } & {
632
+ "/invoices/:id/credit-notes/:creditNoteId": {
633
+ $patch: {
634
+ input: {
635
+ param: {
636
+ id: string;
637
+ } & {
638
+ creditNoteId: string;
639
+ };
640
+ };
641
+ output: {
642
+ error: string;
643
+ };
644
+ outputFormat: "json";
645
+ status: 404;
646
+ } | {
647
+ input: {
648
+ param: {
649
+ id: string;
650
+ } & {
651
+ creditNoteId: string;
652
+ };
653
+ };
654
+ output: {
655
+ data: {
656
+ id: string;
657
+ creditNoteNumber: string;
658
+ invoiceId: string;
659
+ status: "draft" | "issued" | "applied";
660
+ amountCents: number;
661
+ currency: string;
662
+ baseCurrency: string | null;
663
+ baseAmountCents: number | null;
664
+ fxRateSetId: string | null;
665
+ reason: string;
666
+ notes: string | null;
667
+ createdAt: string;
668
+ updatedAt: string;
669
+ };
670
+ };
671
+ outputFormat: "json";
672
+ status: import("hono/utils/http-status").ContentfulStatusCode;
673
+ };
674
+ };
675
+ } & {
676
+ "/invoices/:id/credit-notes/:creditNoteId/line-items": {
677
+ $get: {
678
+ input: {
679
+ param: {
680
+ id: string;
681
+ } & {
682
+ creditNoteId: string;
683
+ };
684
+ };
685
+ output: {
686
+ data: {
687
+ id: string;
688
+ creditNoteId: string;
689
+ description: string;
690
+ quantity: number;
691
+ unitPriceCents: number;
692
+ totalCents: number;
693
+ sortOrder: number;
694
+ createdAt: string;
695
+ }[];
696
+ };
697
+ outputFormat: "json";
698
+ status: import("hono/utils/http-status").ContentfulStatusCode;
699
+ };
700
+ };
701
+ } & {
702
+ "/invoices/:id/credit-notes/:creditNoteId/line-items": {
703
+ $post: {
704
+ input: {
705
+ param: {
706
+ id: string;
707
+ } & {
708
+ creditNoteId: string;
709
+ };
710
+ };
711
+ output: {
712
+ error: string;
713
+ };
714
+ outputFormat: "json";
715
+ status: 404;
716
+ } | {
717
+ input: {
718
+ param: {
719
+ id: string;
720
+ } & {
721
+ creditNoteId: string;
722
+ };
723
+ };
724
+ output: {
725
+ data: {
726
+ id: string;
727
+ description: string;
728
+ createdAt: string;
729
+ totalCents: number;
730
+ quantity: number;
731
+ sortOrder: number;
732
+ unitPriceCents: number;
733
+ creditNoteId: string;
734
+ };
735
+ };
736
+ outputFormat: "json";
737
+ status: 201;
738
+ };
739
+ };
740
+ } & {
741
+ "/invoices/:id/notes": {
742
+ $get: {
743
+ input: {
744
+ param: {
745
+ id: string;
746
+ };
747
+ };
748
+ output: {
749
+ data: {
750
+ id: string;
751
+ invoiceId: string;
752
+ authorId: string;
753
+ content: string;
754
+ createdAt: string;
755
+ }[];
756
+ };
757
+ outputFormat: "json";
758
+ status: import("hono/utils/http-status").ContentfulStatusCode;
759
+ };
760
+ };
761
+ } & {
762
+ "/invoices/:id/notes": {
763
+ $post: {
764
+ input: {
765
+ param: {
766
+ id: string;
767
+ };
768
+ };
769
+ output: {
770
+ error: string;
771
+ };
772
+ outputFormat: "json";
773
+ status: 404;
774
+ } | {
775
+ input: {
776
+ param: {
777
+ id: string;
778
+ };
779
+ };
780
+ output: {
781
+ data: {
782
+ id: string;
783
+ createdAt: string;
784
+ invoiceId: string;
785
+ content: string;
786
+ authorId: string;
787
+ };
788
+ };
789
+ outputFormat: "json";
790
+ status: 201;
791
+ };
792
+ };
793
+ }, "/", "/invoices/:id/notes">;
794
+ //# sourceMappingURL=routes-invoice-core.d.ts.map