@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,1193 @@
1
+ import type { Env } from "./routes-shared.js";
2
+ export declare const financePaymentProcessingRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/payment-sessions": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
10
+ targetId: string | null;
11
+ bookingId: string | null;
12
+ orderId: string | null;
13
+ invoiceId: string | null;
14
+ bookingPaymentScheduleId: string | null;
15
+ bookingGuaranteeId: string | null;
16
+ paymentInstrumentId: string | null;
17
+ paymentAuthorizationId: string | null;
18
+ paymentCaptureId: string | null;
19
+ paymentId: string | null;
20
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
21
+ provider: string | null;
22
+ providerSessionId: string | null;
23
+ providerPaymentId: string | null;
24
+ externalReference: string | null;
25
+ idempotencyKey: string | null;
26
+ clientReference: string | null;
27
+ currency: string;
28
+ amountCents: number;
29
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
30
+ payerPersonId: string | null;
31
+ payerOrganizationId: string | null;
32
+ payerEmail: string | null;
33
+ payerName: string | null;
34
+ redirectUrl: string | null;
35
+ returnUrl: string | null;
36
+ cancelUrl: string | null;
37
+ callbackUrl: string | null;
38
+ expiresAt: string | null;
39
+ completedAt: string | null;
40
+ failedAt: string | null;
41
+ cancelledAt: string | null;
42
+ expiredAt: string | null;
43
+ failureCode: string | null;
44
+ failureMessage: string | null;
45
+ notes: string | null;
46
+ providerPayload: {
47
+ [x: string]: import("hono/utils/types").JSONValue;
48
+ } | null;
49
+ metadata: {
50
+ [x: string]: import("hono/utils/types").JSONValue;
51
+ } | null;
52
+ createdAt: string;
53
+ updatedAt: string;
54
+ }[];
55
+ total: number;
56
+ limit: number;
57
+ offset: number;
58
+ };
59
+ outputFormat: "json";
60
+ status: import("hono/utils/http-status").ContentfulStatusCode;
61
+ };
62
+ };
63
+ } & {
64
+ "/payment-sessions": {
65
+ $post: {
66
+ input: {};
67
+ output: {
68
+ data: {
69
+ currency: string;
70
+ id: string;
71
+ createdAt: string;
72
+ updatedAt: string;
73
+ metadata: {
74
+ [x: string]: import("hono/utils/types").JSONValue;
75
+ } | null;
76
+ idempotencyKey: string | null;
77
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
78
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
79
+ targetId: string | null;
80
+ bookingId: string | null;
81
+ provider: string | null;
82
+ invoiceId: string | null;
83
+ amountCents: number;
84
+ notes: string | null;
85
+ bookingPaymentScheduleId: string | null;
86
+ bookingGuaranteeId: string | null;
87
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
88
+ payerPersonId: string | null;
89
+ payerOrganizationId: string | null;
90
+ payerEmail: string | null;
91
+ payerName: string | null;
92
+ externalReference: string | null;
93
+ clientReference: string | null;
94
+ returnUrl: string | null;
95
+ cancelUrl: string | null;
96
+ callbackUrl: string | null;
97
+ expiresAt: string | null;
98
+ providerPayload: {
99
+ [x: string]: import("hono/utils/types").JSONValue;
100
+ } | null;
101
+ orderId: string | null;
102
+ paymentInstrumentId: string | null;
103
+ paymentAuthorizationId: string | null;
104
+ paymentCaptureId: string | null;
105
+ paymentId: string | null;
106
+ providerSessionId: string | null;
107
+ providerPaymentId: string | null;
108
+ redirectUrl: string | null;
109
+ completedAt: string | null;
110
+ failedAt: string | null;
111
+ cancelledAt: string | null;
112
+ expiredAt: string | null;
113
+ failureCode: string | null;
114
+ failureMessage: string | null;
115
+ } | null;
116
+ };
117
+ outputFormat: "json";
118
+ status: 201;
119
+ };
120
+ };
121
+ } & {
122
+ "/payment-sessions/:id": {
123
+ $get: {
124
+ input: {
125
+ param: {
126
+ id: string;
127
+ };
128
+ };
129
+ output: {
130
+ error: string;
131
+ };
132
+ outputFormat: "json";
133
+ status: 404;
134
+ } | {
135
+ input: {
136
+ param: {
137
+ id: string;
138
+ };
139
+ };
140
+ output: {
141
+ data: {
142
+ id: string;
143
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
144
+ targetId: string | null;
145
+ bookingId: string | null;
146
+ orderId: string | null;
147
+ invoiceId: string | null;
148
+ bookingPaymentScheduleId: string | null;
149
+ bookingGuaranteeId: string | null;
150
+ paymentInstrumentId: string | null;
151
+ paymentAuthorizationId: string | null;
152
+ paymentCaptureId: string | null;
153
+ paymentId: string | null;
154
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
155
+ provider: string | null;
156
+ providerSessionId: string | null;
157
+ providerPaymentId: string | null;
158
+ externalReference: string | null;
159
+ idempotencyKey: string | null;
160
+ clientReference: string | null;
161
+ currency: string;
162
+ amountCents: number;
163
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
164
+ payerPersonId: string | null;
165
+ payerOrganizationId: string | null;
166
+ payerEmail: string | null;
167
+ payerName: string | null;
168
+ redirectUrl: string | null;
169
+ returnUrl: string | null;
170
+ cancelUrl: string | null;
171
+ callbackUrl: string | null;
172
+ expiresAt: string | null;
173
+ completedAt: string | null;
174
+ failedAt: string | null;
175
+ cancelledAt: string | null;
176
+ expiredAt: string | null;
177
+ failureCode: string | null;
178
+ failureMessage: string | null;
179
+ notes: string | null;
180
+ providerPayload: {
181
+ [x: string]: import("hono/utils/types").JSONValue;
182
+ } | null;
183
+ metadata: {
184
+ [x: string]: import("hono/utils/types").JSONValue;
185
+ } | null;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ };
189
+ };
190
+ outputFormat: "json";
191
+ status: import("hono/utils/http-status").ContentfulStatusCode;
192
+ };
193
+ };
194
+ } & {
195
+ "/payment-sessions/:id": {
196
+ $patch: {
197
+ input: {
198
+ param: {
199
+ id: string;
200
+ };
201
+ };
202
+ output: {
203
+ error: string;
204
+ };
205
+ outputFormat: "json";
206
+ status: 404;
207
+ } | {
208
+ input: {
209
+ param: {
210
+ id: string;
211
+ };
212
+ };
213
+ output: {
214
+ data: {
215
+ id: string;
216
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
217
+ targetId: string | null;
218
+ bookingId: string | null;
219
+ orderId: string | null;
220
+ invoiceId: string | null;
221
+ bookingPaymentScheduleId: string | null;
222
+ bookingGuaranteeId: string | null;
223
+ paymentInstrumentId: string | null;
224
+ paymentAuthorizationId: string | null;
225
+ paymentCaptureId: string | null;
226
+ paymentId: string | null;
227
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
228
+ provider: string | null;
229
+ providerSessionId: string | null;
230
+ providerPaymentId: string | null;
231
+ externalReference: string | null;
232
+ idempotencyKey: string | null;
233
+ clientReference: string | null;
234
+ currency: string;
235
+ amountCents: number;
236
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
237
+ payerPersonId: string | null;
238
+ payerOrganizationId: string | null;
239
+ payerEmail: string | null;
240
+ payerName: string | null;
241
+ redirectUrl: string | null;
242
+ returnUrl: string | null;
243
+ cancelUrl: string | null;
244
+ callbackUrl: string | null;
245
+ expiresAt: string | null;
246
+ completedAt: string | null;
247
+ failedAt: string | null;
248
+ cancelledAt: string | null;
249
+ expiredAt: string | null;
250
+ failureCode: string | null;
251
+ failureMessage: string | null;
252
+ notes: string | null;
253
+ providerPayload: {
254
+ [x: string]: import("hono/utils/types").JSONValue;
255
+ } | null;
256
+ metadata: {
257
+ [x: string]: import("hono/utils/types").JSONValue;
258
+ } | null;
259
+ createdAt: string;
260
+ updatedAt: string;
261
+ };
262
+ };
263
+ outputFormat: "json";
264
+ status: import("hono/utils/http-status").ContentfulStatusCode;
265
+ };
266
+ };
267
+ } & {
268
+ "/payment-sessions/:id/requires-redirect": {
269
+ $post: {
270
+ input: {
271
+ param: {
272
+ id: string;
273
+ };
274
+ };
275
+ output: {
276
+ error: string;
277
+ };
278
+ outputFormat: "json";
279
+ status: 404;
280
+ } | {
281
+ input: {
282
+ param: {
283
+ id: string;
284
+ };
285
+ };
286
+ output: {
287
+ data: {
288
+ id: string;
289
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
290
+ targetId: string | null;
291
+ bookingId: string | null;
292
+ orderId: string | null;
293
+ invoiceId: string | null;
294
+ bookingPaymentScheduleId: string | null;
295
+ bookingGuaranteeId: string | null;
296
+ paymentInstrumentId: string | null;
297
+ paymentAuthorizationId: string | null;
298
+ paymentCaptureId: string | null;
299
+ paymentId: string | null;
300
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
301
+ provider: string | null;
302
+ providerSessionId: string | null;
303
+ providerPaymentId: string | null;
304
+ externalReference: string | null;
305
+ idempotencyKey: string | null;
306
+ clientReference: string | null;
307
+ currency: string;
308
+ amountCents: number;
309
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
310
+ payerPersonId: string | null;
311
+ payerOrganizationId: string | null;
312
+ payerEmail: string | null;
313
+ payerName: string | null;
314
+ redirectUrl: string | null;
315
+ returnUrl: string | null;
316
+ cancelUrl: string | null;
317
+ callbackUrl: string | null;
318
+ expiresAt: string | null;
319
+ completedAt: string | null;
320
+ failedAt: string | null;
321
+ cancelledAt: string | null;
322
+ expiredAt: string | null;
323
+ failureCode: string | null;
324
+ failureMessage: string | null;
325
+ notes: string | null;
326
+ providerPayload: {
327
+ [x: string]: import("hono/utils/types").JSONValue;
328
+ } | null;
329
+ metadata: {
330
+ [x: string]: import("hono/utils/types").JSONValue;
331
+ } | null;
332
+ createdAt: string;
333
+ updatedAt: string;
334
+ };
335
+ };
336
+ outputFormat: "json";
337
+ status: import("hono/utils/http-status").ContentfulStatusCode;
338
+ };
339
+ };
340
+ } & {
341
+ "/payment-sessions/:id/complete": {
342
+ $post: {
343
+ input: {
344
+ param: {
345
+ id: string;
346
+ };
347
+ };
348
+ output: {
349
+ error: string;
350
+ };
351
+ outputFormat: "json";
352
+ status: 404;
353
+ } | {
354
+ input: {
355
+ param: {
356
+ id: string;
357
+ };
358
+ };
359
+ output: {
360
+ data: {
361
+ id: string;
362
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
363
+ targetId: string | null;
364
+ bookingId: string | null;
365
+ orderId: string | null;
366
+ invoiceId: string | null;
367
+ bookingPaymentScheduleId: string | null;
368
+ bookingGuaranteeId: string | null;
369
+ paymentInstrumentId: string | null;
370
+ paymentAuthorizationId: string | null;
371
+ paymentCaptureId: string | null;
372
+ paymentId: string | null;
373
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
374
+ provider: string | null;
375
+ providerSessionId: string | null;
376
+ providerPaymentId: string | null;
377
+ externalReference: string | null;
378
+ idempotencyKey: string | null;
379
+ clientReference: string | null;
380
+ currency: string;
381
+ amountCents: number;
382
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
383
+ payerPersonId: string | null;
384
+ payerOrganizationId: string | null;
385
+ payerEmail: string | null;
386
+ payerName: string | null;
387
+ redirectUrl: string | null;
388
+ returnUrl: string | null;
389
+ cancelUrl: string | null;
390
+ callbackUrl: string | null;
391
+ expiresAt: string | null;
392
+ completedAt: string | null;
393
+ failedAt: string | null;
394
+ cancelledAt: string | null;
395
+ expiredAt: string | null;
396
+ failureCode: string | null;
397
+ failureMessage: string | null;
398
+ notes: string | null;
399
+ providerPayload: {
400
+ [x: string]: import("hono/utils/types").JSONValue;
401
+ } | null;
402
+ metadata: {
403
+ [x: string]: import("hono/utils/types").JSONValue;
404
+ } | null;
405
+ createdAt: string;
406
+ updatedAt: string;
407
+ };
408
+ };
409
+ outputFormat: "json";
410
+ status: import("hono/utils/http-status").ContentfulStatusCode;
411
+ } | {
412
+ input: {
413
+ param: {
414
+ id: string;
415
+ };
416
+ };
417
+ output: {
418
+ error: string;
419
+ code: string;
420
+ details: {
421
+ [x: string]: import("hono/utils/types").JSONValue;
422
+ } | undefined;
423
+ };
424
+ outputFormat: "json";
425
+ status: 400 | 409;
426
+ };
427
+ };
428
+ } & {
429
+ "/payment-sessions/:id/fail": {
430
+ $post: {
431
+ input: {
432
+ param: {
433
+ id: string;
434
+ };
435
+ };
436
+ output: {
437
+ error: string;
438
+ };
439
+ outputFormat: "json";
440
+ status: 404;
441
+ } | {
442
+ input: {
443
+ param: {
444
+ id: string;
445
+ };
446
+ };
447
+ output: {
448
+ data: {
449
+ id: string;
450
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
451
+ targetId: string | null;
452
+ bookingId: string | null;
453
+ orderId: string | null;
454
+ invoiceId: string | null;
455
+ bookingPaymentScheduleId: string | null;
456
+ bookingGuaranteeId: string | null;
457
+ paymentInstrumentId: string | null;
458
+ paymentAuthorizationId: string | null;
459
+ paymentCaptureId: string | null;
460
+ paymentId: string | null;
461
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
462
+ provider: string | null;
463
+ providerSessionId: string | null;
464
+ providerPaymentId: string | null;
465
+ externalReference: string | null;
466
+ idempotencyKey: string | null;
467
+ clientReference: string | null;
468
+ currency: string;
469
+ amountCents: number;
470
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
471
+ payerPersonId: string | null;
472
+ payerOrganizationId: string | null;
473
+ payerEmail: string | null;
474
+ payerName: string | null;
475
+ redirectUrl: string | null;
476
+ returnUrl: string | null;
477
+ cancelUrl: string | null;
478
+ callbackUrl: string | null;
479
+ expiresAt: string | null;
480
+ completedAt: string | null;
481
+ failedAt: string | null;
482
+ cancelledAt: string | null;
483
+ expiredAt: string | null;
484
+ failureCode: string | null;
485
+ failureMessage: string | null;
486
+ notes: string | null;
487
+ providerPayload: {
488
+ [x: string]: import("hono/utils/types").JSONValue;
489
+ } | null;
490
+ metadata: {
491
+ [x: string]: import("hono/utils/types").JSONValue;
492
+ } | null;
493
+ createdAt: string;
494
+ updatedAt: string;
495
+ };
496
+ };
497
+ outputFormat: "json";
498
+ status: import("hono/utils/http-status").ContentfulStatusCode;
499
+ };
500
+ };
501
+ } & {
502
+ "/payment-sessions/:id/cancel": {
503
+ $post: {
504
+ input: {
505
+ param: {
506
+ id: string;
507
+ };
508
+ };
509
+ output: {
510
+ error: string;
511
+ };
512
+ outputFormat: "json";
513
+ status: 404;
514
+ } | {
515
+ input: {
516
+ param: {
517
+ id: string;
518
+ };
519
+ };
520
+ output: {
521
+ data: {
522
+ id: string;
523
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
524
+ targetId: string | null;
525
+ bookingId: string | null;
526
+ orderId: string | null;
527
+ invoiceId: string | null;
528
+ bookingPaymentScheduleId: string | null;
529
+ bookingGuaranteeId: string | null;
530
+ paymentInstrumentId: string | null;
531
+ paymentAuthorizationId: string | null;
532
+ paymentCaptureId: string | null;
533
+ paymentId: string | null;
534
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
535
+ provider: string | null;
536
+ providerSessionId: string | null;
537
+ providerPaymentId: string | null;
538
+ externalReference: string | null;
539
+ idempotencyKey: string | null;
540
+ clientReference: string | null;
541
+ currency: string;
542
+ amountCents: number;
543
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
544
+ payerPersonId: string | null;
545
+ payerOrganizationId: string | null;
546
+ payerEmail: string | null;
547
+ payerName: string | null;
548
+ redirectUrl: string | null;
549
+ returnUrl: string | null;
550
+ cancelUrl: string | null;
551
+ callbackUrl: string | null;
552
+ expiresAt: string | null;
553
+ completedAt: string | null;
554
+ failedAt: string | null;
555
+ cancelledAt: string | null;
556
+ expiredAt: string | null;
557
+ failureCode: string | null;
558
+ failureMessage: string | null;
559
+ notes: string | null;
560
+ providerPayload: {
561
+ [x: string]: import("hono/utils/types").JSONValue;
562
+ } | null;
563
+ metadata: {
564
+ [x: string]: import("hono/utils/types").JSONValue;
565
+ } | null;
566
+ createdAt: string;
567
+ updatedAt: string;
568
+ };
569
+ };
570
+ outputFormat: "json";
571
+ status: import("hono/utils/http-status").ContentfulStatusCode;
572
+ };
573
+ };
574
+ } & {
575
+ "/payment-sessions/:id/expire": {
576
+ $post: {
577
+ input: {
578
+ param: {
579
+ id: string;
580
+ };
581
+ };
582
+ output: {
583
+ error: string;
584
+ };
585
+ outputFormat: "json";
586
+ status: 404;
587
+ } | {
588
+ input: {
589
+ param: {
590
+ id: string;
591
+ };
592
+ };
593
+ output: {
594
+ data: {
595
+ id: string;
596
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
597
+ targetId: string | null;
598
+ bookingId: string | null;
599
+ orderId: string | null;
600
+ invoiceId: string | null;
601
+ bookingPaymentScheduleId: string | null;
602
+ bookingGuaranteeId: string | null;
603
+ paymentInstrumentId: string | null;
604
+ paymentAuthorizationId: string | null;
605
+ paymentCaptureId: string | null;
606
+ paymentId: string | null;
607
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
608
+ provider: string | null;
609
+ providerSessionId: string | null;
610
+ providerPaymentId: string | null;
611
+ externalReference: string | null;
612
+ idempotencyKey: string | null;
613
+ clientReference: string | null;
614
+ currency: string;
615
+ amountCents: number;
616
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
617
+ payerPersonId: string | null;
618
+ payerOrganizationId: string | null;
619
+ payerEmail: string | null;
620
+ payerName: string | null;
621
+ redirectUrl: string | null;
622
+ returnUrl: string | null;
623
+ cancelUrl: string | null;
624
+ callbackUrl: string | null;
625
+ expiresAt: string | null;
626
+ completedAt: string | null;
627
+ failedAt: string | null;
628
+ cancelledAt: string | null;
629
+ expiredAt: string | null;
630
+ failureCode: string | null;
631
+ failureMessage: string | null;
632
+ notes: string | null;
633
+ providerPayload: {
634
+ [x: string]: import("hono/utils/types").JSONValue;
635
+ } | null;
636
+ metadata: {
637
+ [x: string]: import("hono/utils/types").JSONValue;
638
+ } | null;
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ };
642
+ };
643
+ outputFormat: "json";
644
+ status: import("hono/utils/http-status").ContentfulStatusCode;
645
+ };
646
+ };
647
+ } & {
648
+ "/payment-instruments": {
649
+ $get: {
650
+ input: {};
651
+ output: {
652
+ data: {
653
+ id: string;
654
+ ownerType: "other" | "channel" | "client" | "supplier" | "agency" | "internal";
655
+ personId: string | null;
656
+ organizationId: string | null;
657
+ supplierId: string | null;
658
+ channelId: string | null;
659
+ instrumentType: "other" | "credit_card" | "voucher" | "debit_card" | "cash" | "wallet" | "direct_bill" | "bank_account";
660
+ status: "active" | "expired" | "inactive" | "revoked" | "failed_verification";
661
+ label: string;
662
+ provider: string | null;
663
+ brand: string | null;
664
+ last4: string | null;
665
+ holderName: string | null;
666
+ expiryMonth: number | null;
667
+ expiryYear: number | null;
668
+ externalToken: string | null;
669
+ externalCustomerId: string | null;
670
+ billingEmail: string | null;
671
+ billingAddress: string | null;
672
+ directBillReference: string | null;
673
+ notes: string | null;
674
+ metadata: import("hono/utils/types").JSONValue;
675
+ createdAt: string;
676
+ updatedAt: string;
677
+ }[];
678
+ total: number;
679
+ limit: number;
680
+ offset: number;
681
+ };
682
+ outputFormat: "json";
683
+ status: import("hono/utils/http-status").ContentfulStatusCode;
684
+ };
685
+ };
686
+ } & {
687
+ "/payment-instruments": {
688
+ $post: {
689
+ input: {};
690
+ output: {
691
+ data: {
692
+ id: string;
693
+ brand: string | null;
694
+ createdAt: string;
695
+ updatedAt: string;
696
+ metadata: import("hono/utils/types").JSONValue;
697
+ label: string;
698
+ status: "active" | "expired" | "inactive" | "revoked" | "failed_verification";
699
+ provider: string | null;
700
+ notes: string | null;
701
+ personId: string | null;
702
+ organizationId: string | null;
703
+ ownerType: "other" | "channel" | "client" | "supplier" | "agency" | "internal";
704
+ supplierId: string | null;
705
+ channelId: string | null;
706
+ instrumentType: "other" | "credit_card" | "voucher" | "debit_card" | "cash" | "wallet" | "direct_bill" | "bank_account";
707
+ last4: string | null;
708
+ holderName: string | null;
709
+ expiryMonth: number | null;
710
+ expiryYear: number | null;
711
+ externalToken: string | null;
712
+ externalCustomerId: string | null;
713
+ billingEmail: string | null;
714
+ billingAddress: string | null;
715
+ directBillReference: string | null;
716
+ } | null;
717
+ };
718
+ outputFormat: "json";
719
+ status: 201;
720
+ };
721
+ };
722
+ } & {
723
+ "/payment-instruments/:id": {
724
+ $get: {
725
+ input: {
726
+ param: {
727
+ id: string;
728
+ };
729
+ };
730
+ output: {
731
+ error: string;
732
+ };
733
+ outputFormat: "json";
734
+ status: 404;
735
+ } | {
736
+ input: {
737
+ param: {
738
+ id: string;
739
+ };
740
+ };
741
+ output: {
742
+ data: {
743
+ id: string;
744
+ ownerType: "other" | "channel" | "client" | "supplier" | "agency" | "internal";
745
+ personId: string | null;
746
+ organizationId: string | null;
747
+ supplierId: string | null;
748
+ channelId: string | null;
749
+ instrumentType: "other" | "credit_card" | "voucher" | "debit_card" | "cash" | "wallet" | "direct_bill" | "bank_account";
750
+ status: "active" | "expired" | "inactive" | "revoked" | "failed_verification";
751
+ label: string;
752
+ provider: string | null;
753
+ brand: string | null;
754
+ last4: string | null;
755
+ holderName: string | null;
756
+ expiryMonth: number | null;
757
+ expiryYear: number | null;
758
+ externalToken: string | null;
759
+ externalCustomerId: string | null;
760
+ billingEmail: string | null;
761
+ billingAddress: string | null;
762
+ directBillReference: string | null;
763
+ notes: string | null;
764
+ metadata: import("hono/utils/types").JSONValue;
765
+ createdAt: string;
766
+ updatedAt: string;
767
+ };
768
+ };
769
+ outputFormat: "json";
770
+ status: import("hono/utils/http-status").ContentfulStatusCode;
771
+ };
772
+ };
773
+ } & {
774
+ "/payment-instruments/:id": {
775
+ $patch: {
776
+ input: {
777
+ param: {
778
+ id: string;
779
+ };
780
+ };
781
+ output: {
782
+ error: string;
783
+ };
784
+ outputFormat: "json";
785
+ status: 404;
786
+ } | {
787
+ input: {
788
+ param: {
789
+ id: string;
790
+ };
791
+ };
792
+ output: {
793
+ data: {
794
+ id: string;
795
+ ownerType: "other" | "channel" | "client" | "supplier" | "agency" | "internal";
796
+ personId: string | null;
797
+ organizationId: string | null;
798
+ supplierId: string | null;
799
+ channelId: string | null;
800
+ instrumentType: "other" | "credit_card" | "voucher" | "debit_card" | "cash" | "wallet" | "direct_bill" | "bank_account";
801
+ status: "active" | "expired" | "inactive" | "revoked" | "failed_verification";
802
+ label: string;
803
+ provider: string | null;
804
+ brand: string | null;
805
+ last4: string | null;
806
+ holderName: string | null;
807
+ expiryMonth: number | null;
808
+ expiryYear: number | null;
809
+ externalToken: string | null;
810
+ externalCustomerId: string | null;
811
+ billingEmail: string | null;
812
+ billingAddress: string | null;
813
+ directBillReference: string | null;
814
+ notes: string | null;
815
+ metadata: import("hono/utils/types").JSONValue;
816
+ createdAt: string;
817
+ updatedAt: string;
818
+ };
819
+ };
820
+ outputFormat: "json";
821
+ status: import("hono/utils/http-status").ContentfulStatusCode;
822
+ };
823
+ };
824
+ } & {
825
+ "/payment-instruments/:id": {
826
+ $delete: {
827
+ input: {
828
+ param: {
829
+ id: string;
830
+ };
831
+ };
832
+ output: {
833
+ error: string;
834
+ };
835
+ outputFormat: "json";
836
+ status: 404;
837
+ } | {
838
+ input: {
839
+ param: {
840
+ id: string;
841
+ };
842
+ };
843
+ output: {
844
+ success: true;
845
+ };
846
+ outputFormat: "json";
847
+ status: import("hono/utils/http-status").ContentfulStatusCode;
848
+ };
849
+ };
850
+ } & {
851
+ "/payment-authorizations": {
852
+ $get: {
853
+ input: {};
854
+ output: {
855
+ data: {
856
+ id: string;
857
+ bookingId: string | null;
858
+ orderId: string | null;
859
+ invoiceId: string | null;
860
+ bookingGuaranteeId: string | null;
861
+ paymentInstrumentId: string | null;
862
+ status: "failed" | "pending" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
863
+ captureMode: "manual" | "automatic";
864
+ currency: string;
865
+ amountCents: number;
866
+ provider: string | null;
867
+ externalAuthorizationId: string | null;
868
+ approvalCode: string | null;
869
+ authorizedAt: string | null;
870
+ expiresAt: string | null;
871
+ voidedAt: string | null;
872
+ notes: string | null;
873
+ createdAt: string;
874
+ updatedAt: string;
875
+ }[];
876
+ total: number;
877
+ limit: number;
878
+ offset: number;
879
+ };
880
+ outputFormat: "json";
881
+ status: import("hono/utils/http-status").ContentfulStatusCode;
882
+ };
883
+ };
884
+ } & {
885
+ "/payment-authorizations": {
886
+ $post: {
887
+ input: {};
888
+ output: {
889
+ data: {
890
+ currency: string;
891
+ id: string;
892
+ createdAt: string;
893
+ updatedAt: string;
894
+ status: "failed" | "pending" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
895
+ bookingId: string | null;
896
+ provider: string | null;
897
+ invoiceId: string | null;
898
+ amountCents: number;
899
+ notes: string | null;
900
+ bookingGuaranteeId: string | null;
901
+ expiresAt: string | null;
902
+ voidedAt: string | null;
903
+ orderId: string | null;
904
+ paymentInstrumentId: string | null;
905
+ captureMode: "manual" | "automatic";
906
+ externalAuthorizationId: string | null;
907
+ approvalCode: string | null;
908
+ authorizedAt: string | null;
909
+ } | null;
910
+ };
911
+ outputFormat: "json";
912
+ status: 201;
913
+ };
914
+ };
915
+ } & {
916
+ "/payment-authorizations/:id": {
917
+ $get: {
918
+ input: {
919
+ param: {
920
+ id: string;
921
+ };
922
+ };
923
+ output: {
924
+ error: string;
925
+ };
926
+ outputFormat: "json";
927
+ status: 404;
928
+ } | {
929
+ input: {
930
+ param: {
931
+ id: string;
932
+ };
933
+ };
934
+ output: {
935
+ data: {
936
+ id: string;
937
+ bookingId: string | null;
938
+ orderId: string | null;
939
+ invoiceId: string | null;
940
+ bookingGuaranteeId: string | null;
941
+ paymentInstrumentId: string | null;
942
+ status: "failed" | "pending" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
943
+ captureMode: "manual" | "automatic";
944
+ currency: string;
945
+ amountCents: number;
946
+ provider: string | null;
947
+ externalAuthorizationId: string | null;
948
+ approvalCode: string | null;
949
+ authorizedAt: string | null;
950
+ expiresAt: string | null;
951
+ voidedAt: string | null;
952
+ notes: string | null;
953
+ createdAt: string;
954
+ updatedAt: string;
955
+ };
956
+ };
957
+ outputFormat: "json";
958
+ status: import("hono/utils/http-status").ContentfulStatusCode;
959
+ };
960
+ };
961
+ } & {
962
+ "/payment-authorizations/:id": {
963
+ $patch: {
964
+ input: {
965
+ param: {
966
+ id: string;
967
+ };
968
+ };
969
+ output: {
970
+ error: string;
971
+ };
972
+ outputFormat: "json";
973
+ status: 404;
974
+ } | {
975
+ input: {
976
+ param: {
977
+ id: string;
978
+ };
979
+ };
980
+ output: {
981
+ data: {
982
+ id: string;
983
+ bookingId: string | null;
984
+ orderId: string | null;
985
+ invoiceId: string | null;
986
+ bookingGuaranteeId: string | null;
987
+ paymentInstrumentId: string | null;
988
+ status: "failed" | "pending" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
989
+ captureMode: "manual" | "automatic";
990
+ currency: string;
991
+ amountCents: number;
992
+ provider: string | null;
993
+ externalAuthorizationId: string | null;
994
+ approvalCode: string | null;
995
+ authorizedAt: string | null;
996
+ expiresAt: string | null;
997
+ voidedAt: string | null;
998
+ notes: string | null;
999
+ createdAt: string;
1000
+ updatedAt: string;
1001
+ };
1002
+ };
1003
+ outputFormat: "json";
1004
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1005
+ };
1006
+ };
1007
+ } & {
1008
+ "/payment-authorizations/:id": {
1009
+ $delete: {
1010
+ input: {
1011
+ param: {
1012
+ id: string;
1013
+ };
1014
+ };
1015
+ output: {
1016
+ error: string;
1017
+ };
1018
+ outputFormat: "json";
1019
+ status: 404;
1020
+ } | {
1021
+ input: {
1022
+ param: {
1023
+ id: string;
1024
+ };
1025
+ };
1026
+ output: {
1027
+ success: true;
1028
+ };
1029
+ outputFormat: "json";
1030
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1031
+ };
1032
+ };
1033
+ } & {
1034
+ "/payment-captures": {
1035
+ $get: {
1036
+ input: {};
1037
+ output: {
1038
+ data: {
1039
+ id: string;
1040
+ paymentAuthorizationId: string | null;
1041
+ invoiceId: string | null;
1042
+ status: "failed" | "pending" | "voided" | "completed" | "refunded";
1043
+ currency: string;
1044
+ amountCents: number;
1045
+ provider: string | null;
1046
+ externalCaptureId: string | null;
1047
+ capturedAt: string | null;
1048
+ settledAt: string | null;
1049
+ notes: string | null;
1050
+ createdAt: string;
1051
+ updatedAt: string;
1052
+ }[];
1053
+ total: number;
1054
+ limit: number;
1055
+ offset: number;
1056
+ };
1057
+ outputFormat: "json";
1058
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1059
+ };
1060
+ };
1061
+ } & {
1062
+ "/payment-captures": {
1063
+ $post: {
1064
+ input: {};
1065
+ output: {
1066
+ data: {
1067
+ currency: string;
1068
+ id: string;
1069
+ createdAt: string;
1070
+ updatedAt: string;
1071
+ status: "failed" | "pending" | "voided" | "completed" | "refunded";
1072
+ provider: string | null;
1073
+ invoiceId: string | null;
1074
+ amountCents: number;
1075
+ notes: string | null;
1076
+ paymentAuthorizationId: string | null;
1077
+ externalCaptureId: string | null;
1078
+ capturedAt: string | null;
1079
+ settledAt: string | null;
1080
+ } | null;
1081
+ };
1082
+ outputFormat: "json";
1083
+ status: 201;
1084
+ };
1085
+ };
1086
+ } & {
1087
+ "/payment-captures/:id": {
1088
+ $get: {
1089
+ input: {
1090
+ param: {
1091
+ id: string;
1092
+ };
1093
+ };
1094
+ output: {
1095
+ error: string;
1096
+ };
1097
+ outputFormat: "json";
1098
+ status: 404;
1099
+ } | {
1100
+ input: {
1101
+ param: {
1102
+ id: string;
1103
+ };
1104
+ };
1105
+ output: {
1106
+ data: {
1107
+ id: string;
1108
+ paymentAuthorizationId: string | null;
1109
+ invoiceId: string | null;
1110
+ status: "failed" | "pending" | "voided" | "completed" | "refunded";
1111
+ currency: string;
1112
+ amountCents: number;
1113
+ provider: string | null;
1114
+ externalCaptureId: string | null;
1115
+ capturedAt: string | null;
1116
+ settledAt: string | null;
1117
+ notes: string | null;
1118
+ createdAt: string;
1119
+ updatedAt: string;
1120
+ };
1121
+ };
1122
+ outputFormat: "json";
1123
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1124
+ };
1125
+ };
1126
+ } & {
1127
+ "/payment-captures/:id": {
1128
+ $patch: {
1129
+ input: {
1130
+ param: {
1131
+ id: string;
1132
+ };
1133
+ };
1134
+ output: {
1135
+ error: string;
1136
+ };
1137
+ outputFormat: "json";
1138
+ status: 404;
1139
+ } | {
1140
+ input: {
1141
+ param: {
1142
+ id: string;
1143
+ };
1144
+ };
1145
+ output: {
1146
+ data: {
1147
+ id: string;
1148
+ paymentAuthorizationId: string | null;
1149
+ invoiceId: string | null;
1150
+ status: "failed" | "pending" | "voided" | "completed" | "refunded";
1151
+ currency: string;
1152
+ amountCents: number;
1153
+ provider: string | null;
1154
+ externalCaptureId: string | null;
1155
+ capturedAt: string | null;
1156
+ settledAt: string | null;
1157
+ notes: string | null;
1158
+ createdAt: string;
1159
+ updatedAt: string;
1160
+ };
1161
+ };
1162
+ outputFormat: "json";
1163
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1164
+ };
1165
+ };
1166
+ } & {
1167
+ "/payment-captures/:id": {
1168
+ $delete: {
1169
+ input: {
1170
+ param: {
1171
+ id: string;
1172
+ };
1173
+ };
1174
+ output: {
1175
+ error: string;
1176
+ };
1177
+ outputFormat: "json";
1178
+ status: 404;
1179
+ } | {
1180
+ input: {
1181
+ param: {
1182
+ id: string;
1183
+ };
1184
+ };
1185
+ output: {
1186
+ success: true;
1187
+ };
1188
+ outputFormat: "json";
1189
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1190
+ };
1191
+ };
1192
+ }, "/", "/payment-captures/:id">;
1193
+ //# sourceMappingURL=routes-payment-processing.d.ts.map