@voyant-travel/finance 0.167.0 → 0.168.0
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/README.md +23 -9
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/booking-lifecycle.d.ts.map +1 -0
- package/dist/booking-schedule/subscriber-runtime.d.ts.map +1 -0
- package/dist/booking-tax.d.ts +31 -19
- package/dist/booking-tax.d.ts.map +1 -0
- package/dist/booking-tax.js +48 -15
- package/dist/card-payment.d.ts.map +1 -0
- package/dist/checkout-routes.d.ts +294 -294
- package/dist/checkout-routes.d.ts.map +1 -0
- package/dist/checkout-service-plan.d.ts +2 -2
- package/dist/checkout-service-plan.d.ts.map +1 -0
- package/dist/checkout-service.d.ts.map +1 -0
- package/dist/checkout-validation.d.ts.map +1 -0
- package/dist/document-download.d.ts.map +1 -0
- package/dist/fx-money.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -3
- package/dist/invoice-fx.d.ts.map +1 -0
- package/dist/invoice-number-errors.d.ts.map +1 -0
- package/dist/linkables.d.ts.map +1 -0
- package/dist/markets-ref.d.ts.map +1 -0
- package/dist/mcp-runtime.d.ts.map +1 -0
- package/dist/order-payment-sessions.d.ts.map +1 -0
- package/dist/payment-adapter-events.d.ts +3 -3
- package/dist/payment-link.d.ts.map +1 -0
- package/dist/payment-policy-cascade.d.ts.map +1 -0
- package/dist/payment-policy.d.ts.map +1 -0
- package/dist/payment-schedule/routes.d.ts +2 -2
- package/dist/payment-schedule/routes.d.ts.map +1 -0
- package/dist/route-runtime.d.ts.map +1 -0
- package/dist/routes-action-ledger.d.ts +25 -25
- package/dist/routes-action-ledger.d.ts.map +1 -0
- package/dist/routes-booking-billing.d.ts +95 -95
- package/dist/routes-booking-billing.d.ts.map +1 -0
- package/dist/routes-booking-create.d.ts.map +1 -0
- package/dist/routes-booking-reads.d.ts +13 -13
- package/dist/routes-booking-reads.d.ts.map +1 -0
- package/dist/routes-documents.d.ts +11 -11
- package/dist/routes-documents.d.ts.map +1 -0
- package/dist/routes-invoice-core.d.ts +87 -87
- package/dist/routes-invoice-core.d.ts.map +1 -0
- package/dist/routes-invoice-documents.d.ts +16 -16
- package/dist/routes-invoice-documents.d.ts.map +1 -0
- package/dist/routes-invoice-issue.d.ts.map +1 -0
- package/dist/routes-invoice-schemas.d.ts +20 -20
- package/dist/routes-invoice-schemas.d.ts.map +1 -0
- package/dist/routes-payment-processing.d.ts +152 -152
- package/dist/routes-payment-processing.d.ts.map +1 -0
- package/dist/routes-payment-schemas.d.ts +17 -17
- package/dist/routes-payment-schemas.d.ts.map +1 -0
- package/dist/routes-payments.d.ts +64 -64
- package/dist/routes-payments.d.ts.map +1 -0
- package/dist/routes-public-accountant.d.ts +19 -19
- package/dist/routes-public.d.ts +102 -102
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-reference-data.d.ts +33 -33
- package/dist/routes-reference-data.d.ts.map +1 -0
- package/dist/routes-reports.d.ts +11 -11
- package/dist/routes-reports.d.ts.map +1 -0
- package/dist/routes-runtime.d.ts +1 -1
- package/dist/routes-runtime.d.ts.map +1 -0
- package/dist/routes-settlement.d.ts +12 -12
- package/dist/routes-settlement.d.ts.map +1 -0
- package/dist/routes-shared.d.ts.map +1 -0
- package/dist/routes-supplier-invoices.d.ts +75 -75
- package/dist/routes-supplier-invoices.d.ts.map +1 -0
- package/dist/routes-travel-credits.d.ts +4 -4
- package/dist/routes-vouchers.d.ts +401 -0
- package/dist/routes-vouchers.d.ts.map +1 -0
- package/dist/routes-vouchers.js +176 -0
- package/dist/routes.d.ts +477 -477
- package/dist/routes.d.ts.map +1 -0
- package/dist/runtime-contributor.d.ts.map +1 -0
- package/dist/runtime-port.d.ts +20 -24
- package/dist/runtime-port.d.ts.map +1 -0
- package/dist/runtime-port.js +10 -11
- package/dist/runtime.d.ts.map +1 -0
- package/dist/schema/booking-billing.d.ts +5 -5
- package/dist/schema/booking-billing.d.ts.map +1 -0
- package/dist/schema/enums.d.ts.map +1 -0
- package/dist/schema/invoice-documents.d.ts +1 -1
- package/dist/schema/invoice-documents.d.ts.map +1 -0
- package/dist/schema/payment-instruments.d.ts +1 -1
- package/dist/schema/payment-instruments.d.ts.map +1 -0
- package/dist/schema/payment-processing.d.ts +3 -3
- package/dist/schema/payment-processing.d.ts.map +1 -0
- package/dist/schema/payment-sessions.d.ts +3 -3
- package/dist/schema/payment-sessions.d.ts.map +1 -0
- package/dist/schema/receivables.d.ts +3 -3
- package/dist/schema/receivables.d.ts.map +1 -0
- package/dist/schema/relations.d.ts.map +1 -0
- package/dist/schema/supplier-invoices.d.ts +5 -5
- package/dist/schema/supplier-invoices.d.ts.map +1 -0
- package/dist/schema/tax.d.ts +1 -1
- package/dist/schema/tax.d.ts.map +1 -0
- package/dist/schema/vouchers.d.ts +444 -0
- package/dist/schema/vouchers.d.ts.map +1 -0
- package/dist/schema/vouchers.js +64 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/service-accountant-shares.d.ts.map +1 -0
- package/dist/service-action-ledger-accounting.d.ts.map +1 -0
- package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
- package/dist/service-action-ledger-bookings.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-invoices.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
- package/dist/service-action-ledger.d.ts.map +1 -0
- package/dist/service-aggregates.d.ts.map +1 -0
- package/dist/service-booking-billing.d.ts +111 -111
- package/dist/service-booking-billing.d.ts.map +1 -0
- package/dist/service-booking-create.d.ts +11 -11
- package/dist/service-booking-create.d.ts.map +1 -0
- package/dist/service-booking-guarantees.d.ts +34 -34
- package/dist/service-booking-guarantees.d.ts.map +1 -0
- package/dist/service-booking-item-billing.d.ts +21 -21
- package/dist/service-booking-item-billing.d.ts.map +1 -0
- package/dist/service-booking-payment-schedules.d.ts +56 -56
- package/dist/service-booking-payment-schedules.d.ts.map +1 -0
- package/dist/service-bookings-dual-create.d.ts +22 -22
- package/dist/service-bookings-dual-create.d.ts.map +1 -0
- package/dist/service-boundary-sql.d.ts.map +1 -0
- package/dist/service-cost-categories.d.ts.map +1 -0
- package/dist/service-documents.d.ts.map +1 -0
- package/dist/service-invoice-artifacts.d.ts +24 -24
- package/dist/service-invoice-artifacts.d.ts.map +1 -0
- package/dist/service-invoice-core.d.ts +28 -28
- package/dist/service-invoice-core.d.ts.map +1 -0
- package/dist/service-invoice-credit-notes.d.ts +10 -10
- package/dist/service-invoice-credit-notes.d.ts.map +1 -0
- package/dist/service-invoice-from-booking.d.ts +19 -19
- package/dist/service-invoice-from-booking.d.ts.map +1 -0
- package/dist/service-invoice-line-items.d.ts +10 -10
- package/dist/service-invoice-line-items.d.ts.map +1 -0
- package/dist/service-invoice-numbering.d.ts +28 -28
- package/dist/service-invoice-numbering.d.ts.map +1 -0
- package/dist/service-invoice-payments.d.ts +20 -20
- package/dist/service-invoice-payments.d.ts.map +1 -0
- package/dist/service-invoices.d.ts +87 -87
- package/dist/service-invoices.d.ts.map +1 -0
- package/dist/service-issue.d.ts +38 -38
- package/dist/service-issue.d.ts.map +1 -0
- package/dist/service-payment-authorizations.d.ts +26 -26
- package/dist/service-payment-authorizations.d.ts.map +1 -0
- package/dist/service-payment-instruments.d.ts +10 -10
- package/dist/service-payment-instruments.d.ts.map +1 -0
- package/dist/service-payment-processing.d.ts +77 -77
- package/dist/service-payment-processing.d.ts.map +1 -0
- package/dist/service-payment-session-completion.d.ts +3 -3
- package/dist/service-payment-session-completion.d.ts.map +1 -0
- package/dist/service-payment-sessions.d.ts +38 -38
- package/dist/service-payment-sessions.d.ts.map +1 -0
- package/dist/service-profitability.d.ts.map +1 -0
- package/dist/service-public.d.ts +16 -16
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-reference-data.d.ts +23 -23
- package/dist/service-reference-data.d.ts.map +1 -0
- package/dist/service-rendition-wait.d.ts +1 -1
- package/dist/service-rendition-wait.d.ts.map +1 -0
- package/dist/service-reports.d.ts.map +1 -0
- package/dist/service-settlement.d.ts.map +1 -0
- package/dist/service-shared.d.ts +4 -4
- package/dist/service-shared.d.ts.map +1 -0
- package/dist/service-supplier-invoices.d.ts +20 -20
- package/dist/service-supplier-invoices.d.ts.map +1 -0
- package/dist/service-supplier-payments.d.ts +16 -16
- package/dist/service-supplier-payments.d.ts.map +1 -0
- package/dist/service-travel-credits.d.ts +10 -10
- package/dist/service-vouchers-migration.d.ts +51 -0
- package/dist/service-vouchers-migration.d.ts.map +1 -0
- package/dist/service-vouchers-migration.js +154 -0
- package/dist/service-vouchers.d.ts +157 -0
- package/dist/service-vouchers.d.ts.map +1 -0
- package/dist/service-vouchers.js +191 -0
- package/dist/service.d.ts +376 -376
- package/dist/service.d.ts.map +1 -0
- package/dist/stale-booking-holds-runtime.d.ts.map +1 -0
- package/dist/tools.d.ts +21 -21
- package/dist/tools.d.ts.map +1 -0
- package/dist/validation-billing.d.ts.map +1 -0
- package/dist/validation-payments.d.ts.map +1 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-shared.d.ts.map +1 -0
- package/dist/validation-vouchers.d.ts +2 -0
- package/dist/validation-vouchers.d.ts.map +1 -0
- package/dist/validation-vouchers.js +1 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/voyant.d.ts +2 -1
- package/dist/voyant.d.ts.map +1 -0
- package/dist/voyant.js +43 -7
- package/openapi/admin/booking-tax-preview.json +33 -0
- package/openapi/admin/{booking-tax.json → booking-tax-settings.json} +7 -32
- package/package.json +205 -170
- package/LICENSE +0 -201
package/dist/routes-public.d.ts
CHANGED
|
@@ -6,17 +6,6 @@ export interface PublicFinanceRouteOptions {
|
|
|
6
6
|
export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOptions): OpenAPIHono<Env, import("hono/types").MergeSchemaPath<{
|
|
7
7
|
"/accountant/:token/summary": {
|
|
8
8
|
$get: {
|
|
9
|
-
input: {
|
|
10
|
-
param: {
|
|
11
|
-
token: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
output: {
|
|
15
|
-
error: string;
|
|
16
|
-
};
|
|
17
|
-
outputFormat: "json";
|
|
18
|
-
status: 404;
|
|
19
|
-
} | {
|
|
20
9
|
input: {
|
|
21
10
|
param: {
|
|
22
11
|
token: string;
|
|
@@ -34,6 +23,17 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
34
23
|
};
|
|
35
24
|
outputFormat: "json";
|
|
36
25
|
status: 200;
|
|
26
|
+
} | {
|
|
27
|
+
input: {
|
|
28
|
+
param: {
|
|
29
|
+
token: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
output: {
|
|
33
|
+
error: string;
|
|
34
|
+
};
|
|
35
|
+
outputFormat: "json";
|
|
36
|
+
status: 404;
|
|
37
37
|
} | {
|
|
38
38
|
input: {
|
|
39
39
|
param: {
|
|
@@ -96,9 +96,11 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
96
96
|
token: string;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
output:
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
output: {
|
|
100
|
+
error: string;
|
|
101
|
+
};
|
|
102
|
+
outputFormat: "json";
|
|
103
|
+
status: 404;
|
|
102
104
|
} | {
|
|
103
105
|
input: {
|
|
104
106
|
param: {
|
|
@@ -109,11 +111,9 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
109
111
|
token: string;
|
|
110
112
|
};
|
|
111
113
|
};
|
|
112
|
-
output:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
outputFormat: "json";
|
|
116
|
-
status: 404;
|
|
114
|
+
output: undefined;
|
|
115
|
+
outputFormat: "redirect";
|
|
116
|
+
status: 302;
|
|
117
117
|
} | {
|
|
118
118
|
input: {
|
|
119
119
|
param: {
|
|
@@ -208,7 +208,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
208
208
|
idempotencyKey?: string | null | undefined;
|
|
209
209
|
} | undefined;
|
|
210
210
|
provider?: string | null | undefined;
|
|
211
|
-
paymentMethod?: "
|
|
211
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
212
212
|
paymentInstrumentId?: string | null | undefined;
|
|
213
213
|
payerPersonId?: string | null | undefined;
|
|
214
214
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -278,7 +278,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
278
278
|
idempotencyKey?: string | null | undefined;
|
|
279
279
|
} | undefined;
|
|
280
280
|
provider?: string | null | undefined;
|
|
281
|
-
paymentMethod?: "
|
|
281
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
282
282
|
paymentInstrumentId?: string | null | undefined;
|
|
283
283
|
payerPersonId?: string | null | undefined;
|
|
284
284
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -414,7 +414,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
414
414
|
idempotencyKey?: string | null | undefined;
|
|
415
415
|
} | undefined;
|
|
416
416
|
provider?: string | null | undefined;
|
|
417
|
-
paymentMethod?: "
|
|
417
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
418
418
|
paymentInstrumentId?: string | null | undefined;
|
|
419
419
|
payerPersonId?: string | null | undefined;
|
|
420
420
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -488,7 +488,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
488
488
|
idempotencyKey?: string | null | undefined;
|
|
489
489
|
} | undefined;
|
|
490
490
|
provider?: string | null | undefined;
|
|
491
|
-
paymentMethod?: "
|
|
491
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
492
492
|
paymentInstrumentId?: string | null | undefined;
|
|
493
493
|
payerPersonId?: string | null | undefined;
|
|
494
494
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -558,7 +558,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
558
558
|
idempotencyKey?: string | null | undefined;
|
|
559
559
|
} | undefined;
|
|
560
560
|
provider?: string | null | undefined;
|
|
561
|
-
paymentMethod?: "
|
|
561
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
562
562
|
paymentInstrumentId?: string | null | undefined;
|
|
563
563
|
payerPersonId?: string | null | undefined;
|
|
564
564
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -628,7 +628,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
628
628
|
idempotencyKey?: string | null | undefined;
|
|
629
629
|
} | undefined;
|
|
630
630
|
provider?: string | null | undefined;
|
|
631
|
-
paymentMethod?: "
|
|
631
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
632
632
|
paymentInstrumentId?: string | null | undefined;
|
|
633
633
|
payerPersonId?: string | null | undefined;
|
|
634
634
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -767,7 +767,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
767
767
|
idempotencyKey?: string | null | undefined;
|
|
768
768
|
} | undefined;
|
|
769
769
|
provider?: string | null | undefined;
|
|
770
|
-
paymentMethod?: "
|
|
770
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
771
771
|
paymentInstrumentId?: string | null | undefined;
|
|
772
772
|
payerPersonId?: string | null | undefined;
|
|
773
773
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -836,7 +836,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
836
836
|
idempotencyKey?: string | null | undefined;
|
|
837
837
|
} | undefined;
|
|
838
838
|
provider?: string | null | undefined;
|
|
839
|
-
paymentMethod?: "
|
|
839
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
840
840
|
paymentInstrumentId?: string | null | undefined;
|
|
841
841
|
payerPersonId?: string | null | undefined;
|
|
842
842
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -905,7 +905,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
905
905
|
idempotencyKey?: string | null | undefined;
|
|
906
906
|
} | undefined;
|
|
907
907
|
provider?: string | null | undefined;
|
|
908
|
-
paymentMethod?: "
|
|
908
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
909
909
|
paymentInstrumentId?: string | null | undefined;
|
|
910
910
|
payerPersonId?: string | null | undefined;
|
|
911
911
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -1022,7 +1022,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1022
1022
|
invoiceId: string;
|
|
1023
1023
|
invoiceNumber: string;
|
|
1024
1024
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1025
|
-
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue"
|
|
1025
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1026
1026
|
currency: string;
|
|
1027
1027
|
totalCents: number;
|
|
1028
1028
|
paidCents: number;
|
|
@@ -1031,7 +1031,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1031
1031
|
dueDate: string;
|
|
1032
1032
|
renditionId: string | null;
|
|
1033
1033
|
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
1034
|
-
format: "
|
|
1034
|
+
format: "json" | "xml" | "pdf" | "html" | null;
|
|
1035
1035
|
language: string | null;
|
|
1036
1036
|
generatedAt: string | null;
|
|
1037
1037
|
fileSize: number | null;
|
|
@@ -1078,7 +1078,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1078
1078
|
invoiceId: string;
|
|
1079
1079
|
invoiceNumber: string;
|
|
1080
1080
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1081
|
-
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue"
|
|
1081
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1082
1082
|
currency: string;
|
|
1083
1083
|
totalCents: number;
|
|
1084
1084
|
paidCents: number;
|
|
@@ -1087,7 +1087,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1087
1087
|
dueDate: string;
|
|
1088
1088
|
renditionId: string | null;
|
|
1089
1089
|
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
1090
|
-
format: "
|
|
1090
|
+
format: "json" | "xml" | "pdf" | "html" | null;
|
|
1091
1091
|
language: string | null;
|
|
1092
1092
|
generatedAt: string | null;
|
|
1093
1093
|
fileSize: number | null;
|
|
@@ -1128,8 +1128,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1128
1128
|
invoiceId: string | null;
|
|
1129
1129
|
invoiceNumber: string | null;
|
|
1130
1130
|
invoiceType: "invoice" | "proforma" | "credit_note" | null;
|
|
1131
|
-
status: "pending" | "
|
|
1132
|
-
paymentMethod: "
|
|
1131
|
+
status: "pending" | "failed" | "completed" | "refunded";
|
|
1132
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque";
|
|
1133
1133
|
amountCents: number;
|
|
1134
1134
|
currency: string;
|
|
1135
1135
|
baseCurrency: string | null;
|
|
@@ -1156,7 +1156,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1156
1156
|
personId?: string | undefined;
|
|
1157
1157
|
organizationId?: string | undefined;
|
|
1158
1158
|
provider?: string | undefined;
|
|
1159
|
-
instrumentType?: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
1159
|
+
instrumentType?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account" | undefined;
|
|
1160
1160
|
includeInactive?: unknown;
|
|
1161
1161
|
};
|
|
1162
1162
|
};
|
|
@@ -1175,7 +1175,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1175
1175
|
personId?: string | undefined;
|
|
1176
1176
|
organizationId?: string | undefined;
|
|
1177
1177
|
provider?: string | undefined;
|
|
1178
|
-
instrumentType?: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
1178
|
+
instrumentType?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account" | undefined;
|
|
1179
1179
|
includeInactive?: unknown;
|
|
1180
1180
|
};
|
|
1181
1181
|
};
|
|
@@ -1186,7 +1186,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1186
1186
|
id: string;
|
|
1187
1187
|
label: string;
|
|
1188
1188
|
provider: string | null;
|
|
1189
|
-
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
1189
|
+
instrumentType: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account";
|
|
1190
1190
|
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
1191
1191
|
brand: string | null;
|
|
1192
1192
|
last4: string | null;
|
|
@@ -1197,7 +1197,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1197
1197
|
schedules: {
|
|
1198
1198
|
id: string;
|
|
1199
1199
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
1200
|
-
status: "paid" | "
|
|
1200
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
1201
1201
|
dueDate: string;
|
|
1202
1202
|
currency: string;
|
|
1203
1203
|
amountCents: number;
|
|
@@ -1349,18 +1349,6 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1349
1349
|
} & {
|
|
1350
1350
|
"/documents/by-reference": {
|
|
1351
1351
|
$get: {
|
|
1352
|
-
input: {
|
|
1353
|
-
query: {
|
|
1354
|
-
reference: string;
|
|
1355
|
-
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
1356
|
-
};
|
|
1357
|
-
};
|
|
1358
|
-
output: {
|
|
1359
|
-
error: string;
|
|
1360
|
-
};
|
|
1361
|
-
outputFormat: "json";
|
|
1362
|
-
status: 404;
|
|
1363
|
-
} | {
|
|
1364
1352
|
input: {
|
|
1365
1353
|
query: {
|
|
1366
1354
|
reference: string;
|
|
@@ -1372,7 +1360,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1372
1360
|
invoiceId: string;
|
|
1373
1361
|
invoiceNumber: string;
|
|
1374
1362
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1375
|
-
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue"
|
|
1363
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1376
1364
|
currency: string;
|
|
1377
1365
|
totalCents: number;
|
|
1378
1366
|
paidCents: number;
|
|
@@ -1381,7 +1369,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1381
1369
|
dueDate: string;
|
|
1382
1370
|
renditionId: string | null;
|
|
1383
1371
|
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
1384
|
-
format: "
|
|
1372
|
+
format: "json" | "xml" | "pdf" | "html" | null;
|
|
1385
1373
|
language: string | null;
|
|
1386
1374
|
generatedAt: string | null;
|
|
1387
1375
|
fileSize: number | null;
|
|
@@ -1392,15 +1380,11 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1392
1380
|
};
|
|
1393
1381
|
outputFormat: "json";
|
|
1394
1382
|
status: 200;
|
|
1395
|
-
}
|
|
1396
|
-
};
|
|
1397
|
-
}, "/">, "/">;
|
|
1398
|
-
export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").MergeSchemaPath<{
|
|
1399
|
-
"/accountant/:token/summary": {
|
|
1400
|
-
$get: {
|
|
1383
|
+
} | {
|
|
1401
1384
|
input: {
|
|
1402
|
-
|
|
1403
|
-
|
|
1385
|
+
query: {
|
|
1386
|
+
reference: string;
|
|
1387
|
+
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
1404
1388
|
};
|
|
1405
1389
|
};
|
|
1406
1390
|
output: {
|
|
@@ -1408,7 +1392,12 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1408
1392
|
};
|
|
1409
1393
|
outputFormat: "json";
|
|
1410
1394
|
status: 404;
|
|
1411
|
-
}
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
}, "/">, "/">;
|
|
1398
|
+
export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").MergeSchemaPath<{
|
|
1399
|
+
"/accountant/:token/summary": {
|
|
1400
|
+
$get: {
|
|
1412
1401
|
input: {
|
|
1413
1402
|
param: {
|
|
1414
1403
|
token: string;
|
|
@@ -1426,6 +1415,17 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1426
1415
|
};
|
|
1427
1416
|
outputFormat: "json";
|
|
1428
1417
|
status: 200;
|
|
1418
|
+
} | {
|
|
1419
|
+
input: {
|
|
1420
|
+
param: {
|
|
1421
|
+
token: string;
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
output: {
|
|
1425
|
+
error: string;
|
|
1426
|
+
};
|
|
1427
|
+
outputFormat: "json";
|
|
1428
|
+
status: 404;
|
|
1429
1429
|
} | {
|
|
1430
1430
|
input: {
|
|
1431
1431
|
param: {
|
|
@@ -1488,9 +1488,11 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1488
1488
|
token: string;
|
|
1489
1489
|
};
|
|
1490
1490
|
};
|
|
1491
|
-
output:
|
|
1492
|
-
|
|
1493
|
-
|
|
1491
|
+
output: {
|
|
1492
|
+
error: string;
|
|
1493
|
+
};
|
|
1494
|
+
outputFormat: "json";
|
|
1495
|
+
status: 404;
|
|
1494
1496
|
} | {
|
|
1495
1497
|
input: {
|
|
1496
1498
|
param: {
|
|
@@ -1501,11 +1503,9 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1501
1503
|
token: string;
|
|
1502
1504
|
};
|
|
1503
1505
|
};
|
|
1504
|
-
output:
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
outputFormat: "json";
|
|
1508
|
-
status: 404;
|
|
1506
|
+
output: undefined;
|
|
1507
|
+
outputFormat: "redirect";
|
|
1508
|
+
status: 302;
|
|
1509
1509
|
} | {
|
|
1510
1510
|
input: {
|
|
1511
1511
|
param: {
|
|
@@ -1600,7 +1600,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1600
1600
|
idempotencyKey?: string | null | undefined;
|
|
1601
1601
|
} | undefined;
|
|
1602
1602
|
provider?: string | null | undefined;
|
|
1603
|
-
paymentMethod?: "
|
|
1603
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
1604
1604
|
paymentInstrumentId?: string | null | undefined;
|
|
1605
1605
|
payerPersonId?: string | null | undefined;
|
|
1606
1606
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -1670,7 +1670,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1670
1670
|
idempotencyKey?: string | null | undefined;
|
|
1671
1671
|
} | undefined;
|
|
1672
1672
|
provider?: string | null | undefined;
|
|
1673
|
-
paymentMethod?: "
|
|
1673
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
1674
1674
|
paymentInstrumentId?: string | null | undefined;
|
|
1675
1675
|
payerPersonId?: string | null | undefined;
|
|
1676
1676
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -1806,7 +1806,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1806
1806
|
idempotencyKey?: string | null | undefined;
|
|
1807
1807
|
} | undefined;
|
|
1808
1808
|
provider?: string | null | undefined;
|
|
1809
|
-
paymentMethod?: "
|
|
1809
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
1810
1810
|
paymentInstrumentId?: string | null | undefined;
|
|
1811
1811
|
payerPersonId?: string | null | undefined;
|
|
1812
1812
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -1880,7 +1880,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1880
1880
|
idempotencyKey?: string | null | undefined;
|
|
1881
1881
|
} | undefined;
|
|
1882
1882
|
provider?: string | null | undefined;
|
|
1883
|
-
paymentMethod?: "
|
|
1883
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
1884
1884
|
paymentInstrumentId?: string | null | undefined;
|
|
1885
1885
|
payerPersonId?: string | null | undefined;
|
|
1886
1886
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -1950,7 +1950,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
1950
1950
|
idempotencyKey?: string | null | undefined;
|
|
1951
1951
|
} | undefined;
|
|
1952
1952
|
provider?: string | null | undefined;
|
|
1953
|
-
paymentMethod?: "
|
|
1953
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
1954
1954
|
paymentInstrumentId?: string | null | undefined;
|
|
1955
1955
|
payerPersonId?: string | null | undefined;
|
|
1956
1956
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -2020,7 +2020,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2020
2020
|
idempotencyKey?: string | null | undefined;
|
|
2021
2021
|
} | undefined;
|
|
2022
2022
|
provider?: string | null | undefined;
|
|
2023
|
-
paymentMethod?: "
|
|
2023
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
2024
2024
|
paymentInstrumentId?: string | null | undefined;
|
|
2025
2025
|
payerPersonId?: string | null | undefined;
|
|
2026
2026
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -2159,7 +2159,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2159
2159
|
idempotencyKey?: string | null | undefined;
|
|
2160
2160
|
} | undefined;
|
|
2161
2161
|
provider?: string | null | undefined;
|
|
2162
|
-
paymentMethod?: "
|
|
2162
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
2163
2163
|
paymentInstrumentId?: string | null | undefined;
|
|
2164
2164
|
payerPersonId?: string | null | undefined;
|
|
2165
2165
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -2228,7 +2228,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2228
2228
|
idempotencyKey?: string | null | undefined;
|
|
2229
2229
|
} | undefined;
|
|
2230
2230
|
provider?: string | null | undefined;
|
|
2231
|
-
paymentMethod?: "
|
|
2231
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
2232
2232
|
paymentInstrumentId?: string | null | undefined;
|
|
2233
2233
|
payerPersonId?: string | null | undefined;
|
|
2234
2234
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -2297,7 +2297,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2297
2297
|
idempotencyKey?: string | null | undefined;
|
|
2298
2298
|
} | undefined;
|
|
2299
2299
|
provider?: string | null | undefined;
|
|
2300
|
-
paymentMethod?: "
|
|
2300
|
+
paymentMethod?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null | undefined;
|
|
2301
2301
|
paymentInstrumentId?: string | null | undefined;
|
|
2302
2302
|
payerPersonId?: string | null | undefined;
|
|
2303
2303
|
payerOrganizationId?: string | null | undefined;
|
|
@@ -2414,7 +2414,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2414
2414
|
invoiceId: string;
|
|
2415
2415
|
invoiceNumber: string;
|
|
2416
2416
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2417
|
-
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue"
|
|
2417
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
2418
2418
|
currency: string;
|
|
2419
2419
|
totalCents: number;
|
|
2420
2420
|
paidCents: number;
|
|
@@ -2423,7 +2423,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2423
2423
|
dueDate: string;
|
|
2424
2424
|
renditionId: string | null;
|
|
2425
2425
|
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
2426
|
-
format: "
|
|
2426
|
+
format: "json" | "xml" | "pdf" | "html" | null;
|
|
2427
2427
|
language: string | null;
|
|
2428
2428
|
generatedAt: string | null;
|
|
2429
2429
|
fileSize: number | null;
|
|
@@ -2470,7 +2470,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2470
2470
|
invoiceId: string;
|
|
2471
2471
|
invoiceNumber: string;
|
|
2472
2472
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2473
|
-
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue"
|
|
2473
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
2474
2474
|
currency: string;
|
|
2475
2475
|
totalCents: number;
|
|
2476
2476
|
paidCents: number;
|
|
@@ -2479,7 +2479,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2479
2479
|
dueDate: string;
|
|
2480
2480
|
renditionId: string | null;
|
|
2481
2481
|
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
2482
|
-
format: "
|
|
2482
|
+
format: "json" | "xml" | "pdf" | "html" | null;
|
|
2483
2483
|
language: string | null;
|
|
2484
2484
|
generatedAt: string | null;
|
|
2485
2485
|
fileSize: number | null;
|
|
@@ -2520,8 +2520,8 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2520
2520
|
invoiceId: string | null;
|
|
2521
2521
|
invoiceNumber: string | null;
|
|
2522
2522
|
invoiceType: "invoice" | "proforma" | "credit_note" | null;
|
|
2523
|
-
status: "pending" | "
|
|
2524
|
-
paymentMethod: "
|
|
2523
|
+
status: "pending" | "failed" | "completed" | "refunded";
|
|
2524
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque";
|
|
2525
2525
|
amountCents: number;
|
|
2526
2526
|
currency: string;
|
|
2527
2527
|
baseCurrency: string | null;
|
|
@@ -2548,7 +2548,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2548
2548
|
personId?: string | undefined;
|
|
2549
2549
|
organizationId?: string | undefined;
|
|
2550
2550
|
provider?: string | undefined;
|
|
2551
|
-
instrumentType?: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
2551
|
+
instrumentType?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account" | undefined;
|
|
2552
2552
|
includeInactive?: unknown;
|
|
2553
2553
|
};
|
|
2554
2554
|
};
|
|
@@ -2567,7 +2567,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2567
2567
|
personId?: string | undefined;
|
|
2568
2568
|
organizationId?: string | undefined;
|
|
2569
2569
|
provider?: string | undefined;
|
|
2570
|
-
instrumentType?: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
2570
|
+
instrumentType?: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account" | undefined;
|
|
2571
2571
|
includeInactive?: unknown;
|
|
2572
2572
|
};
|
|
2573
2573
|
};
|
|
@@ -2578,7 +2578,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2578
2578
|
id: string;
|
|
2579
2579
|
label: string;
|
|
2580
2580
|
provider: string | null;
|
|
2581
|
-
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
2581
|
+
instrumentType: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account";
|
|
2582
2582
|
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
2583
2583
|
brand: string | null;
|
|
2584
2584
|
last4: string | null;
|
|
@@ -2589,7 +2589,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2589
2589
|
schedules: {
|
|
2590
2590
|
id: string;
|
|
2591
2591
|
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
2592
|
-
status: "paid" | "
|
|
2592
|
+
status: "paid" | "expired" | "pending" | "cancelled" | "due" | "waived";
|
|
2593
2593
|
dueDate: string;
|
|
2594
2594
|
currency: string;
|
|
2595
2595
|
amountCents: number;
|
|
@@ -2741,18 +2741,6 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2741
2741
|
} & {
|
|
2742
2742
|
"/documents/by-reference": {
|
|
2743
2743
|
$get: {
|
|
2744
|
-
input: {
|
|
2745
|
-
query: {
|
|
2746
|
-
reference: string;
|
|
2747
|
-
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
2748
|
-
};
|
|
2749
|
-
};
|
|
2750
|
-
output: {
|
|
2751
|
-
error: string;
|
|
2752
|
-
};
|
|
2753
|
-
outputFormat: "json";
|
|
2754
|
-
status: 404;
|
|
2755
|
-
} | {
|
|
2756
2744
|
input: {
|
|
2757
2745
|
query: {
|
|
2758
2746
|
reference: string;
|
|
@@ -2764,7 +2752,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2764
2752
|
invoiceId: string;
|
|
2765
2753
|
invoiceNumber: string;
|
|
2766
2754
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
2767
|
-
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue"
|
|
2755
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
2768
2756
|
currency: string;
|
|
2769
2757
|
totalCents: number;
|
|
2770
2758
|
paidCents: number;
|
|
@@ -2773,7 +2761,7 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2773
2761
|
dueDate: string;
|
|
2774
2762
|
renditionId: string | null;
|
|
2775
2763
|
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
2776
|
-
format: "
|
|
2764
|
+
format: "json" | "xml" | "pdf" | "html" | null;
|
|
2777
2765
|
language: string | null;
|
|
2778
2766
|
generatedAt: string | null;
|
|
2779
2767
|
fileSize: number | null;
|
|
@@ -2784,6 +2772,18 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2784
2772
|
};
|
|
2785
2773
|
outputFormat: "json";
|
|
2786
2774
|
status: 200;
|
|
2775
|
+
} | {
|
|
2776
|
+
input: {
|
|
2777
|
+
query: {
|
|
2778
|
+
reference: string;
|
|
2779
|
+
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2782
|
+
output: {
|
|
2783
|
+
error: string;
|
|
2784
|
+
};
|
|
2785
|
+
outputFormat: "json";
|
|
2786
|
+
status: 404;
|
|
2787
2787
|
};
|
|
2788
2788
|
};
|
|
2789
2789
|
}, "/">, "/">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAK,MAAM,mBAAmB,CAAA;AAW/D,OAAO,EAAE,KAAK,GAAG,E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