@voyantjs/finance 0.52.1 → 0.52.3
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.
- package/dist/action-ledger-drift.d.ts +29 -0
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/action-ledger-drift.js +163 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes-action-ledger.d.ts +181 -0
- package/dist/routes-action-ledger.d.ts.map +1 -0
- package/dist/routes-action-ledger.js +142 -0
- package/dist/routes-documents.d.ts +8 -8
- package/dist/routes-public.d.ts +48 -48
- package/dist/routes-settlement.d.ts +1 -1
- package/dist/routes-shared.d.ts +12 -0
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +288 -217
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +280 -46
- package/dist/schema.d.ts +22 -22
- package/dist/service-action-ledger-accounting.d.ts +77 -0
- package/dist/service-action-ledger-accounting.d.ts.map +1 -0
- package/dist/service-action-ledger-accounting.js +307 -0
- package/dist/service-action-ledger-booking-payments.d.ts +48 -0
- package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
- package/dist/service-action-ledger-booking-payments.js +178 -0
- package/dist/service-action-ledger-payment-authorizations.d.ts +48 -0
- package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-authorizations.js +209 -0
- package/dist/service-action-ledger-payment-sessions.d.ts +83 -0
- package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-sessions.js +294 -0
- package/dist/service-action-ledger-supplier-payments.d.ts +21 -0
- package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-payments.js +70 -0
- package/dist/service-action-ledger.d.ts +6 -0
- package/dist/service-action-ledger.d.ts.map +1 -0
- package/dist/service-action-ledger.js +5 -0
- package/dist/service-booking-create.d.ts +50 -8
- package/dist/service-booking-create.d.ts.map +1 -1
- package/dist/service-booking-create.js +58 -1
- package/dist/service-bookings-dual-create.d.ts +50 -8
- package/dist/service-bookings-dual-create.d.ts.map +1 -1
- package/dist/service-issue.d.ts +42 -12
- package/dist/service-issue.d.ts.map +1 -1
- package/dist/service-issue.js +141 -4
- package/dist/service-public.d.ts +13 -13
- package/dist/service-vouchers.d.ts +10 -10
- package/dist/service.d.ts +291 -279
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +753 -238
- package/dist/validation-billing.d.ts +37 -37
- package/dist/validation-payments.d.ts +102 -102
- package/dist/validation-public.d.ts +45 -45
- package/dist/validation-shared.d.ts +32 -32
- package/dist/validation-vouchers.d.ts +2 -2
- package/package.json +13 -7
package/dist/routes.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
8
8
|
data: {
|
|
9
9
|
total: number;
|
|
10
10
|
countsByStatus: {
|
|
11
|
-
status: "
|
|
11
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
12
12
|
count: number;
|
|
13
13
|
}[];
|
|
14
14
|
counts: {
|
|
@@ -59,7 +59,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
invoiceNumber: string | null;
|
|
61
61
|
bookingId: string | null;
|
|
62
|
-
status: "
|
|
62
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
63
63
|
currency: string;
|
|
64
64
|
totalCents: number;
|
|
65
65
|
balanceDueCents: number;
|
|
@@ -90,7 +90,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
90
90
|
paymentAuthorizationId: string | null;
|
|
91
91
|
paymentCaptureId: string | null;
|
|
92
92
|
paymentId: string | null;
|
|
93
|
-
status: "
|
|
93
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
94
94
|
provider: string | null;
|
|
95
95
|
providerSessionId: string | null;
|
|
96
96
|
providerPaymentId: string | null;
|
|
@@ -99,7 +99,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
99
99
|
clientReference: string | null;
|
|
100
100
|
currency: string;
|
|
101
101
|
amountCents: number;
|
|
102
|
-
paymentMethod: "
|
|
102
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
103
103
|
payerPersonId: string | null;
|
|
104
104
|
payerOrganizationId: string | null;
|
|
105
105
|
payerEmail: string | null;
|
|
@@ -139,26 +139,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
139
139
|
input: {};
|
|
140
140
|
output: {
|
|
141
141
|
data: {
|
|
142
|
-
metadata: {
|
|
143
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
144
|
-
} | null;
|
|
145
142
|
id: string;
|
|
143
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
144
|
+
idempotencyKey: string | null;
|
|
145
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
146
|
+
targetId: string | null;
|
|
146
147
|
createdAt: string;
|
|
147
|
-
updatedAt: string;
|
|
148
148
|
expiresAt: string | null;
|
|
149
|
-
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
150
149
|
currency: string;
|
|
151
150
|
notes: string | null;
|
|
152
|
-
|
|
153
|
-
provider: string | null;
|
|
151
|
+
updatedAt: string;
|
|
154
152
|
bookingId: string | null;
|
|
155
|
-
expiredAt: string | null;
|
|
156
|
-
cancelledAt: string | null;
|
|
157
|
-
completedAt: string | null;
|
|
158
153
|
paymentId: string | null;
|
|
159
154
|
amountCents: number;
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
provider: string | null;
|
|
156
|
+
metadata: {
|
|
157
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
158
|
+
} | null;
|
|
162
159
|
orderId: string | null;
|
|
163
160
|
invoiceId: string | null;
|
|
164
161
|
bookingPaymentScheduleId: string | null;
|
|
@@ -166,7 +163,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
166
163
|
bookingGuaranteeId: string | null;
|
|
167
164
|
paymentAuthorizationId: string | null;
|
|
168
165
|
paymentCaptureId: string | null;
|
|
169
|
-
paymentMethod: "
|
|
166
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
170
167
|
providerSessionId: string | null;
|
|
171
168
|
providerPaymentId: string | null;
|
|
172
169
|
externalReference: string | null;
|
|
@@ -179,7 +176,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
179
176
|
returnUrl: string | null;
|
|
180
177
|
cancelUrl: string | null;
|
|
181
178
|
callbackUrl: string | null;
|
|
179
|
+
completedAt: string | null;
|
|
182
180
|
failedAt: string | null;
|
|
181
|
+
cancelledAt: string | null;
|
|
182
|
+
expiredAt: string | null;
|
|
183
183
|
failureCode: string | null;
|
|
184
184
|
failureMessage: string | null;
|
|
185
185
|
providerPayload: {
|
|
@@ -224,7 +224,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
224
224
|
paymentAuthorizationId: string | null;
|
|
225
225
|
paymentCaptureId: string | null;
|
|
226
226
|
paymentId: string | null;
|
|
227
|
-
status: "
|
|
227
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
228
228
|
provider: string | null;
|
|
229
229
|
providerSessionId: string | null;
|
|
230
230
|
providerPaymentId: string | null;
|
|
@@ -233,7 +233,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
233
233
|
clientReference: string | null;
|
|
234
234
|
currency: string;
|
|
235
235
|
amountCents: number;
|
|
236
|
-
paymentMethod: "
|
|
236
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
237
237
|
payerPersonId: string | null;
|
|
238
238
|
payerOrganizationId: string | null;
|
|
239
239
|
payerEmail: string | null;
|
|
@@ -297,7 +297,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
297
297
|
paymentAuthorizationId: string | null;
|
|
298
298
|
paymentCaptureId: string | null;
|
|
299
299
|
paymentId: string | null;
|
|
300
|
-
status: "
|
|
300
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
301
301
|
provider: string | null;
|
|
302
302
|
providerSessionId: string | null;
|
|
303
303
|
providerPaymentId: string | null;
|
|
@@ -306,7 +306,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
306
306
|
clientReference: string | null;
|
|
307
307
|
currency: string;
|
|
308
308
|
amountCents: number;
|
|
309
|
-
paymentMethod: "
|
|
309
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
310
310
|
payerPersonId: string | null;
|
|
311
311
|
payerOrganizationId: string | null;
|
|
312
312
|
payerEmail: string | null;
|
|
@@ -370,7 +370,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
370
370
|
paymentAuthorizationId: string | null;
|
|
371
371
|
paymentCaptureId: string | null;
|
|
372
372
|
paymentId: string | null;
|
|
373
|
-
status: "
|
|
373
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
374
374
|
provider: string | null;
|
|
375
375
|
providerSessionId: string | null;
|
|
376
376
|
providerPaymentId: string | null;
|
|
@@ -379,7 +379,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
379
379
|
clientReference: string | null;
|
|
380
380
|
currency: string;
|
|
381
381
|
amountCents: number;
|
|
382
|
-
paymentMethod: "
|
|
382
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
383
383
|
payerPersonId: string | null;
|
|
384
384
|
payerOrganizationId: string | null;
|
|
385
385
|
payerEmail: string | null;
|
|
@@ -443,7 +443,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
443
443
|
paymentAuthorizationId: string | null;
|
|
444
444
|
paymentCaptureId: string | null;
|
|
445
445
|
paymentId: string | null;
|
|
446
|
-
status: "
|
|
446
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
447
447
|
provider: string | null;
|
|
448
448
|
providerSessionId: string | null;
|
|
449
449
|
providerPaymentId: string | null;
|
|
@@ -452,7 +452,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
452
452
|
clientReference: string | null;
|
|
453
453
|
currency: string;
|
|
454
454
|
amountCents: number;
|
|
455
|
-
paymentMethod: "
|
|
455
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
456
456
|
payerPersonId: string | null;
|
|
457
457
|
payerOrganizationId: string | null;
|
|
458
458
|
payerEmail: string | null;
|
|
@@ -516,7 +516,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
516
516
|
paymentAuthorizationId: string | null;
|
|
517
517
|
paymentCaptureId: string | null;
|
|
518
518
|
paymentId: string | null;
|
|
519
|
-
status: "
|
|
519
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
520
520
|
provider: string | null;
|
|
521
521
|
providerSessionId: string | null;
|
|
522
522
|
providerPaymentId: string | null;
|
|
@@ -525,7 +525,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
525
525
|
clientReference: string | null;
|
|
526
526
|
currency: string;
|
|
527
527
|
amountCents: number;
|
|
528
|
-
paymentMethod: "
|
|
528
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
529
529
|
payerPersonId: string | null;
|
|
530
530
|
payerOrganizationId: string | null;
|
|
531
531
|
payerEmail: string | null;
|
|
@@ -589,7 +589,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
589
589
|
paymentAuthorizationId: string | null;
|
|
590
590
|
paymentCaptureId: string | null;
|
|
591
591
|
paymentId: string | null;
|
|
592
|
-
status: "
|
|
592
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
593
593
|
provider: string | null;
|
|
594
594
|
providerSessionId: string | null;
|
|
595
595
|
providerPaymentId: string | null;
|
|
@@ -598,7 +598,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
598
598
|
clientReference: string | null;
|
|
599
599
|
currency: string;
|
|
600
600
|
amountCents: number;
|
|
601
|
-
paymentMethod: "
|
|
601
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
602
602
|
payerPersonId: string | null;
|
|
603
603
|
payerOrganizationId: string | null;
|
|
604
604
|
payerEmail: string | null;
|
|
@@ -662,7 +662,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
662
662
|
paymentAuthorizationId: string | null;
|
|
663
663
|
paymentCaptureId: string | null;
|
|
664
664
|
paymentId: string | null;
|
|
665
|
-
status: "
|
|
665
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
666
666
|
provider: string | null;
|
|
667
667
|
providerSessionId: string | null;
|
|
668
668
|
providerPaymentId: string | null;
|
|
@@ -671,7 +671,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
671
671
|
clientReference: string | null;
|
|
672
672
|
currency: string;
|
|
673
673
|
amountCents: number;
|
|
674
|
-
paymentMethod: "
|
|
674
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
675
675
|
payerPersonId: string | null;
|
|
676
676
|
payerOrganizationId: string | null;
|
|
677
677
|
payerEmail: string | null;
|
|
@@ -709,13 +709,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
709
709
|
output: {
|
|
710
710
|
data: {
|
|
711
711
|
id: string;
|
|
712
|
-
ownerType: "
|
|
712
|
+
ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
|
|
713
713
|
personId: string | null;
|
|
714
714
|
organizationId: string | null;
|
|
715
715
|
supplierId: string | null;
|
|
716
716
|
channelId: string | null;
|
|
717
|
-
instrumentType: "
|
|
718
|
-
status: "
|
|
717
|
+
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
|
|
718
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
719
719
|
label: string;
|
|
720
720
|
provider: string | null;
|
|
721
721
|
brand: string | null;
|
|
@@ -747,21 +747,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
747
747
|
input: {};
|
|
748
748
|
output: {
|
|
749
749
|
data: {
|
|
750
|
-
metadata: import("hono/utils/types").JSONValue;
|
|
751
750
|
id: string;
|
|
752
751
|
brand: string | null;
|
|
753
|
-
|
|
754
|
-
updatedAt: string;
|
|
752
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
755
753
|
organizationId: string | null;
|
|
756
|
-
|
|
754
|
+
createdAt: string;
|
|
757
755
|
notes: string | null;
|
|
758
|
-
|
|
756
|
+
updatedAt: string;
|
|
757
|
+
ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
|
|
759
758
|
personId: string | null;
|
|
760
|
-
label: string;
|
|
761
|
-
ownerType: "internal" | "supplier" | "other" | "client" | "channel" | "agency";
|
|
762
759
|
supplierId: string | null;
|
|
763
760
|
channelId: string | null;
|
|
764
|
-
instrumentType: "
|
|
761
|
+
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
|
|
762
|
+
label: string;
|
|
763
|
+
provider: string | null;
|
|
765
764
|
last4: string | null;
|
|
766
765
|
holderName: string | null;
|
|
767
766
|
expiryMonth: number | null;
|
|
@@ -771,6 +770,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
771
770
|
billingEmail: string | null;
|
|
772
771
|
billingAddress: string | null;
|
|
773
772
|
directBillReference: string | null;
|
|
773
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
774
774
|
} | null;
|
|
775
775
|
};
|
|
776
776
|
outputFormat: "json";
|
|
@@ -799,13 +799,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
799
799
|
output: {
|
|
800
800
|
data: {
|
|
801
801
|
id: string;
|
|
802
|
-
ownerType: "
|
|
802
|
+
ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
|
|
803
803
|
personId: string | null;
|
|
804
804
|
organizationId: string | null;
|
|
805
805
|
supplierId: string | null;
|
|
806
806
|
channelId: string | null;
|
|
807
|
-
instrumentType: "
|
|
808
|
-
status: "
|
|
807
|
+
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
|
|
808
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
809
809
|
label: string;
|
|
810
810
|
provider: string | null;
|
|
811
811
|
brand: string | null;
|
|
@@ -850,13 +850,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
850
850
|
output: {
|
|
851
851
|
data: {
|
|
852
852
|
id: string;
|
|
853
|
-
ownerType: "
|
|
853
|
+
ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
|
|
854
854
|
personId: string | null;
|
|
855
855
|
organizationId: string | null;
|
|
856
856
|
supplierId: string | null;
|
|
857
857
|
channelId: string | null;
|
|
858
|
-
instrumentType: "
|
|
859
|
-
status: "
|
|
858
|
+
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
|
|
859
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
860
860
|
label: string;
|
|
861
861
|
provider: string | null;
|
|
862
862
|
brand: string | null;
|
|
@@ -917,8 +917,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
917
917
|
invoiceId: string | null;
|
|
918
918
|
bookingGuaranteeId: string | null;
|
|
919
919
|
paymentInstrumentId: string | null;
|
|
920
|
-
status: "
|
|
921
|
-
captureMode: "
|
|
920
|
+
status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
921
|
+
captureMode: "automatic" | "manual";
|
|
922
922
|
currency: string;
|
|
923
923
|
amountCents: number;
|
|
924
924
|
provider: string | null;
|
|
@@ -946,20 +946,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
946
946
|
output: {
|
|
947
947
|
data: {
|
|
948
948
|
id: string;
|
|
949
|
+
status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
949
950
|
createdAt: string;
|
|
950
|
-
updatedAt: string;
|
|
951
951
|
expiresAt: string | null;
|
|
952
|
-
status: "pending" | "failed" | "expired" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
953
952
|
currency: string;
|
|
954
953
|
notes: string | null;
|
|
955
|
-
|
|
954
|
+
updatedAt: string;
|
|
956
955
|
bookingId: string | null;
|
|
957
956
|
amountCents: number;
|
|
957
|
+
provider: string | null;
|
|
958
958
|
orderId: string | null;
|
|
959
959
|
invoiceId: string | null;
|
|
960
960
|
paymentInstrumentId: string | null;
|
|
961
961
|
bookingGuaranteeId: string | null;
|
|
962
|
-
captureMode: "
|
|
962
|
+
captureMode: "automatic" | "manual";
|
|
963
963
|
externalAuthorizationId: string | null;
|
|
964
964
|
approvalCode: string | null;
|
|
965
965
|
authorizedAt: string | null;
|
|
@@ -997,8 +997,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
997
997
|
invoiceId: string | null;
|
|
998
998
|
bookingGuaranteeId: string | null;
|
|
999
999
|
paymentInstrumentId: string | null;
|
|
1000
|
-
status: "
|
|
1001
|
-
captureMode: "
|
|
1000
|
+
status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
1001
|
+
captureMode: "automatic" | "manual";
|
|
1002
1002
|
currency: string;
|
|
1003
1003
|
amountCents: number;
|
|
1004
1004
|
provider: string | null;
|
|
@@ -1043,8 +1043,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1043
1043
|
invoiceId: string | null;
|
|
1044
1044
|
bookingGuaranteeId: string | null;
|
|
1045
1045
|
paymentInstrumentId: string | null;
|
|
1046
|
-
status: "
|
|
1047
|
-
captureMode: "
|
|
1046
|
+
status: "failed" | "expired" | "pending" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
1047
|
+
captureMode: "automatic" | "manual";
|
|
1048
1048
|
currency: string;
|
|
1049
1049
|
amountCents: number;
|
|
1050
1050
|
provider: string | null;
|
|
@@ -1097,7 +1097,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1097
1097
|
id: string;
|
|
1098
1098
|
paymentAuthorizationId: string | null;
|
|
1099
1099
|
invoiceId: string | null;
|
|
1100
|
-
status: "
|
|
1100
|
+
status: "failed" | "pending" | "completed" | "refunded" | "voided";
|
|
1101
1101
|
currency: string;
|
|
1102
1102
|
amountCents: number;
|
|
1103
1103
|
provider: string | null;
|
|
@@ -1123,13 +1123,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1123
1123
|
output: {
|
|
1124
1124
|
data: {
|
|
1125
1125
|
id: string;
|
|
1126
|
+
status: "failed" | "pending" | "completed" | "refunded" | "voided";
|
|
1126
1127
|
createdAt: string;
|
|
1127
|
-
updatedAt: string;
|
|
1128
|
-
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
1129
1128
|
currency: string;
|
|
1130
1129
|
notes: string | null;
|
|
1131
|
-
|
|
1130
|
+
updatedAt: string;
|
|
1132
1131
|
amountCents: number;
|
|
1132
|
+
provider: string | null;
|
|
1133
1133
|
invoiceId: string | null;
|
|
1134
1134
|
paymentAuthorizationId: string | null;
|
|
1135
1135
|
externalCaptureId: string | null;
|
|
@@ -1165,7 +1165,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1165
1165
|
id: string;
|
|
1166
1166
|
paymentAuthorizationId: string | null;
|
|
1167
1167
|
invoiceId: string | null;
|
|
1168
|
-
status: "
|
|
1168
|
+
status: "failed" | "pending" | "completed" | "refunded" | "voided";
|
|
1169
1169
|
currency: string;
|
|
1170
1170
|
amountCents: number;
|
|
1171
1171
|
provider: string | null;
|
|
@@ -1205,7 +1205,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1205
1205
|
id: string;
|
|
1206
1206
|
paymentAuthorizationId: string | null;
|
|
1207
1207
|
invoiceId: string | null;
|
|
1208
|
-
status: "
|
|
1208
|
+
status: "failed" | "pending" | "completed" | "refunded" | "voided";
|
|
1209
1209
|
currency: string;
|
|
1210
1210
|
amountCents: number;
|
|
1211
1211
|
provider: string | null;
|
|
@@ -1308,7 +1308,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1308
1308
|
bookingId: string;
|
|
1309
1309
|
bookingItemId: string | null;
|
|
1310
1310
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1311
|
-
status: "
|
|
1311
|
+
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
1312
1312
|
dueDate: string;
|
|
1313
1313
|
currency: string;
|
|
1314
1314
|
amountCents: number;
|
|
@@ -1343,15 +1343,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1343
1343
|
output: {
|
|
1344
1344
|
data: {
|
|
1345
1345
|
id: string;
|
|
1346
|
+
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
1346
1347
|
createdAt: string;
|
|
1347
|
-
updatedAt: string;
|
|
1348
|
-
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1349
1348
|
currency: string;
|
|
1350
1349
|
notes: string | null;
|
|
1350
|
+
updatedAt: string;
|
|
1351
1351
|
bookingId: string;
|
|
1352
|
-
bookingItemId: string | null;
|
|
1353
1352
|
amountCents: number;
|
|
1354
1353
|
dueDate: string;
|
|
1354
|
+
bookingItemId: string | null;
|
|
1355
1355
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1356
1356
|
};
|
|
1357
1357
|
};
|
|
@@ -1381,15 +1381,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1381
1381
|
output: {
|
|
1382
1382
|
data: {
|
|
1383
1383
|
id: string;
|
|
1384
|
+
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
1384
1385
|
createdAt: string;
|
|
1385
|
-
updatedAt: string;
|
|
1386
|
-
status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
|
|
1387
1386
|
currency: string;
|
|
1388
1387
|
notes: string | null;
|
|
1388
|
+
updatedAt: string;
|
|
1389
1389
|
bookingId: string;
|
|
1390
|
-
bookingItemId: string | null;
|
|
1391
1390
|
amountCents: number;
|
|
1392
1391
|
dueDate: string;
|
|
1392
|
+
bookingItemId: string | null;
|
|
1393
1393
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1394
1394
|
}[];
|
|
1395
1395
|
};
|
|
@@ -1426,7 +1426,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1426
1426
|
bookingId: string;
|
|
1427
1427
|
bookingItemId: string | null;
|
|
1428
1428
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1429
|
-
status: "
|
|
1429
|
+
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
1430
1430
|
dueDate: string;
|
|
1431
1431
|
currency: string;
|
|
1432
1432
|
amountCents: number;
|
|
@@ -1464,26 +1464,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1464
1464
|
};
|
|
1465
1465
|
output: {
|
|
1466
1466
|
data: {
|
|
1467
|
-
metadata: {
|
|
1468
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1469
|
-
} | null;
|
|
1470
1467
|
id: string;
|
|
1468
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1469
|
+
idempotencyKey: string | null;
|
|
1470
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1471
|
+
targetId: string | null;
|
|
1471
1472
|
createdAt: string;
|
|
1472
|
-
updatedAt: string;
|
|
1473
1473
|
expiresAt: string | null;
|
|
1474
|
-
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1475
1474
|
currency: string;
|
|
1476
1475
|
notes: string | null;
|
|
1477
|
-
|
|
1478
|
-
provider: string | null;
|
|
1476
|
+
updatedAt: string;
|
|
1479
1477
|
bookingId: string | null;
|
|
1480
|
-
expiredAt: string | null;
|
|
1481
|
-
cancelledAt: string | null;
|
|
1482
|
-
completedAt: string | null;
|
|
1483
1478
|
paymentId: string | null;
|
|
1484
1479
|
amountCents: number;
|
|
1485
|
-
|
|
1486
|
-
|
|
1480
|
+
provider: string | null;
|
|
1481
|
+
metadata: {
|
|
1482
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1483
|
+
} | null;
|
|
1487
1484
|
orderId: string | null;
|
|
1488
1485
|
invoiceId: string | null;
|
|
1489
1486
|
bookingPaymentScheduleId: string | null;
|
|
@@ -1491,7 +1488,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1491
1488
|
bookingGuaranteeId: string | null;
|
|
1492
1489
|
paymentAuthorizationId: string | null;
|
|
1493
1490
|
paymentCaptureId: string | null;
|
|
1494
|
-
paymentMethod: "
|
|
1491
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
1495
1492
|
providerSessionId: string | null;
|
|
1496
1493
|
providerPaymentId: string | null;
|
|
1497
1494
|
externalReference: string | null;
|
|
@@ -1504,7 +1501,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1504
1501
|
returnUrl: string | null;
|
|
1505
1502
|
cancelUrl: string | null;
|
|
1506
1503
|
callbackUrl: string | null;
|
|
1504
|
+
completedAt: string | null;
|
|
1507
1505
|
failedAt: string | null;
|
|
1506
|
+
cancelledAt: string | null;
|
|
1507
|
+
expiredAt: string | null;
|
|
1508
1508
|
failureCode: string | null;
|
|
1509
1509
|
failureMessage: string | null;
|
|
1510
1510
|
providerPayload: {
|
|
@@ -1573,8 +1573,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1573
1573
|
bookingId: string;
|
|
1574
1574
|
bookingPaymentScheduleId: string | null;
|
|
1575
1575
|
bookingItemId: string | null;
|
|
1576
|
-
guaranteeType: "
|
|
1577
|
-
status: "
|
|
1576
|
+
guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1577
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
|
|
1578
1578
|
paymentInstrumentId: string | null;
|
|
1579
1579
|
paymentAuthorizationId: string | null;
|
|
1580
1580
|
currency: string | null;
|
|
@@ -1615,23 +1615,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1615
1615
|
output: {
|
|
1616
1616
|
data: {
|
|
1617
1617
|
id: string;
|
|
1618
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
|
|
1618
1619
|
createdAt: string;
|
|
1619
|
-
updatedAt: string;
|
|
1620
1620
|
expiresAt: string | null;
|
|
1621
|
-
status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
|
|
1622
1621
|
currency: string | null;
|
|
1623
1622
|
notes: string | null;
|
|
1624
|
-
|
|
1623
|
+
updatedAt: string;
|
|
1625
1624
|
bookingId: string;
|
|
1626
|
-
bookingItemId: string | null;
|
|
1627
|
-
releasedAt: string | null;
|
|
1628
1625
|
amountCents: number | null;
|
|
1626
|
+
provider: string | null;
|
|
1627
|
+
bookingItemId: string | null;
|
|
1629
1628
|
bookingPaymentScheduleId: string | null;
|
|
1630
|
-
guaranteeType: "
|
|
1629
|
+
guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1631
1630
|
paymentInstrumentId: string | null;
|
|
1632
1631
|
paymentAuthorizationId: string | null;
|
|
1633
1632
|
referenceNumber: string | null;
|
|
1634
1633
|
guaranteedAt: string | null;
|
|
1634
|
+
releasedAt: string | null;
|
|
1635
1635
|
};
|
|
1636
1636
|
};
|
|
1637
1637
|
outputFormat: "json";
|
|
@@ -1663,26 +1663,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1663
1663
|
};
|
|
1664
1664
|
output: {
|
|
1665
1665
|
data: {
|
|
1666
|
-
metadata: {
|
|
1667
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1668
|
-
} | null;
|
|
1669
1666
|
id: string;
|
|
1667
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1668
|
+
idempotencyKey: string | null;
|
|
1669
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1670
|
+
targetId: string | null;
|
|
1670
1671
|
createdAt: string;
|
|
1671
|
-
updatedAt: string;
|
|
1672
1672
|
expiresAt: string | null;
|
|
1673
|
-
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1674
1673
|
currency: string;
|
|
1675
1674
|
notes: string | null;
|
|
1676
|
-
|
|
1677
|
-
provider: string | null;
|
|
1675
|
+
updatedAt: string;
|
|
1678
1676
|
bookingId: string | null;
|
|
1679
|
-
expiredAt: string | null;
|
|
1680
|
-
cancelledAt: string | null;
|
|
1681
|
-
completedAt: string | null;
|
|
1682
1677
|
paymentId: string | null;
|
|
1683
1678
|
amountCents: number;
|
|
1684
|
-
|
|
1685
|
-
|
|
1679
|
+
provider: string | null;
|
|
1680
|
+
metadata: {
|
|
1681
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1682
|
+
} | null;
|
|
1686
1683
|
orderId: string | null;
|
|
1687
1684
|
invoiceId: string | null;
|
|
1688
1685
|
bookingPaymentScheduleId: string | null;
|
|
@@ -1690,7 +1687,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1690
1687
|
bookingGuaranteeId: string | null;
|
|
1691
1688
|
paymentAuthorizationId: string | null;
|
|
1692
1689
|
paymentCaptureId: string | null;
|
|
1693
|
-
paymentMethod: "
|
|
1690
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
1694
1691
|
providerSessionId: string | null;
|
|
1695
1692
|
providerPaymentId: string | null;
|
|
1696
1693
|
externalReference: string | null;
|
|
@@ -1703,7 +1700,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1703
1700
|
returnUrl: string | null;
|
|
1704
1701
|
cancelUrl: string | null;
|
|
1705
1702
|
callbackUrl: string | null;
|
|
1703
|
+
completedAt: string | null;
|
|
1706
1704
|
failedAt: string | null;
|
|
1705
|
+
cancelledAt: string | null;
|
|
1706
|
+
expiredAt: string | null;
|
|
1707
1707
|
failureCode: string | null;
|
|
1708
1708
|
failureMessage: string | null;
|
|
1709
1709
|
providerPayload: {
|
|
@@ -1757,8 +1757,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1757
1757
|
bookingId: string;
|
|
1758
1758
|
bookingPaymentScheduleId: string | null;
|
|
1759
1759
|
bookingItemId: string | null;
|
|
1760
|
-
guaranteeType: "
|
|
1761
|
-
status: "
|
|
1760
|
+
guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
|
|
1761
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
|
|
1762
1762
|
paymentInstrumentId: string | null;
|
|
1763
1763
|
paymentAuthorizationId: string | null;
|
|
1764
1764
|
currency: string | null;
|
|
@@ -1861,13 +1861,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1861
1861
|
name: string;
|
|
1862
1862
|
id: string;
|
|
1863
1863
|
createdAt: string;
|
|
1864
|
-
updatedAt: string;
|
|
1865
|
-
scope: "included" | "excluded" | "withheld";
|
|
1866
|
-
currency: string;
|
|
1867
1864
|
code: string | null;
|
|
1868
|
-
|
|
1865
|
+
currency: string;
|
|
1866
|
+
updatedAt: string;
|
|
1869
1867
|
amountCents: number;
|
|
1868
|
+
bookingItemId: string;
|
|
1870
1869
|
jurisdiction: string | null;
|
|
1870
|
+
scope: "included" | "excluded" | "withheld";
|
|
1871
1871
|
rateBasisPoints: number | null;
|
|
1872
1872
|
includedInPrice: boolean;
|
|
1873
1873
|
remittanceParty: string | null;
|
|
@@ -1966,12 +1966,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1966
1966
|
id: string;
|
|
1967
1967
|
bookingItemId: string;
|
|
1968
1968
|
channelId: string | null;
|
|
1969
|
-
recipientType: "
|
|
1969
|
+
recipientType: "agent" | "other" | "supplier" | "channel" | "agency" | "internal" | "affiliate";
|
|
1970
1970
|
commissionModel: "fixed" | "percentage" | "markup" | "net";
|
|
1971
1971
|
currency: string | null;
|
|
1972
1972
|
amountCents: number | null;
|
|
1973
1973
|
rateBasisPoints: number | null;
|
|
1974
|
-
status: "pending" | "
|
|
1974
|
+
status: "pending" | "paid" | "void" | "accrued" | "payable";
|
|
1975
1975
|
payableAt: string | null;
|
|
1976
1976
|
paidAt: string | null;
|
|
1977
1977
|
notes: string | null;
|
|
@@ -2005,19 +2005,19 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2005
2005
|
output: {
|
|
2006
2006
|
data: {
|
|
2007
2007
|
id: string;
|
|
2008
|
+
status: "pending" | "paid" | "void" | "accrued" | "payable";
|
|
2008
2009
|
createdAt: string;
|
|
2009
|
-
updatedAt: string;
|
|
2010
|
-
status: "pending" | "void" | "paid" | "accrued" | "payable";
|
|
2011
2010
|
currency: string | null;
|
|
2012
2011
|
notes: string | null;
|
|
2013
|
-
|
|
2014
|
-
bookingItemId: string;
|
|
2012
|
+
updatedAt: string;
|
|
2015
2013
|
amountCents: number | null;
|
|
2016
2014
|
channelId: string | null;
|
|
2015
|
+
bookingItemId: string;
|
|
2017
2016
|
rateBasisPoints: number | null;
|
|
2018
|
-
recipientType: "
|
|
2017
|
+
recipientType: "agent" | "other" | "supplier" | "channel" | "agency" | "internal" | "affiliate";
|
|
2019
2018
|
commissionModel: "fixed" | "percentage" | "markup" | "net";
|
|
2020
2019
|
payableAt: string | null;
|
|
2020
|
+
paidAt: string | null;
|
|
2021
2021
|
};
|
|
2022
2022
|
};
|
|
2023
2023
|
outputFormat: "json";
|
|
@@ -2052,12 +2052,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2052
2052
|
id: string;
|
|
2053
2053
|
bookingItemId: string;
|
|
2054
2054
|
channelId: string | null;
|
|
2055
|
-
recipientType: "
|
|
2055
|
+
recipientType: "agent" | "other" | "supplier" | "channel" | "agency" | "internal" | "affiliate";
|
|
2056
2056
|
commissionModel: "fixed" | "percentage" | "markup" | "net";
|
|
2057
2057
|
currency: string | null;
|
|
2058
2058
|
amountCents: number | null;
|
|
2059
2059
|
rateBasisPoints: number | null;
|
|
2060
|
-
status: "pending" | "
|
|
2060
|
+
status: "pending" | "paid" | "void" | "accrued" | "payable";
|
|
2061
2061
|
payableAt: string | null;
|
|
2062
2062
|
paidAt: string | null;
|
|
2063
2063
|
notes: string | null;
|
|
@@ -2202,9 +2202,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2202
2202
|
baseCurrency: string | null;
|
|
2203
2203
|
baseAmountCents: number | null;
|
|
2204
2204
|
fxRateSetId: string | null;
|
|
2205
|
-
paymentMethod: "
|
|
2205
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
2206
2206
|
paymentInstrumentId: string | null;
|
|
2207
|
-
status: "
|
|
2207
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
2208
2208
|
referenceNumber: string | null;
|
|
2209
2209
|
paymentDate: string;
|
|
2210
2210
|
notes: string | null;
|
|
@@ -2226,20 +2226,20 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2226
2226
|
output: {
|
|
2227
2227
|
data: {
|
|
2228
2228
|
id: string;
|
|
2229
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
2229
2230
|
createdAt: string;
|
|
2230
|
-
updatedAt: string;
|
|
2231
|
-
status: "pending" | "completed" | "failed" | "refunded";
|
|
2232
2231
|
currency: string;
|
|
2233
2232
|
notes: string | null;
|
|
2233
|
+
updatedAt: string;
|
|
2234
2234
|
bookingId: string;
|
|
2235
|
-
baseCurrency: string | null;
|
|
2236
|
-
fxRateSetId: string | null;
|
|
2237
2235
|
amountCents: number;
|
|
2238
2236
|
supplierId: string | null;
|
|
2237
|
+
baseCurrency: string | null;
|
|
2238
|
+
fxRateSetId: string | null;
|
|
2239
2239
|
paymentInstrumentId: string | null;
|
|
2240
2240
|
referenceNumber: string | null;
|
|
2241
2241
|
baseAmountCents: number | null;
|
|
2242
|
-
paymentMethod: "
|
|
2242
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
2243
2243
|
paymentDate: string;
|
|
2244
2244
|
bookingSupplierStatusId: string | null;
|
|
2245
2245
|
} | undefined;
|
|
@@ -2278,9 +2278,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2278
2278
|
baseCurrency: string | null;
|
|
2279
2279
|
baseAmountCents: number | null;
|
|
2280
2280
|
fxRateSetId: string | null;
|
|
2281
|
-
paymentMethod: "
|
|
2281
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
2282
2282
|
paymentInstrumentId: string | null;
|
|
2283
|
-
status: "
|
|
2283
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
2284
2284
|
referenceNumber: string | null;
|
|
2285
2285
|
paymentDate: string;
|
|
2286
2286
|
notes: string | null;
|
|
@@ -2310,7 +2310,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2310
2310
|
bookingId: string;
|
|
2311
2311
|
personId: string | null;
|
|
2312
2312
|
organizationId: string | null;
|
|
2313
|
-
status: "
|
|
2313
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2314
2314
|
currency: string;
|
|
2315
2315
|
baseCurrency: string | null;
|
|
2316
2316
|
fxRateSetId: string | null;
|
|
@@ -2347,17 +2347,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2347
2347
|
output: {
|
|
2348
2348
|
data: {
|
|
2349
2349
|
id: string;
|
|
2350
|
-
|
|
2351
|
-
updatedAt: string;
|
|
2350
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2352
2351
|
organizationId: string | null;
|
|
2353
|
-
|
|
2354
|
-
issueDate: string;
|
|
2352
|
+
createdAt: string;
|
|
2355
2353
|
currency: string;
|
|
2356
2354
|
notes: string | null;
|
|
2355
|
+
updatedAt: string;
|
|
2357
2356
|
bookingId: string;
|
|
2358
2357
|
personId: string | null;
|
|
2359
|
-
baseCurrency: string | null;
|
|
2360
|
-
fxRateSetId: string | null;
|
|
2361
2358
|
invoiceNumber: string;
|
|
2362
2359
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2363
2360
|
convertedFromInvoiceId: string | null;
|
|
@@ -2366,6 +2363,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2366
2363
|
templateId: string | null;
|
|
2367
2364
|
taxRegimeId: string | null;
|
|
2368
2365
|
language: string | null;
|
|
2366
|
+
baseCurrency: string | null;
|
|
2367
|
+
fxRateSetId: string | null;
|
|
2369
2368
|
subtotalCents: number;
|
|
2370
2369
|
baseSubtotalCents: number | null;
|
|
2371
2370
|
taxCents: number;
|
|
@@ -2378,6 +2377,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2378
2377
|
baseBalanceDueCents: number | null;
|
|
2379
2378
|
commissionPercent: number | null;
|
|
2380
2379
|
commissionAmountCents: number | null;
|
|
2380
|
+
issueDate: string;
|
|
2381
2381
|
dueDate: string;
|
|
2382
2382
|
} | undefined;
|
|
2383
2383
|
};
|
|
@@ -2399,17 +2399,85 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2399
2399
|
output: {
|
|
2400
2400
|
data: {
|
|
2401
2401
|
id: string;
|
|
2402
|
-
|
|
2403
|
-
updatedAt: string;
|
|
2402
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2404
2403
|
organizationId: string | null;
|
|
2405
|
-
|
|
2406
|
-
issueDate: string;
|
|
2404
|
+
createdAt: string;
|
|
2407
2405
|
currency: string;
|
|
2408
2406
|
notes: string | null;
|
|
2407
|
+
updatedAt: string;
|
|
2409
2408
|
bookingId: string;
|
|
2410
2409
|
personId: string | null;
|
|
2410
|
+
invoiceNumber: string;
|
|
2411
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2412
|
+
convertedFromInvoiceId: string | null;
|
|
2413
|
+
seriesId: string | null;
|
|
2414
|
+
sequence: number | null;
|
|
2415
|
+
templateId: string | null;
|
|
2416
|
+
taxRegimeId: string | null;
|
|
2417
|
+
language: string | null;
|
|
2411
2418
|
baseCurrency: string | null;
|
|
2412
2419
|
fxRateSetId: string | null;
|
|
2420
|
+
subtotalCents: number;
|
|
2421
|
+
baseSubtotalCents: number | null;
|
|
2422
|
+
taxCents: number;
|
|
2423
|
+
baseTaxCents: number | null;
|
|
2424
|
+
totalCents: number;
|
|
2425
|
+
baseTotalCents: number | null;
|
|
2426
|
+
paidCents: number;
|
|
2427
|
+
basePaidCents: number | null;
|
|
2428
|
+
balanceDueCents: number;
|
|
2429
|
+
baseBalanceDueCents: number | null;
|
|
2430
|
+
commissionPercent: number | null;
|
|
2431
|
+
commissionAmountCents: number | null;
|
|
2432
|
+
issueDate: string;
|
|
2433
|
+
dueDate: string;
|
|
2434
|
+
} | null;
|
|
2435
|
+
};
|
|
2436
|
+
outputFormat: "json";
|
|
2437
|
+
status: 201;
|
|
2438
|
+
};
|
|
2439
|
+
};
|
|
2440
|
+
} & {
|
|
2441
|
+
"/invoices/:id/convert-to-invoice": {
|
|
2442
|
+
$post: {
|
|
2443
|
+
input: {
|
|
2444
|
+
param: {
|
|
2445
|
+
id: string;
|
|
2446
|
+
};
|
|
2447
|
+
};
|
|
2448
|
+
output: {
|
|
2449
|
+
error: string;
|
|
2450
|
+
};
|
|
2451
|
+
outputFormat: "json";
|
|
2452
|
+
status: 404;
|
|
2453
|
+
} | {
|
|
2454
|
+
input: {
|
|
2455
|
+
param: {
|
|
2456
|
+
id: string;
|
|
2457
|
+
};
|
|
2458
|
+
};
|
|
2459
|
+
output: {
|
|
2460
|
+
error: string;
|
|
2461
|
+
};
|
|
2462
|
+
outputFormat: "json";
|
|
2463
|
+
status: 409;
|
|
2464
|
+
} | {
|
|
2465
|
+
input: {
|
|
2466
|
+
param: {
|
|
2467
|
+
id: string;
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2470
|
+
output: {
|
|
2471
|
+
data: {
|
|
2472
|
+
id: string;
|
|
2473
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2474
|
+
organizationId: string | null;
|
|
2475
|
+
createdAt: string;
|
|
2476
|
+
currency: string;
|
|
2477
|
+
notes: string | null;
|
|
2478
|
+
updatedAt: string;
|
|
2479
|
+
bookingId: string;
|
|
2480
|
+
personId: string | null;
|
|
2413
2481
|
invoiceNumber: string;
|
|
2414
2482
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2415
2483
|
convertedFromInvoiceId: string | null;
|
|
@@ -2418,6 +2486,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2418
2486
|
templateId: string | null;
|
|
2419
2487
|
taxRegimeId: string | null;
|
|
2420
2488
|
language: string | null;
|
|
2489
|
+
baseCurrency: string | null;
|
|
2490
|
+
fxRateSetId: string | null;
|
|
2421
2491
|
subtotalCents: number;
|
|
2422
2492
|
baseSubtotalCents: number | null;
|
|
2423
2493
|
taxCents: number;
|
|
@@ -2430,8 +2500,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2430
2500
|
baseBalanceDueCents: number | null;
|
|
2431
2501
|
commissionPercent: number | null;
|
|
2432
2502
|
commissionAmountCents: number | null;
|
|
2503
|
+
issueDate: string;
|
|
2433
2504
|
dueDate: string;
|
|
2434
|
-
}
|
|
2505
|
+
};
|
|
2435
2506
|
};
|
|
2436
2507
|
outputFormat: "json";
|
|
2437
2508
|
status: 201;
|
|
@@ -2470,7 +2541,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2470
2541
|
bookingId: string;
|
|
2471
2542
|
personId: string | null;
|
|
2472
2543
|
organizationId: string | null;
|
|
2473
|
-
status: "
|
|
2544
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2474
2545
|
currency: string;
|
|
2475
2546
|
baseCurrency: string | null;
|
|
2476
2547
|
fxRateSetId: string | null;
|
|
@@ -2530,7 +2601,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2530
2601
|
bookingId: string;
|
|
2531
2602
|
personId: string | null;
|
|
2532
2603
|
organizationId: string | null;
|
|
2533
|
-
status: "
|
|
2604
|
+
status: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
|
|
2534
2605
|
currency: string;
|
|
2535
2606
|
baseCurrency: string | null;
|
|
2536
2607
|
fxRateSetId: string | null;
|
|
@@ -2615,26 +2686,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2615
2686
|
};
|
|
2616
2687
|
output: {
|
|
2617
2688
|
data: {
|
|
2618
|
-
metadata: {
|
|
2619
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2620
|
-
} | null;
|
|
2621
2689
|
id: string;
|
|
2690
|
+
status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
2691
|
+
idempotencyKey: string | null;
|
|
2692
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
2693
|
+
targetId: string | null;
|
|
2622
2694
|
createdAt: string;
|
|
2623
|
-
updatedAt: string;
|
|
2624
2695
|
expiresAt: string | null;
|
|
2625
|
-
status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2626
2696
|
currency: string;
|
|
2627
2697
|
notes: string | null;
|
|
2628
|
-
|
|
2629
|
-
provider: string | null;
|
|
2698
|
+
updatedAt: string;
|
|
2630
2699
|
bookingId: string | null;
|
|
2631
|
-
expiredAt: string | null;
|
|
2632
|
-
cancelledAt: string | null;
|
|
2633
|
-
completedAt: string | null;
|
|
2634
2700
|
paymentId: string | null;
|
|
2635
2701
|
amountCents: number;
|
|
2636
|
-
|
|
2637
|
-
|
|
2702
|
+
provider: string | null;
|
|
2703
|
+
metadata: {
|
|
2704
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2705
|
+
} | null;
|
|
2638
2706
|
orderId: string | null;
|
|
2639
2707
|
invoiceId: string | null;
|
|
2640
2708
|
bookingPaymentScheduleId: string | null;
|
|
@@ -2642,7 +2710,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2642
2710
|
bookingGuaranteeId: string | null;
|
|
2643
2711
|
paymentAuthorizationId: string | null;
|
|
2644
2712
|
paymentCaptureId: string | null;
|
|
2645
|
-
paymentMethod: "
|
|
2713
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
2646
2714
|
providerSessionId: string | null;
|
|
2647
2715
|
providerPaymentId: string | null;
|
|
2648
2716
|
externalReference: string | null;
|
|
@@ -2655,7 +2723,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2655
2723
|
returnUrl: string | null;
|
|
2656
2724
|
cancelUrl: string | null;
|
|
2657
2725
|
callbackUrl: string | null;
|
|
2726
|
+
completedAt: string | null;
|
|
2658
2727
|
failedAt: string | null;
|
|
2728
|
+
cancelledAt: string | null;
|
|
2729
|
+
expiredAt: string | null;
|
|
2659
2730
|
failureCode: string | null;
|
|
2660
2731
|
failureMessage: string | null;
|
|
2661
2732
|
providerPayload: {
|
|
@@ -2726,13 +2797,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2726
2797
|
output: {
|
|
2727
2798
|
data: {
|
|
2728
2799
|
id: string;
|
|
2729
|
-
createdAt: string;
|
|
2730
2800
|
description: string;
|
|
2731
|
-
|
|
2732
|
-
bookingItemId: string | null;
|
|
2801
|
+
createdAt: string;
|
|
2733
2802
|
totalCents: number;
|
|
2734
2803
|
invoiceId: string;
|
|
2804
|
+
bookingItemId: string | null;
|
|
2735
2805
|
sortOrder: number;
|
|
2806
|
+
quantity: number;
|
|
2736
2807
|
unitPriceCents: number;
|
|
2737
2808
|
taxRate: number | null;
|
|
2738
2809
|
};
|
|
@@ -2829,11 +2900,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2829
2900
|
baseCurrency: string | null;
|
|
2830
2901
|
baseAmountCents: number | null;
|
|
2831
2902
|
fxRateSetId: string | null;
|
|
2832
|
-
paymentMethod: "
|
|
2903
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
2833
2904
|
paymentInstrumentId: string | null;
|
|
2834
2905
|
paymentAuthorizationId: string | null;
|
|
2835
2906
|
paymentCaptureId: string | null;
|
|
2836
|
-
status: "
|
|
2907
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
2837
2908
|
referenceNumber: string | null;
|
|
2838
2909
|
paymentDate: string;
|
|
2839
2910
|
notes: string | null;
|
|
@@ -2867,21 +2938,21 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2867
2938
|
output: {
|
|
2868
2939
|
data: {
|
|
2869
2940
|
id: string;
|
|
2941
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
2870
2942
|
createdAt: string;
|
|
2871
|
-
updatedAt: string;
|
|
2872
|
-
status: "pending" | "completed" | "failed" | "refunded";
|
|
2873
2943
|
currency: string;
|
|
2874
2944
|
notes: string | null;
|
|
2945
|
+
updatedAt: string;
|
|
2946
|
+
amountCents: number;
|
|
2875
2947
|
baseCurrency: string | null;
|
|
2876
2948
|
fxRateSetId: string | null;
|
|
2877
|
-
amountCents: number;
|
|
2878
2949
|
invoiceId: string;
|
|
2879
2950
|
paymentInstrumentId: string | null;
|
|
2880
2951
|
paymentAuthorizationId: string | null;
|
|
2881
2952
|
referenceNumber: string | null;
|
|
2882
2953
|
paymentCaptureId: string | null;
|
|
2883
2954
|
baseAmountCents: number | null;
|
|
2884
|
-
paymentMethod: "
|
|
2955
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
2885
2956
|
paymentDate: string;
|
|
2886
2957
|
};
|
|
2887
2958
|
};
|
|
@@ -2955,18 +3026,18 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2955
3026
|
output: {
|
|
2956
3027
|
data: {
|
|
2957
3028
|
id: string;
|
|
2958
|
-
createdAt: string;
|
|
2959
|
-
updatedAt: string;
|
|
2960
3029
|
status: "draft" | "issued" | "applied";
|
|
3030
|
+
createdAt: string;
|
|
2961
3031
|
currency: string;
|
|
2962
3032
|
notes: string | null;
|
|
3033
|
+
updatedAt: string;
|
|
3034
|
+
amountCents: number;
|
|
2963
3035
|
baseCurrency: string | null;
|
|
2964
3036
|
fxRateSetId: string | null;
|
|
2965
|
-
reason: string;
|
|
2966
|
-
amountCents: number;
|
|
2967
3037
|
invoiceId: string;
|
|
2968
3038
|
baseAmountCents: number | null;
|
|
2969
3039
|
creditNoteNumber: string;
|
|
3040
|
+
reason: string;
|
|
2970
3041
|
};
|
|
2971
3042
|
};
|
|
2972
3043
|
outputFormat: "json";
|
|
@@ -3069,11 +3140,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3069
3140
|
output: {
|
|
3070
3141
|
data: {
|
|
3071
3142
|
id: string;
|
|
3072
|
-
createdAt: string;
|
|
3073
3143
|
description: string;
|
|
3074
|
-
|
|
3144
|
+
createdAt: string;
|
|
3075
3145
|
totalCents: number;
|
|
3076
3146
|
sortOrder: number;
|
|
3147
|
+
quantity: number;
|
|
3077
3148
|
unitPriceCents: number;
|
|
3078
3149
|
creditNoteId: string;
|
|
3079
3150
|
};
|
|
@@ -3126,9 +3197,9 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3126
3197
|
data: {
|
|
3127
3198
|
id: string;
|
|
3128
3199
|
createdAt: string;
|
|
3200
|
+
invoiceId: string;
|
|
3129
3201
|
authorId: string;
|
|
3130
3202
|
content: string;
|
|
3131
|
-
invoiceId: string;
|
|
3132
3203
|
};
|
|
3133
3204
|
};
|
|
3134
3205
|
outputFormat: "json";
|
|
@@ -3171,12 +3242,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3171
3242
|
data: {
|
|
3172
3243
|
name: string;
|
|
3173
3244
|
id: string;
|
|
3174
|
-
prefix: string;
|
|
3175
3245
|
createdAt: string;
|
|
3246
|
+
active: boolean;
|
|
3247
|
+
code: string;
|
|
3176
3248
|
updatedAt: string;
|
|
3177
3249
|
scope: "invoice" | "proforma" | "credit_note";
|
|
3178
|
-
|
|
3179
|
-
active: boolean;
|
|
3250
|
+
prefix: string;
|
|
3180
3251
|
separator: string;
|
|
3181
3252
|
padLength: number;
|
|
3182
3253
|
currentSequence: number;
|
|
@@ -3368,17 +3439,17 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3368
3439
|
input: {};
|
|
3369
3440
|
output: {
|
|
3370
3441
|
data: {
|
|
3371
|
-
metadata: import("hono/utils/types").JSONValue;
|
|
3372
3442
|
name: string;
|
|
3373
3443
|
id: string;
|
|
3374
3444
|
createdAt: string;
|
|
3375
|
-
updatedAt: string;
|
|
3376
|
-
slug: string;
|
|
3377
3445
|
active: boolean;
|
|
3378
|
-
|
|
3446
|
+
updatedAt: string;
|
|
3447
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
3379
3448
|
language: string;
|
|
3380
3449
|
jurisdiction: string | null;
|
|
3450
|
+
slug: string;
|
|
3381
3451
|
bodyFormat: "html" | "markdown" | "lexical_json";
|
|
3452
|
+
body: string;
|
|
3382
3453
|
cssStyles: string | null;
|
|
3383
3454
|
isDefault: boolean;
|
|
3384
3455
|
} | null;
|
|
@@ -3525,14 +3596,14 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3525
3596
|
input: {};
|
|
3526
3597
|
output: {
|
|
3527
3598
|
data: {
|
|
3528
|
-
metadata: import("hono/utils/types").JSONValue;
|
|
3529
3599
|
name: string;
|
|
3530
3600
|
id: string;
|
|
3531
|
-
createdAt: string;
|
|
3532
|
-
updatedAt: string;
|
|
3533
3601
|
description: string | null;
|
|
3534
|
-
|
|
3602
|
+
createdAt: string;
|
|
3535
3603
|
active: boolean;
|
|
3604
|
+
code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
|
|
3605
|
+
updatedAt: string;
|
|
3606
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
3536
3607
|
jurisdiction: string | null;
|
|
3537
3608
|
ratePercent: number | null;
|
|
3538
3609
|
legalReference: string | null;
|
|
@@ -3678,11 +3749,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3678
3749
|
output: {
|
|
3679
3750
|
data: {
|
|
3680
3751
|
id: string;
|
|
3681
|
-
createdAt: string;
|
|
3682
|
-
updatedAt: string;
|
|
3683
3752
|
description: string | null;
|
|
3684
|
-
|
|
3753
|
+
createdAt: string;
|
|
3685
3754
|
active: boolean;
|
|
3755
|
+
code: string;
|
|
3756
|
+
updatedAt: string;
|
|
3686
3757
|
label: string;
|
|
3687
3758
|
defaultRegimeId: string | null;
|
|
3688
3759
|
lines: {
|
|
@@ -3830,11 +3901,11 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3830
3901
|
data: {
|
|
3831
3902
|
name: string;
|
|
3832
3903
|
id: string;
|
|
3833
|
-
createdAt: string;
|
|
3834
|
-
updatedAt: string;
|
|
3835
3904
|
description: string | null;
|
|
3836
|
-
|
|
3905
|
+
createdAt: string;
|
|
3837
3906
|
active: boolean;
|
|
3907
|
+
code: string;
|
|
3908
|
+
updatedAt: string;
|
|
3838
3909
|
jurisdiction: string | null;
|
|
3839
3910
|
} | null;
|
|
3840
3911
|
};
|
|
@@ -3949,7 +4020,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3949
4020
|
side: "sell" | "buy";
|
|
3950
4021
|
priority: number;
|
|
3951
4022
|
name: string;
|
|
3952
|
-
appliesTo: "
|
|
4023
|
+
appliesTo: "base" | "addon" | "accommodation" | "all";
|
|
3953
4024
|
condition: {
|
|
3954
4025
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
3955
4026
|
} | null;
|
|
@@ -3975,13 +4046,13 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3975
4046
|
name: string;
|
|
3976
4047
|
id: string;
|
|
3977
4048
|
createdAt: string;
|
|
3978
|
-
updatedAt: string;
|
|
3979
4049
|
active: boolean;
|
|
4050
|
+
updatedAt: string;
|
|
3980
4051
|
taxRegimeId: string;
|
|
3981
4052
|
profileId: string;
|
|
3982
4053
|
side: "sell" | "buy";
|
|
3983
4054
|
priority: number;
|
|
3984
|
-
appliesTo: "
|
|
4055
|
+
appliesTo: "base" | "addon" | "accommodation" | "all";
|
|
3985
4056
|
condition: {
|
|
3986
4057
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
3987
4058
|
} | null;
|
|
@@ -4017,7 +4088,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4017
4088
|
side: "sell" | "buy";
|
|
4018
4089
|
priority: number;
|
|
4019
4090
|
name: string;
|
|
4020
|
-
appliesTo: "
|
|
4091
|
+
appliesTo: "base" | "addon" | "accommodation" | "all";
|
|
4021
4092
|
condition: {
|
|
4022
4093
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
4023
4094
|
} | null;
|
|
@@ -4057,7 +4128,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4057
4128
|
side: "sell" | "buy";
|
|
4058
4129
|
priority: number;
|
|
4059
4130
|
name: string;
|
|
4060
|
-
appliesTo: "
|
|
4131
|
+
appliesTo: "base" | "addon" | "accommodation" | "all";
|
|
4061
4132
|
condition: {
|
|
4062
4133
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
4063
4134
|
} | null;
|
|
@@ -4110,8 +4181,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4110
4181
|
id: string;
|
|
4111
4182
|
invoiceId: string;
|
|
4112
4183
|
templateId: string | null;
|
|
4113
|
-
format: "json" | "
|
|
4114
|
-
status: "
|
|
4184
|
+
format: "json" | "html" | "pdf" | "xml";
|
|
4185
|
+
status: "failed" | "pending" | "ready" | "stale";
|
|
4115
4186
|
storageKey: string | null;
|
|
4116
4187
|
fileSize: number | null;
|
|
4117
4188
|
checksum: string | null;
|
|
@@ -4174,15 +4245,15 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4174
4245
|
};
|
|
4175
4246
|
output: {
|
|
4176
4247
|
data: {
|
|
4177
|
-
metadata: import("hono/utils/types").JSONValue;
|
|
4178
4248
|
name: string;
|
|
4179
4249
|
id: string;
|
|
4180
4250
|
createdAt: string;
|
|
4181
|
-
|
|
4251
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
4182
4252
|
invoiceId: string;
|
|
4183
4253
|
storageKey: string | null;
|
|
4184
4254
|
fileSize: number | null;
|
|
4185
4255
|
checksum: string | null;
|
|
4256
|
+
kind: string;
|
|
4186
4257
|
mimeType: string | null;
|
|
4187
4258
|
};
|
|
4188
4259
|
};
|
|
@@ -4317,19 +4388,19 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4317
4388
|
};
|
|
4318
4389
|
output: {
|
|
4319
4390
|
data: {
|
|
4320
|
-
|
|
4391
|
+
format: "json" | "html" | "pdf" | "xml";
|
|
4321
4392
|
id: string;
|
|
4393
|
+
status: "failed" | "pending" | "ready" | "stale";
|
|
4322
4394
|
createdAt: string;
|
|
4323
4395
|
updatedAt: string;
|
|
4324
|
-
|
|
4325
|
-
format: "json" | "pdf" | "html" | "xml";
|
|
4326
|
-
errorMessage: string | null;
|
|
4396
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
4327
4397
|
templateId: string | null;
|
|
4328
4398
|
language: string | null;
|
|
4329
4399
|
invoiceId: string;
|
|
4330
4400
|
storageKey: string | null;
|
|
4331
4401
|
fileSize: number | null;
|
|
4332
4402
|
checksum: string | null;
|
|
4403
|
+
errorMessage: string | null;
|
|
4333
4404
|
generatedAt: string | null;
|
|
4334
4405
|
} | null;
|
|
4335
4406
|
};
|
|
@@ -4386,12 +4457,12 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4386
4457
|
};
|
|
4387
4458
|
output: {
|
|
4388
4459
|
data: {
|
|
4389
|
-
metadata: import("hono/utils/types").JSONValue;
|
|
4390
4460
|
id: string;
|
|
4461
|
+
status: string | null;
|
|
4391
4462
|
createdAt: string;
|
|
4392
4463
|
updatedAt: string;
|
|
4393
|
-
status: string | null;
|
|
4394
4464
|
provider: string;
|
|
4465
|
+
metadata: import("hono/utils/types").JSONValue;
|
|
4395
4466
|
invoiceId: string;
|
|
4396
4467
|
externalId: string | null;
|
|
4397
4468
|
externalNumber: string | null;
|
|
@@ -4443,7 +4514,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4443
4514
|
id: string;
|
|
4444
4515
|
code: string;
|
|
4445
4516
|
seriesCode: string | null;
|
|
4446
|
-
status: "
|
|
4517
|
+
status: "expired" | "void" | "active" | "redeemed";
|
|
4447
4518
|
currency: string;
|
|
4448
4519
|
initialAmountCents: number;
|
|
4449
4520
|
remainingAmountCents: number;
|
|
@@ -4474,23 +4545,23 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4474
4545
|
output: {
|
|
4475
4546
|
data: {
|
|
4476
4547
|
id: string;
|
|
4548
|
+
status: "expired" | "void" | "active" | "redeemed";
|
|
4477
4549
|
createdAt: string;
|
|
4478
|
-
updatedAt: string;
|
|
4479
4550
|
expiresAt: string | null;
|
|
4480
|
-
status: "void" | "active" | "expired" | "redeemed";
|
|
4481
|
-
currency: string;
|
|
4482
|
-
notes: string | null;
|
|
4483
4551
|
code: string;
|
|
4484
|
-
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
4485
4552
|
seriesCode: string | null;
|
|
4553
|
+
currency: string;
|
|
4486
4554
|
initialAmountCents: number;
|
|
4487
4555
|
remainingAmountCents: number;
|
|
4488
4556
|
issuedToPersonId: string | null;
|
|
4489
4557
|
issuedToOrganizationId: string | null;
|
|
4558
|
+
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
4490
4559
|
sourceBookingId: string | null;
|
|
4491
4560
|
sourcePaymentId: string | null;
|
|
4492
4561
|
validFrom: string | null;
|
|
4562
|
+
notes: string | null;
|
|
4493
4563
|
issuedByUserId: string | null;
|
|
4564
|
+
updatedAt: string;
|
|
4494
4565
|
} | null;
|
|
4495
4566
|
};
|
|
4496
4567
|
outputFormat: "json";
|
|
@@ -4537,7 +4608,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4537
4608
|
id: string;
|
|
4538
4609
|
code: string;
|
|
4539
4610
|
seriesCode: string | null;
|
|
4540
|
-
status: "
|
|
4611
|
+
status: "expired" | "void" | "active" | "redeemed";
|
|
4541
4612
|
currency: string;
|
|
4542
4613
|
initialAmountCents: number;
|
|
4543
4614
|
remainingAmountCents: number;
|
|
@@ -4582,7 +4653,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4582
4653
|
id: string;
|
|
4583
4654
|
code: string;
|
|
4584
4655
|
seriesCode: string | null;
|
|
4585
|
-
status: "
|
|
4656
|
+
status: "expired" | "void" | "active" | "redeemed";
|
|
4586
4657
|
currency: string;
|
|
4587
4658
|
initialAmountCents: number;
|
|
4588
4659
|
remainingAmountCents: number;
|
|
@@ -4617,7 +4688,7 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4617
4688
|
id: string;
|
|
4618
4689
|
code: string;
|
|
4619
4690
|
seriesCode: string | null;
|
|
4620
|
-
status: "
|
|
4691
|
+
status: "expired" | "void" | "active" | "redeemed";
|
|
4621
4692
|
currency: string;
|
|
4622
4693
|
initialAmountCents: number;
|
|
4623
4694
|
remainingAmountCents: number;
|
|
@@ -4636,8 +4707,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4636
4707
|
redemption: {
|
|
4637
4708
|
id: string;
|
|
4638
4709
|
createdAt: string;
|
|
4639
|
-
bookingId: string;
|
|
4640
4710
|
voucherId: string;
|
|
4711
|
+
bookingId: string;
|
|
4641
4712
|
paymentId: string | null;
|
|
4642
4713
|
amountCents: number;
|
|
4643
4714
|
createdByUserId: string | null;
|
|
@@ -4686,8 +4757,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
4686
4757
|
invoiceId: string;
|
|
4687
4758
|
invoiceNumber: string;
|
|
4688
4759
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
4689
|
-
status: "
|
|
4690
|
-
paymentMethod: "
|
|
4760
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
4761
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
4691
4762
|
amountCents: number;
|
|
4692
4763
|
currency: string;
|
|
4693
4764
|
paymentDate: string;
|