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