@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
|
@@ -6,8 +6,8 @@ export declare const financePaymentProcessingService: {
|
|
|
6
6
|
invoiceId: string | null;
|
|
7
7
|
bookingGuaranteeId: string | null;
|
|
8
8
|
paymentInstrumentId: string | null;
|
|
9
|
-
status: "
|
|
10
|
-
captureMode: "
|
|
9
|
+
status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
10
|
+
captureMode: "manual" | "automatic";
|
|
11
11
|
currency: string;
|
|
12
12
|
amountCents: number;
|
|
13
13
|
provider: string | null;
|
|
@@ -27,8 +27,8 @@ export declare const financePaymentProcessingService: {
|
|
|
27
27
|
invoiceId: string | null;
|
|
28
28
|
bookingGuaranteeId: string | null;
|
|
29
29
|
paymentInstrumentId: string | null;
|
|
30
|
-
status: "
|
|
31
|
-
captureMode: "
|
|
30
|
+
status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
31
|
+
captureMode: "manual" | "automatic";
|
|
32
32
|
currency: string;
|
|
33
33
|
amountCents: number;
|
|
34
34
|
provider: string | null;
|
|
@@ -42,25 +42,25 @@ export declare const financePaymentProcessingService: {
|
|
|
42
42
|
updatedAt: Date;
|
|
43
43
|
} | null>;
|
|
44
44
|
createPaymentAuthorization(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./service-shared.js").CreatePaymentAuthorizationInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
45
|
-
id: string;
|
|
46
|
-
status: "pending" | "failed" | "authorized" | "expired" | "partially_captured" | "captured" | "voided";
|
|
47
45
|
provider: string | null;
|
|
46
|
+
id: string;
|
|
47
|
+
currency: string;
|
|
48
|
+
status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
49
|
+
amountCents: number;
|
|
50
|
+
expiresAt: Date | null;
|
|
48
51
|
notes: string | null;
|
|
49
|
-
createdAt: Date;
|
|
50
|
-
updatedAt: Date;
|
|
51
52
|
bookingId: string | null;
|
|
52
|
-
currency: string;
|
|
53
|
-
voidedAt: Date | null;
|
|
54
53
|
invoiceId: string | null;
|
|
55
|
-
amountCents: number;
|
|
56
|
-
paymentInstrumentId: string | null;
|
|
57
|
-
orderId: string | null;
|
|
58
54
|
bookingGuaranteeId: string | null;
|
|
59
|
-
|
|
55
|
+
orderId: string | null;
|
|
56
|
+
paymentInstrumentId: string | null;
|
|
57
|
+
captureMode: "manual" | "automatic";
|
|
60
58
|
externalAuthorizationId: string | null;
|
|
61
59
|
approvalCode: string | null;
|
|
62
60
|
authorizedAt: Date | null;
|
|
63
|
-
|
|
61
|
+
voidedAt: Date | null;
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
updatedAt: Date;
|
|
64
64
|
} | null>;
|
|
65
65
|
updatePaymentAuthorization(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").UpdatePaymentAuthorizationInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
66
66
|
id: string;
|
|
@@ -69,8 +69,8 @@ export declare const financePaymentProcessingService: {
|
|
|
69
69
|
invoiceId: string | null;
|
|
70
70
|
bookingGuaranteeId: string | null;
|
|
71
71
|
paymentInstrumentId: string | null;
|
|
72
|
-
status: "
|
|
73
|
-
captureMode: "
|
|
72
|
+
status: "expired" | "pending" | "failed" | "authorized" | "partially_captured" | "captured" | "voided";
|
|
73
|
+
captureMode: "manual" | "automatic";
|
|
74
74
|
currency: string;
|
|
75
75
|
amountCents: number;
|
|
76
76
|
provider: string | null;
|
|
@@ -90,7 +90,7 @@ export declare const financePaymentProcessingService: {
|
|
|
90
90
|
id: string;
|
|
91
91
|
paymentAuthorizationId: string | null;
|
|
92
92
|
invoiceId: string | null;
|
|
93
|
-
status: "pending" | "
|
|
93
|
+
status: "pending" | "failed" | "voided" | "completed" | "refunded";
|
|
94
94
|
currency: string;
|
|
95
95
|
amountCents: number;
|
|
96
96
|
provider: string | null;
|
|
@@ -105,7 +105,7 @@ export declare const financePaymentProcessingService: {
|
|
|
105
105
|
id: string;
|
|
106
106
|
paymentAuthorizationId: string | null;
|
|
107
107
|
invoiceId: string | null;
|
|
108
|
-
status: "pending" | "
|
|
108
|
+
status: "pending" | "failed" | "voided" | "completed" | "refunded";
|
|
109
109
|
currency: string;
|
|
110
110
|
amountCents: number;
|
|
111
111
|
provider: string | null;
|
|
@@ -117,25 +117,25 @@ export declare const financePaymentProcessingService: {
|
|
|
117
117
|
updatedAt: Date;
|
|
118
118
|
} | null>;
|
|
119
119
|
createPaymentCapture(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./service-shared.js").CreatePaymentCaptureInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
120
|
-
id: string;
|
|
121
|
-
status: "pending" | "completed" | "failed" | "refunded" | "voided";
|
|
122
120
|
provider: string | null;
|
|
123
|
-
|
|
124
|
-
createdAt: Date;
|
|
125
|
-
updatedAt: Date;
|
|
121
|
+
id: string;
|
|
126
122
|
currency: string;
|
|
127
|
-
|
|
123
|
+
status: "pending" | "failed" | "voided" | "completed" | "refunded";
|
|
128
124
|
amountCents: number;
|
|
125
|
+
notes: string | null;
|
|
126
|
+
invoiceId: string | null;
|
|
129
127
|
paymentAuthorizationId: string | null;
|
|
130
128
|
externalCaptureId: string | null;
|
|
131
129
|
capturedAt: Date | null;
|
|
132
130
|
settledAt: Date | null;
|
|
131
|
+
createdAt: Date;
|
|
132
|
+
updatedAt: Date;
|
|
133
133
|
} | null>;
|
|
134
134
|
updatePaymentCapture(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").UpdatePaymentCaptureInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
135
135
|
id: string;
|
|
136
136
|
paymentAuthorizationId: string | null;
|
|
137
137
|
invoiceId: string | null;
|
|
138
|
-
status: "pending" | "
|
|
138
|
+
status: "pending" | "failed" | "voided" | "completed" | "refunded";
|
|
139
139
|
currency: string;
|
|
140
140
|
amountCents: number;
|
|
141
141
|
provider: string | null;
|
|
@@ -151,7 +151,7 @@ export declare const financePaymentProcessingService: {
|
|
|
151
151
|
} | null>;
|
|
152
152
|
completePaymentSession(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").CompletePaymentSessionInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
153
153
|
id: string;
|
|
154
|
-
targetType: "
|
|
154
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
155
155
|
targetId: string | null;
|
|
156
156
|
bookingId: string | null;
|
|
157
157
|
orderId: string | null;
|
|
@@ -162,7 +162,7 @@ export declare const financePaymentProcessingService: {
|
|
|
162
162
|
paymentAuthorizationId: string | null;
|
|
163
163
|
paymentCaptureId: string | null;
|
|
164
164
|
paymentId: string | null;
|
|
165
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
165
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
166
166
|
provider: string | null;
|
|
167
167
|
providerSessionId: string | null;
|
|
168
168
|
providerPaymentId: string | null;
|
|
@@ -171,7 +171,7 @@ export declare const financePaymentProcessingService: {
|
|
|
171
171
|
clientReference: string | null;
|
|
172
172
|
currency: string;
|
|
173
173
|
amountCents: number;
|
|
174
|
-
paymentMethod: "
|
|
174
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
175
175
|
payerPersonId: string | null;
|
|
176
176
|
payerOrganizationId: string | null;
|
|
177
177
|
payerEmail: string | null;
|
|
@@ -195,7 +195,7 @@ export declare const financePaymentProcessingService: {
|
|
|
195
195
|
} | null>;
|
|
196
196
|
listPaymentSessions(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, query: import("./service-shared.js").PaymentSessionListQuery): Promise<import("@voyant-travel/types").ListResponse<{
|
|
197
197
|
id: string;
|
|
198
|
-
targetType: "
|
|
198
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
199
199
|
targetId: string | null;
|
|
200
200
|
bookingId: string | null;
|
|
201
201
|
orderId: string | null;
|
|
@@ -206,7 +206,7 @@ export declare const financePaymentProcessingService: {
|
|
|
206
206
|
paymentAuthorizationId: string | null;
|
|
207
207
|
paymentCaptureId: string | null;
|
|
208
208
|
paymentId: string | null;
|
|
209
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
209
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
210
210
|
provider: string | null;
|
|
211
211
|
providerSessionId: string | null;
|
|
212
212
|
providerPaymentId: string | null;
|
|
@@ -215,7 +215,7 @@ export declare const financePaymentProcessingService: {
|
|
|
215
215
|
clientReference: string | null;
|
|
216
216
|
currency: string;
|
|
217
217
|
amountCents: number;
|
|
218
|
-
paymentMethod: "
|
|
218
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
219
219
|
payerPersonId: string | null;
|
|
220
220
|
payerOrganizationId: string | null;
|
|
221
221
|
payerEmail: string | null;
|
|
@@ -239,7 +239,7 @@ export declare const financePaymentProcessingService: {
|
|
|
239
239
|
}>>;
|
|
240
240
|
getPaymentSessionById(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
|
|
241
241
|
id: string;
|
|
242
|
-
targetType: "
|
|
242
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
243
243
|
targetId: string | null;
|
|
244
244
|
bookingId: string | null;
|
|
245
245
|
orderId: string | null;
|
|
@@ -250,7 +250,7 @@ export declare const financePaymentProcessingService: {
|
|
|
250
250
|
paymentAuthorizationId: string | null;
|
|
251
251
|
paymentCaptureId: string | null;
|
|
252
252
|
paymentId: string | null;
|
|
253
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
253
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
254
254
|
provider: string | null;
|
|
255
255
|
providerSessionId: string | null;
|
|
256
256
|
providerPaymentId: string | null;
|
|
@@ -259,7 +259,7 @@ export declare const financePaymentProcessingService: {
|
|
|
259
259
|
clientReference: string | null;
|
|
260
260
|
currency: string;
|
|
261
261
|
amountCents: number;
|
|
262
|
-
paymentMethod: "
|
|
262
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
263
263
|
payerPersonId: string | null;
|
|
264
264
|
payerOrganizationId: string | null;
|
|
265
265
|
payerEmail: string | null;
|
|
@@ -282,33 +282,31 @@ export declare const financePaymentProcessingService: {
|
|
|
282
282
|
updatedAt: Date;
|
|
283
283
|
} | null>;
|
|
284
284
|
createPaymentSession(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./service-shared.js").CreatePaymentSessionInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
285
|
-
id: string;
|
|
286
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
287
285
|
provider: string | null;
|
|
288
|
-
|
|
286
|
+
id: string;
|
|
287
|
+
currency: string;
|
|
288
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
289
289
|
metadata: Record<string, unknown> | null;
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
idempotencyKey: string | null;
|
|
291
|
+
amountCents: number;
|
|
292
|
+
expiresAt: Date | null;
|
|
293
|
+
notes: string | null;
|
|
292
294
|
bookingId: string | null;
|
|
293
|
-
|
|
295
|
+
paymentId: string | null;
|
|
294
296
|
invoiceId: string | null;
|
|
295
|
-
amountCents: number;
|
|
296
297
|
bookingPaymentScheduleId: string | null;
|
|
297
|
-
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "travel_credit" | "other" | null;
|
|
298
|
-
paymentInstrumentId: string | null;
|
|
299
|
-
orderId: string | null;
|
|
300
298
|
bookingGuaranteeId: string | null;
|
|
301
|
-
|
|
302
|
-
paymentAuthorizationId: string | null;
|
|
303
|
-
paymentCaptureId: string | null;
|
|
304
|
-
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
305
|
-
targetId: string | null;
|
|
306
|
-
paymentId: string | null;
|
|
299
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
307
300
|
providerSessionId: string | null;
|
|
308
301
|
providerPaymentId: string | null;
|
|
309
302
|
externalReference: string | null;
|
|
310
|
-
idempotencyKey: string | null;
|
|
311
303
|
clientReference: string | null;
|
|
304
|
+
orderId: string | null;
|
|
305
|
+
targetId: string | null;
|
|
306
|
+
paymentInstrumentId: string | null;
|
|
307
|
+
paymentAuthorizationId: string | null;
|
|
308
|
+
paymentCaptureId: string | null;
|
|
309
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
312
310
|
payerPersonId: string | null;
|
|
313
311
|
payerOrganizationId: string | null;
|
|
314
312
|
payerEmail: string | null;
|
|
@@ -324,10 +322,12 @@ export declare const financePaymentProcessingService: {
|
|
|
324
322
|
failureCode: string | null;
|
|
325
323
|
failureMessage: string | null;
|
|
326
324
|
providerPayload: Record<string, unknown> | null;
|
|
325
|
+
createdAt: Date;
|
|
326
|
+
updatedAt: Date;
|
|
327
327
|
} | null>;
|
|
328
328
|
updatePaymentSession(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").UpdatePaymentSessionInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
329
329
|
id: string;
|
|
330
|
-
targetType: "
|
|
330
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
331
331
|
targetId: string | null;
|
|
332
332
|
bookingId: string | null;
|
|
333
333
|
orderId: string | null;
|
|
@@ -338,7 +338,7 @@ export declare const financePaymentProcessingService: {
|
|
|
338
338
|
paymentAuthorizationId: string | null;
|
|
339
339
|
paymentCaptureId: string | null;
|
|
340
340
|
paymentId: string | null;
|
|
341
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
341
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
342
342
|
provider: string | null;
|
|
343
343
|
providerSessionId: string | null;
|
|
344
344
|
providerPaymentId: string | null;
|
|
@@ -347,7 +347,7 @@ export declare const financePaymentProcessingService: {
|
|
|
347
347
|
clientReference: string | null;
|
|
348
348
|
currency: string;
|
|
349
349
|
amountCents: number;
|
|
350
|
-
paymentMethod: "
|
|
350
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
351
351
|
payerPersonId: string | null;
|
|
352
352
|
payerOrganizationId: string | null;
|
|
353
353
|
payerEmail: string | null;
|
|
@@ -371,7 +371,7 @@ export declare const financePaymentProcessingService: {
|
|
|
371
371
|
} | null>;
|
|
372
372
|
markPaymentSessionRequiresRedirect(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").MarkPaymentSessionRequiresRedirectInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
373
373
|
id: string;
|
|
374
|
-
targetType: "
|
|
374
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
375
375
|
targetId: string | null;
|
|
376
376
|
bookingId: string | null;
|
|
377
377
|
orderId: string | null;
|
|
@@ -382,7 +382,7 @@ export declare const financePaymentProcessingService: {
|
|
|
382
382
|
paymentAuthorizationId: string | null;
|
|
383
383
|
paymentCaptureId: string | null;
|
|
384
384
|
paymentId: string | null;
|
|
385
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
385
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
386
386
|
provider: string | null;
|
|
387
387
|
providerSessionId: string | null;
|
|
388
388
|
providerPaymentId: string | null;
|
|
@@ -391,7 +391,7 @@ export declare const financePaymentProcessingService: {
|
|
|
391
391
|
clientReference: string | null;
|
|
392
392
|
currency: string;
|
|
393
393
|
amountCents: number;
|
|
394
|
-
paymentMethod: "
|
|
394
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
395
395
|
payerPersonId: string | null;
|
|
396
396
|
payerOrganizationId: string | null;
|
|
397
397
|
payerEmail: string | null;
|
|
@@ -415,7 +415,7 @@ export declare const financePaymentProcessingService: {
|
|
|
415
415
|
} | null>;
|
|
416
416
|
failPaymentSession(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").FailPaymentSessionInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
417
417
|
id: string;
|
|
418
|
-
targetType: "
|
|
418
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
419
419
|
targetId: string | null;
|
|
420
420
|
bookingId: string | null;
|
|
421
421
|
orderId: string | null;
|
|
@@ -426,7 +426,7 @@ export declare const financePaymentProcessingService: {
|
|
|
426
426
|
paymentAuthorizationId: string | null;
|
|
427
427
|
paymentCaptureId: string | null;
|
|
428
428
|
paymentId: string | null;
|
|
429
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
429
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
430
430
|
provider: string | null;
|
|
431
431
|
providerSessionId: string | null;
|
|
432
432
|
providerPaymentId: string | null;
|
|
@@ -435,7 +435,7 @@ export declare const financePaymentProcessingService: {
|
|
|
435
435
|
clientReference: string | null;
|
|
436
436
|
currency: string;
|
|
437
437
|
amountCents: number;
|
|
438
|
-
paymentMethod: "
|
|
438
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
439
439
|
payerPersonId: string | null;
|
|
440
440
|
payerOrganizationId: string | null;
|
|
441
441
|
payerEmail: string | null;
|
|
@@ -459,7 +459,7 @@ export declare const financePaymentProcessingService: {
|
|
|
459
459
|
} | null>;
|
|
460
460
|
cancelPaymentSession(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").CancelPaymentSessionInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
461
461
|
id: string;
|
|
462
|
-
targetType: "
|
|
462
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
463
463
|
targetId: string | null;
|
|
464
464
|
bookingId: string | null;
|
|
465
465
|
orderId: string | null;
|
|
@@ -470,7 +470,7 @@ export declare const financePaymentProcessingService: {
|
|
|
470
470
|
paymentAuthorizationId: string | null;
|
|
471
471
|
paymentCaptureId: string | null;
|
|
472
472
|
paymentId: string | null;
|
|
473
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
473
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
474
474
|
provider: string | null;
|
|
475
475
|
providerSessionId: string | null;
|
|
476
476
|
providerPaymentId: string | null;
|
|
@@ -479,7 +479,7 @@ export declare const financePaymentProcessingService: {
|
|
|
479
479
|
clientReference: string | null;
|
|
480
480
|
currency: string;
|
|
481
481
|
amountCents: number;
|
|
482
|
-
paymentMethod: "
|
|
482
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
483
483
|
payerPersonId: string | null;
|
|
484
484
|
payerOrganizationId: string | null;
|
|
485
485
|
payerEmail: string | null;
|
|
@@ -503,7 +503,7 @@ export declare const financePaymentProcessingService: {
|
|
|
503
503
|
} | null>;
|
|
504
504
|
expirePaymentSession(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./service-shared.js").ExpirePaymentSessionInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
505
505
|
id: string;
|
|
506
|
-
targetType: "
|
|
506
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
507
507
|
targetId: string | null;
|
|
508
508
|
bookingId: string | null;
|
|
509
509
|
orderId: string | null;
|
|
@@ -514,7 +514,7 @@ export declare const financePaymentProcessingService: {
|
|
|
514
514
|
paymentAuthorizationId: string | null;
|
|
515
515
|
paymentCaptureId: string | null;
|
|
516
516
|
paymentId: string | null;
|
|
517
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
517
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
518
518
|
provider: string | null;
|
|
519
519
|
providerSessionId: string | null;
|
|
520
520
|
providerPaymentId: string | null;
|
|
@@ -523,7 +523,7 @@ export declare const financePaymentProcessingService: {
|
|
|
523
523
|
clientReference: string | null;
|
|
524
524
|
currency: string;
|
|
525
525
|
amountCents: number;
|
|
526
|
-
paymentMethod: "
|
|
526
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
527
527
|
payerPersonId: string | null;
|
|
528
528
|
payerOrganizationId: string | null;
|
|
529
529
|
payerEmail: string | null;
|
|
@@ -552,7 +552,7 @@ export declare const financePaymentProcessingService: {
|
|
|
552
552
|
organizationId: string | null;
|
|
553
553
|
supplierId: string | null;
|
|
554
554
|
channelId: string | null;
|
|
555
|
-
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
555
|
+
instrumentType: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account";
|
|
556
556
|
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
557
557
|
label: string;
|
|
558
558
|
provider: string | null;
|
|
@@ -578,7 +578,7 @@ export declare const financePaymentProcessingService: {
|
|
|
578
578
|
organizationId: string | null;
|
|
579
579
|
supplierId: string | null;
|
|
580
580
|
channelId: string | null;
|
|
581
|
-
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
581
|
+
instrumentType: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account";
|
|
582
582
|
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
583
583
|
label: string;
|
|
584
584
|
provider: string | null;
|
|
@@ -598,17 +598,19 @@ export declare const financePaymentProcessingService: {
|
|
|
598
598
|
updatedAt: Date;
|
|
599
599
|
} | null>;
|
|
600
600
|
createPaymentInstrument(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./service-shared.js").CreatePaymentInstrumentInput, runtime?: import("./service-shared.js").FinanceServiceRuntime): Promise<{
|
|
601
|
+
provider: string | null;
|
|
601
602
|
id: string;
|
|
602
|
-
|
|
603
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
604
|
+
metadata: unknown;
|
|
605
|
+
label: string;
|
|
606
|
+
notes: string | null;
|
|
603
607
|
ownerType: "other" | "client" | "supplier" | "channel" | "agency" | "internal";
|
|
604
608
|
personId: string | null;
|
|
605
609
|
organizationId: string | null;
|
|
606
610
|
supplierId: string | null;
|
|
607
611
|
channelId: string | null;
|
|
608
|
-
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
609
|
-
|
|
610
|
-
label: string;
|
|
611
|
-
provider: string | null;
|
|
612
|
+
instrumentType: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account";
|
|
613
|
+
brand: string | null;
|
|
612
614
|
last4: string | null;
|
|
613
615
|
holderName: string | null;
|
|
614
616
|
expiryMonth: number | null;
|
|
@@ -618,8 +620,6 @@ export declare const financePaymentProcessingService: {
|
|
|
618
620
|
billingEmail: string | null;
|
|
619
621
|
billingAddress: string | null;
|
|
620
622
|
directBillReference: string | null;
|
|
621
|
-
notes: string | null;
|
|
622
|
-
metadata: unknown;
|
|
623
623
|
createdAt: Date;
|
|
624
624
|
updatedAt: Date;
|
|
625
625
|
} | null>;
|
|
@@ -630,7 +630,7 @@ export declare const financePaymentProcessingService: {
|
|
|
630
630
|
organizationId: string | null;
|
|
631
631
|
supplierId: string | null;
|
|
632
632
|
channelId: string | null;
|
|
633
|
-
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "
|
|
633
|
+
instrumentType: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_account";
|
|
634
634
|
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
635
635
|
label: string;
|
|
636
636
|
provider: string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-payment-processing.d.ts","sourceRoot":"","sources":["../src/service-payment-processing.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK3C,CAAA"}
|
|
@@ -2,7 +2,7 @@ import type { CompletePaymentSessionInput, FinanceServiceRuntime, PostgresJsData
|
|
|
2
2
|
export declare const financePaymentSessionCompletionService: {
|
|
3
3
|
completePaymentSession(db: PostgresJsDatabase, id: string, data: CompletePaymentSessionInput, runtime?: FinanceServiceRuntime): Promise<{
|
|
4
4
|
id: string;
|
|
5
|
-
targetType: "
|
|
5
|
+
targetType: "invoice" | "other" | "booking" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
6
6
|
targetId: string | null;
|
|
7
7
|
bookingId: string | null;
|
|
8
8
|
orderId: string | null;
|
|
@@ -13,7 +13,7 @@ export declare const financePaymentSessionCompletionService: {
|
|
|
13
13
|
paymentAuthorizationId: string | null;
|
|
14
14
|
paymentCaptureId: string | null;
|
|
15
15
|
paymentId: string | null;
|
|
16
|
-
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"
|
|
16
|
+
status: "paid" | "expired" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled";
|
|
17
17
|
provider: string | null;
|
|
18
18
|
providerSessionId: string | null;
|
|
19
19
|
providerPaymentId: string | null;
|
|
@@ -22,7 +22,7 @@ export declare const financePaymentSessionCompletionService: {
|
|
|
22
22
|
clientReference: string | null;
|
|
23
23
|
currency: string;
|
|
24
24
|
amountCents: number;
|
|
25
|
-
paymentMethod: "
|
|
25
|
+
paymentMethod: "other" | "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "bank_transfer" | "cheque" | null;
|
|
26
26
|
payerPersonId: string | null;
|
|
27
27
|
payerOrganizationId: string | null;
|
|
28
28
|
payerEmail: string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-payment-session-completion.d.ts","sourceRoot":"","sources":["../src/service-payment-session-completion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,2BAA2B,EAC3B,qBAAqB,EAGrB,kBAAkB,EACnB,MAAM,qBAAqB,CAAA;AAwB5B,eAAO,MAAM,sCAAsC;+BAE3C,kBAAkB,MAClB,MAAM,QACJ,2BAA2B,YACxB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwUjC,CAAA"}
|