@voyant-travel/plugin-netopia 0.104.19

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 (42) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +80 -0
  3. package/dist/checkout.d.ts +4 -0
  4. package/dist/checkout.d.ts.map +1 -0
  5. package/dist/checkout.js +20 -0
  6. package/dist/client.d.ts +29 -0
  7. package/dist/client.d.ts.map +1 -0
  8. package/dist/client.js +221 -0
  9. package/dist/index.d.ts +9 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +6 -0
  12. package/dist/ipn.d.ts +42 -0
  13. package/dist/ipn.d.ts.map +1 -0
  14. package/dist/ipn.js +188 -0
  15. package/dist/notification-runtime.d.ts +13 -0
  16. package/dist/notification-runtime.d.ts.map +1 -0
  17. package/dist/notification-runtime.js +22 -0
  18. package/dist/plugin.d.ts +736 -0
  19. package/dist/plugin.d.ts.map +1 -0
  20. package/dist/plugin.js +231 -0
  21. package/dist/service-callback.d.ts +8 -0
  22. package/dist/service-callback.d.ts.map +1 -0
  23. package/dist/service-callback.js +200 -0
  24. package/dist/service-collect.d.ts +9 -0
  25. package/dist/service-collect.d.ts.map +1 -0
  26. package/dist/service-collect.js +70 -0
  27. package/dist/service-shared.d.ts +63 -0
  28. package/dist/service-shared.d.ts.map +1 -0
  29. package/dist/service-shared.js +40 -0
  30. package/dist/service-start.d.ts +6 -0
  31. package/dist/service-start.d.ts.map +1 -0
  32. package/dist/service-start.js +82 -0
  33. package/dist/service.d.ts +13 -0
  34. package/dist/service.d.ts.map +1 -0
  35. package/dist/service.js +12 -0
  36. package/dist/types.d.ts +259 -0
  37. package/dist/types.d.ts.map +1 -0
  38. package/dist/types.js +1 -0
  39. package/dist/validation.d.ts +666 -0
  40. package/dist/validation.d.ts.map +1 -0
  41. package/dist/validation.js +139 -0
  42. package/package.json +73 -0
@@ -0,0 +1,736 @@
1
+ import type { ModuleContainer } from "@voyant-travel/core";
2
+ import { type HonoBundle } from "@voyant-travel/hono";
3
+ import type { HonoExtension } from "@voyant-travel/hono/module";
4
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
5
+ import type { NetopiaRuntimeOptions } from "./types.js";
6
+ type Env = {
7
+ Bindings: Record<string, unknown>;
8
+ Variables: {
9
+ container: ModuleContainer;
10
+ db: PostgresJsDatabase;
11
+ userId?: string;
12
+ };
13
+ };
14
+ export declare const NETOPIA_RUNTIME_CONTAINER_KEY = "providers.netopia.runtime";
15
+ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptions): import("hono/hono-base").HonoBase<Env, {
16
+ "/providers/netopia/payment-sessions/:sessionId/start": {
17
+ $post: {
18
+ input: {
19
+ param: {
20
+ sessionId: string;
21
+ };
22
+ };
23
+ output: {
24
+ data: {
25
+ session: {
26
+ metadata: {
27
+ [x: string]: import("hono/utils/types").JSONValue;
28
+ } | null;
29
+ status: "failed" | "pending" | "cancelled" | "expired" | "processing" | "paid" | "requires_redirect" | "authorized";
30
+ currency: string;
31
+ id: string;
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ expiresAt: string | null;
35
+ notes: string | null;
36
+ bookingId: string | null;
37
+ expiredAt: string | null;
38
+ cancelledAt: string | null;
39
+ completedAt: string | null;
40
+ orderId: string | null;
41
+ idempotencyKey: string | null;
42
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
43
+ targetId: string | null;
44
+ provider: string | null;
45
+ amountCents: number;
46
+ bookingPaymentScheduleId: string | null;
47
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
48
+ invoiceId: string | null;
49
+ bookingGuaranteeId: string | null;
50
+ paymentInstrumentId: string | null;
51
+ paymentAuthorizationId: string | null;
52
+ paymentCaptureId: string | null;
53
+ paymentId: string | null;
54
+ providerSessionId: string | null;
55
+ providerPaymentId: string | null;
56
+ externalReference: string | null;
57
+ clientReference: string | null;
58
+ payerPersonId: string | null;
59
+ payerOrganizationId: string | null;
60
+ payerEmail: string | null;
61
+ payerName: string | null;
62
+ redirectUrl: string | null;
63
+ returnUrl: string | null;
64
+ cancelUrl: string | null;
65
+ callbackUrl: string | null;
66
+ failedAt: string | null;
67
+ failureCode: string | null;
68
+ failureMessage: string | null;
69
+ providerPayload: {
70
+ [x: string]: import("hono/utils/types").JSONValue;
71
+ } | null;
72
+ };
73
+ providerResponse: {
74
+ code?: string | undefined;
75
+ message?: string | undefined;
76
+ error?: {
77
+ code?: string | number | undefined;
78
+ message?: string | undefined;
79
+ } | undefined;
80
+ payment?: {
81
+ paymentURL?: string | undefined;
82
+ ntpID?: string | undefined;
83
+ status?: number | undefined;
84
+ amount?: number | undefined;
85
+ currency?: string | undefined;
86
+ } | undefined;
87
+ };
88
+ orderId: string;
89
+ };
90
+ };
91
+ outputFormat: "json";
92
+ status: 201;
93
+ } | {
94
+ input: {
95
+ param: {
96
+ sessionId: string;
97
+ };
98
+ };
99
+ output: {
100
+ error: string;
101
+ };
102
+ outputFormat: "json";
103
+ status: 404;
104
+ } | {
105
+ input: {
106
+ param: {
107
+ sessionId: string;
108
+ };
109
+ };
110
+ output: {
111
+ error: string;
112
+ };
113
+ outputFormat: "json";
114
+ status: 409;
115
+ } | {
116
+ input: {
117
+ param: {
118
+ sessionId: string;
119
+ };
120
+ };
121
+ output: {
122
+ error: string;
123
+ };
124
+ outputFormat: "json";
125
+ status: 500;
126
+ } | {
127
+ input: {
128
+ param: {
129
+ sessionId: string;
130
+ };
131
+ };
132
+ output: {
133
+ error: string;
134
+ };
135
+ outputFormat: "json";
136
+ status: 502;
137
+ };
138
+ };
139
+ } & {
140
+ "/providers/netopia/bookings/:bookingId/payment-schedules/:scheduleId/collect": {
141
+ $post: {
142
+ input: {
143
+ param: {
144
+ bookingId: string;
145
+ } & {
146
+ scheduleId: string;
147
+ };
148
+ };
149
+ output: {
150
+ data: {
151
+ paymentSessionNotification: {
152
+ metadata: {
153
+ [x: string]: import("hono/utils/types").JSONValue;
154
+ } | null;
155
+ status: "failed" | "pending" | "cancelled" | "sent";
156
+ id: string;
157
+ createdAt: string;
158
+ updatedAt: string;
159
+ organizationId: string | null;
160
+ bookingId: string | null;
161
+ personId: string | null;
162
+ targetType: "organization" | "other" | "booking" | "person" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "payment_session";
163
+ targetId: string | null;
164
+ provider: string;
165
+ scheduledFor: string | null;
166
+ errorMessage: string | null;
167
+ paymentSessionId: string | null;
168
+ channel: "email" | "sms";
169
+ templateId: string | null;
170
+ invoiceId: string | null;
171
+ failedAt: string | null;
172
+ templateSlug: string | null;
173
+ subject: string | null;
174
+ toAddress: string;
175
+ sentAt: string | null;
176
+ fromAddress: string | null;
177
+ providerMessageId: string | null;
178
+ htmlBody: string | null;
179
+ textBody: string | null;
180
+ payloadData: {
181
+ [x: string]: import("hono/utils/types").JSONValue;
182
+ } | null;
183
+ } | null;
184
+ invoiceNotification: {
185
+ metadata: {
186
+ [x: string]: import("hono/utils/types").JSONValue;
187
+ } | null;
188
+ status: "failed" | "pending" | "cancelled" | "sent";
189
+ id: string;
190
+ createdAt: string;
191
+ updatedAt: string;
192
+ organizationId: string | null;
193
+ bookingId: string | null;
194
+ personId: string | null;
195
+ targetType: "organization" | "other" | "booking" | "person" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "payment_session";
196
+ targetId: string | null;
197
+ provider: string;
198
+ scheduledFor: string | null;
199
+ errorMessage: string | null;
200
+ paymentSessionId: string | null;
201
+ channel: "email" | "sms";
202
+ templateId: string | null;
203
+ invoiceId: string | null;
204
+ failedAt: string | null;
205
+ templateSlug: string | null;
206
+ subject: string | null;
207
+ toAddress: string;
208
+ sentAt: string | null;
209
+ fromAddress: string | null;
210
+ providerMessageId: string | null;
211
+ htmlBody: string | null;
212
+ textBody: string | null;
213
+ payloadData: {
214
+ [x: string]: import("hono/utils/types").JSONValue;
215
+ } | null;
216
+ } | null;
217
+ session: {
218
+ metadata: {
219
+ [x: string]: import("hono/utils/types").JSONValue;
220
+ } | null;
221
+ status: "failed" | "pending" | "cancelled" | "expired" | "processing" | "paid" | "requires_redirect" | "authorized";
222
+ currency: string;
223
+ id: string;
224
+ createdAt: string;
225
+ updatedAt: string;
226
+ expiresAt: string | null;
227
+ notes: string | null;
228
+ bookingId: string | null;
229
+ expiredAt: string | null;
230
+ cancelledAt: string | null;
231
+ completedAt: string | null;
232
+ orderId: string | null;
233
+ idempotencyKey: string | null;
234
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
235
+ targetId: string | null;
236
+ provider: string | null;
237
+ amountCents: number;
238
+ bookingPaymentScheduleId: string | null;
239
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
240
+ invoiceId: string | null;
241
+ bookingGuaranteeId: string | null;
242
+ paymentInstrumentId: string | null;
243
+ paymentAuthorizationId: string | null;
244
+ paymentCaptureId: string | null;
245
+ paymentId: string | null;
246
+ providerSessionId: string | null;
247
+ providerPaymentId: string | null;
248
+ externalReference: string | null;
249
+ clientReference: string | null;
250
+ payerPersonId: string | null;
251
+ payerOrganizationId: string | null;
252
+ payerEmail: string | null;
253
+ payerName: string | null;
254
+ redirectUrl: string | null;
255
+ returnUrl: string | null;
256
+ cancelUrl: string | null;
257
+ callbackUrl: string | null;
258
+ failedAt: string | null;
259
+ failureCode: string | null;
260
+ failureMessage: string | null;
261
+ providerPayload: {
262
+ [x: string]: import("hono/utils/types").JSONValue;
263
+ } | null;
264
+ };
265
+ providerResponse: {
266
+ code?: string | undefined;
267
+ message?: string | undefined;
268
+ error?: {
269
+ code?: string | number | undefined;
270
+ message?: string | undefined;
271
+ } | undefined;
272
+ payment?: {
273
+ paymentURL?: string | undefined;
274
+ ntpID?: string | undefined;
275
+ status?: number | undefined;
276
+ amount?: number | undefined;
277
+ currency?: string | undefined;
278
+ } | undefined;
279
+ };
280
+ orderId: string;
281
+ };
282
+ };
283
+ outputFormat: "json";
284
+ status: 201;
285
+ } | {
286
+ input: {
287
+ param: {
288
+ bookingId: string;
289
+ } & {
290
+ scheduleId: string;
291
+ };
292
+ };
293
+ output: {
294
+ error: string;
295
+ };
296
+ outputFormat: "json";
297
+ status: 500 | 404 | 409 | 502;
298
+ };
299
+ };
300
+ } & {
301
+ "/providers/netopia/bookings/:bookingId/guarantees/:guaranteeId/collect": {
302
+ $post: {
303
+ input: {
304
+ param: {
305
+ bookingId: string;
306
+ } & {
307
+ guaranteeId: string;
308
+ };
309
+ };
310
+ output: {
311
+ data: {
312
+ paymentSessionNotification: {
313
+ metadata: {
314
+ [x: string]: import("hono/utils/types").JSONValue;
315
+ } | null;
316
+ status: "failed" | "pending" | "cancelled" | "sent";
317
+ id: string;
318
+ createdAt: string;
319
+ updatedAt: string;
320
+ organizationId: string | null;
321
+ bookingId: string | null;
322
+ personId: string | null;
323
+ targetType: "organization" | "other" | "booking" | "person" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "payment_session";
324
+ targetId: string | null;
325
+ provider: string;
326
+ scheduledFor: string | null;
327
+ errorMessage: string | null;
328
+ paymentSessionId: string | null;
329
+ channel: "email" | "sms";
330
+ templateId: string | null;
331
+ invoiceId: string | null;
332
+ failedAt: string | null;
333
+ templateSlug: string | null;
334
+ subject: string | null;
335
+ toAddress: string;
336
+ sentAt: string | null;
337
+ fromAddress: string | null;
338
+ providerMessageId: string | null;
339
+ htmlBody: string | null;
340
+ textBody: string | null;
341
+ payloadData: {
342
+ [x: string]: import("hono/utils/types").JSONValue;
343
+ } | null;
344
+ } | null;
345
+ invoiceNotification: {
346
+ metadata: {
347
+ [x: string]: import("hono/utils/types").JSONValue;
348
+ } | null;
349
+ status: "failed" | "pending" | "cancelled" | "sent";
350
+ id: string;
351
+ createdAt: string;
352
+ updatedAt: string;
353
+ organizationId: string | null;
354
+ bookingId: string | null;
355
+ personId: string | null;
356
+ targetType: "organization" | "other" | "booking" | "person" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "payment_session";
357
+ targetId: string | null;
358
+ provider: string;
359
+ scheduledFor: string | null;
360
+ errorMessage: string | null;
361
+ paymentSessionId: string | null;
362
+ channel: "email" | "sms";
363
+ templateId: string | null;
364
+ invoiceId: string | null;
365
+ failedAt: string | null;
366
+ templateSlug: string | null;
367
+ subject: string | null;
368
+ toAddress: string;
369
+ sentAt: string | null;
370
+ fromAddress: string | null;
371
+ providerMessageId: string | null;
372
+ htmlBody: string | null;
373
+ textBody: string | null;
374
+ payloadData: {
375
+ [x: string]: import("hono/utils/types").JSONValue;
376
+ } | null;
377
+ } | null;
378
+ session: {
379
+ metadata: {
380
+ [x: string]: import("hono/utils/types").JSONValue;
381
+ } | null;
382
+ status: "failed" | "pending" | "cancelled" | "expired" | "processing" | "paid" | "requires_redirect" | "authorized";
383
+ currency: string;
384
+ id: string;
385
+ createdAt: string;
386
+ updatedAt: string;
387
+ expiresAt: string | null;
388
+ notes: string | null;
389
+ bookingId: string | null;
390
+ expiredAt: string | null;
391
+ cancelledAt: string | null;
392
+ completedAt: string | null;
393
+ orderId: string | null;
394
+ idempotencyKey: string | null;
395
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
396
+ targetId: string | null;
397
+ provider: string | null;
398
+ amountCents: number;
399
+ bookingPaymentScheduleId: string | null;
400
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
401
+ invoiceId: string | null;
402
+ bookingGuaranteeId: string | null;
403
+ paymentInstrumentId: string | null;
404
+ paymentAuthorizationId: string | null;
405
+ paymentCaptureId: string | null;
406
+ paymentId: string | null;
407
+ providerSessionId: string | null;
408
+ providerPaymentId: string | null;
409
+ externalReference: string | null;
410
+ clientReference: string | null;
411
+ payerPersonId: string | null;
412
+ payerOrganizationId: string | null;
413
+ payerEmail: string | null;
414
+ payerName: string | null;
415
+ redirectUrl: string | null;
416
+ returnUrl: string | null;
417
+ cancelUrl: string | null;
418
+ callbackUrl: string | null;
419
+ failedAt: string | null;
420
+ failureCode: string | null;
421
+ failureMessage: string | null;
422
+ providerPayload: {
423
+ [x: string]: import("hono/utils/types").JSONValue;
424
+ } | null;
425
+ };
426
+ providerResponse: {
427
+ code?: string | undefined;
428
+ message?: string | undefined;
429
+ error?: {
430
+ code?: string | number | undefined;
431
+ message?: string | undefined;
432
+ } | undefined;
433
+ payment?: {
434
+ paymentURL?: string | undefined;
435
+ ntpID?: string | undefined;
436
+ status?: number | undefined;
437
+ amount?: number | undefined;
438
+ currency?: string | undefined;
439
+ } | undefined;
440
+ };
441
+ orderId: string;
442
+ };
443
+ };
444
+ outputFormat: "json";
445
+ status: 201;
446
+ } | {
447
+ input: {
448
+ param: {
449
+ bookingId: string;
450
+ } & {
451
+ guaranteeId: string;
452
+ };
453
+ };
454
+ output: {
455
+ error: string;
456
+ };
457
+ outputFormat: "json";
458
+ status: 500 | 404 | 409 | 502;
459
+ };
460
+ };
461
+ } & {
462
+ "/providers/netopia/invoices/:invoiceId/collect": {
463
+ $post: {
464
+ input: {
465
+ param: {
466
+ invoiceId: string;
467
+ };
468
+ };
469
+ output: {
470
+ data: {
471
+ paymentSessionNotification: {
472
+ metadata: {
473
+ [x: string]: import("hono/utils/types").JSONValue;
474
+ } | null;
475
+ status: "failed" | "pending" | "cancelled" | "sent";
476
+ id: string;
477
+ createdAt: string;
478
+ updatedAt: string;
479
+ organizationId: string | null;
480
+ bookingId: string | null;
481
+ personId: string | null;
482
+ targetType: "organization" | "other" | "booking" | "person" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "payment_session";
483
+ targetId: string | null;
484
+ provider: string;
485
+ scheduledFor: string | null;
486
+ errorMessage: string | null;
487
+ paymentSessionId: string | null;
488
+ channel: "email" | "sms";
489
+ templateId: string | null;
490
+ invoiceId: string | null;
491
+ failedAt: string | null;
492
+ templateSlug: string | null;
493
+ subject: string | null;
494
+ toAddress: string;
495
+ sentAt: string | null;
496
+ fromAddress: string | null;
497
+ providerMessageId: string | null;
498
+ htmlBody: string | null;
499
+ textBody: string | null;
500
+ payloadData: {
501
+ [x: string]: import("hono/utils/types").JSONValue;
502
+ } | null;
503
+ } | null;
504
+ invoiceNotification: {
505
+ metadata: {
506
+ [x: string]: import("hono/utils/types").JSONValue;
507
+ } | null;
508
+ status: "failed" | "pending" | "cancelled" | "sent";
509
+ id: string;
510
+ createdAt: string;
511
+ updatedAt: string;
512
+ organizationId: string | null;
513
+ bookingId: string | null;
514
+ personId: string | null;
515
+ targetType: "organization" | "other" | "booking" | "person" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "payment_session";
516
+ targetId: string | null;
517
+ provider: string;
518
+ scheduledFor: string | null;
519
+ errorMessage: string | null;
520
+ paymentSessionId: string | null;
521
+ channel: "email" | "sms";
522
+ templateId: string | null;
523
+ invoiceId: string | null;
524
+ failedAt: string | null;
525
+ templateSlug: string | null;
526
+ subject: string | null;
527
+ toAddress: string;
528
+ sentAt: string | null;
529
+ fromAddress: string | null;
530
+ providerMessageId: string | null;
531
+ htmlBody: string | null;
532
+ textBody: string | null;
533
+ payloadData: {
534
+ [x: string]: import("hono/utils/types").JSONValue;
535
+ } | null;
536
+ } | null;
537
+ session: {
538
+ metadata: {
539
+ [x: string]: import("hono/utils/types").JSONValue;
540
+ } | null;
541
+ status: "failed" | "pending" | "cancelled" | "expired" | "processing" | "paid" | "requires_redirect" | "authorized";
542
+ currency: string;
543
+ id: string;
544
+ createdAt: string;
545
+ updatedAt: string;
546
+ expiresAt: string | null;
547
+ notes: string | null;
548
+ bookingId: string | null;
549
+ expiredAt: string | null;
550
+ cancelledAt: string | null;
551
+ completedAt: string | null;
552
+ orderId: string | null;
553
+ idempotencyKey: string | null;
554
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
555
+ targetId: string | null;
556
+ provider: string | null;
557
+ amountCents: number;
558
+ bookingPaymentScheduleId: string | null;
559
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
560
+ invoiceId: string | null;
561
+ bookingGuaranteeId: string | null;
562
+ paymentInstrumentId: string | null;
563
+ paymentAuthorizationId: string | null;
564
+ paymentCaptureId: string | null;
565
+ paymentId: string | null;
566
+ providerSessionId: string | null;
567
+ providerPaymentId: string | null;
568
+ externalReference: string | null;
569
+ clientReference: string | null;
570
+ payerPersonId: string | null;
571
+ payerOrganizationId: string | null;
572
+ payerEmail: string | null;
573
+ payerName: string | null;
574
+ redirectUrl: string | null;
575
+ returnUrl: string | null;
576
+ cancelUrl: string | null;
577
+ callbackUrl: string | null;
578
+ failedAt: string | null;
579
+ failureCode: string | null;
580
+ failureMessage: string | null;
581
+ providerPayload: {
582
+ [x: string]: import("hono/utils/types").JSONValue;
583
+ } | null;
584
+ };
585
+ providerResponse: {
586
+ code?: string | undefined;
587
+ message?: string | undefined;
588
+ error?: {
589
+ code?: string | number | undefined;
590
+ message?: string | undefined;
591
+ } | undefined;
592
+ payment?: {
593
+ paymentURL?: string | undefined;
594
+ ntpID?: string | undefined;
595
+ status?: number | undefined;
596
+ amount?: number | undefined;
597
+ currency?: string | undefined;
598
+ } | undefined;
599
+ };
600
+ orderId: string;
601
+ };
602
+ };
603
+ outputFormat: "json";
604
+ status: 201;
605
+ } | {
606
+ input: {
607
+ param: {
608
+ invoiceId: string;
609
+ };
610
+ };
611
+ output: {
612
+ error: string;
613
+ };
614
+ outputFormat: "json";
615
+ status: 500 | 404 | 409 | 502;
616
+ };
617
+ };
618
+ } & {
619
+ "/providers/netopia/callback": {
620
+ $post: {
621
+ input: {};
622
+ output: {
623
+ error: string;
624
+ code: string;
625
+ };
626
+ outputFormat: "json";
627
+ status: 503;
628
+ } | {
629
+ input: {};
630
+ output: {
631
+ error: string;
632
+ code: string;
633
+ };
634
+ outputFormat: "json";
635
+ status: 401;
636
+ } | {
637
+ input: {};
638
+ output: {
639
+ data: {
640
+ action: import("./service-shared.js").NetopiaCallbackAction;
641
+ reason?: string | undefined;
642
+ session: {
643
+ metadata: {
644
+ [x: string]: import("hono/utils/types").JSONValue;
645
+ } | null;
646
+ status: "failed" | "pending" | "cancelled" | "expired" | "processing" | "paid" | "requires_redirect" | "authorized";
647
+ currency: string;
648
+ id: string;
649
+ createdAt: string;
650
+ updatedAt: string;
651
+ expiresAt: string | null;
652
+ notes: string | null;
653
+ bookingId: string | null;
654
+ expiredAt: string | null;
655
+ cancelledAt: string | null;
656
+ completedAt: string | null;
657
+ orderId: string | null;
658
+ idempotencyKey: string | null;
659
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
660
+ targetId: string | null;
661
+ provider: string | null;
662
+ amountCents: number;
663
+ bookingPaymentScheduleId: string | null;
664
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
665
+ invoiceId: string | null;
666
+ bookingGuaranteeId: string | null;
667
+ paymentInstrumentId: string | null;
668
+ paymentAuthorizationId: string | null;
669
+ paymentCaptureId: string | null;
670
+ paymentId: string | null;
671
+ providerSessionId: string | null;
672
+ providerPaymentId: string | null;
673
+ externalReference: string | null;
674
+ clientReference: string | null;
675
+ payerPersonId: string | null;
676
+ payerOrganizationId: string | null;
677
+ payerEmail: string | null;
678
+ payerName: string | null;
679
+ redirectUrl: string | null;
680
+ returnUrl: string | null;
681
+ cancelUrl: string | null;
682
+ callbackUrl: string | null;
683
+ failedAt: string | null;
684
+ failureCode: string | null;
685
+ failureMessage: string | null;
686
+ providerPayload: {
687
+ [x: string]: import("hono/utils/types").JSONValue;
688
+ } | null;
689
+ } | null;
690
+ orderId: string;
691
+ verification?: {
692
+ outcome: "verified" | "trusted_unverified" | "unavailable" | "rejected";
693
+ claimedStatus: number;
694
+ verifiedStatus?: number | undefined;
695
+ reason?: string | undefined;
696
+ } | undefined;
697
+ };
698
+ };
699
+ outputFormat: "json";
700
+ status: import("hono/utils/http-status").ContentfulStatusCode;
701
+ };
702
+ };
703
+ } & {
704
+ "/providers/netopia/config": {
705
+ $get: {
706
+ input: {};
707
+ output: {
708
+ data: {
709
+ apiUrl: string;
710
+ notifyUrl: string;
711
+ redirectUrl: string;
712
+ emailTemplate: string;
713
+ language: string;
714
+ successStatuses: number[];
715
+ processingStatuses: number[];
716
+ };
717
+ };
718
+ outputFormat: "json";
719
+ status: import("hono/utils/http-status").ContentfulStatusCode;
720
+ } | {
721
+ input: {};
722
+ output: {
723
+ error: string;
724
+ };
725
+ outputFormat: "json";
726
+ status: 500;
727
+ };
728
+ };
729
+ }, "/", "/providers/netopia/config">;
730
+ export declare function createNetopiaFinanceExtension(options?: NetopiaRuntimeOptions): HonoExtension;
731
+ export declare function netopiaHonoBundle(options?: NetopiaRuntimeOptions): HonoBundle;
732
+ /** @deprecated Prefer {@link netopiaHonoBundle}. */
733
+ export declare const netopiaHonoPlugin: typeof netopiaHonoBundle;
734
+ export declare const netopiaFinanceExtension: HonoExtension;
735
+ export {};
736
+ //# sourceMappingURL=plugin.d.ts.map