@voyantjs/finance 0.52.2 → 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 +224 -224
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +252 -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 +12 -12
- package/dist/service-bookings-dual-create.d.ts +12 -12
- package/dist/service-issue.d.ts +15 -12
- package/dist/service-issue.d.ts.map +1 -1
- package/dist/service-issue.js +24 -3
- 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 +731 -234
- 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
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const insertPaymentInstrumentSchema: z.ZodObject<{
|
|
3
3
|
ownerType: z.ZodDefault<z.ZodEnum<{
|
|
4
|
-
internal: "internal";
|
|
5
|
-
supplier: "supplier";
|
|
6
4
|
other: "other";
|
|
7
5
|
client: "client";
|
|
6
|
+
supplier: "supplier";
|
|
8
7
|
channel: "channel";
|
|
9
8
|
agency: "agency";
|
|
9
|
+
internal: "internal";
|
|
10
10
|
}>>;
|
|
11
11
|
personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
13
|
supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
14
|
channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
15
|
instrumentType: z.ZodEnum<{
|
|
16
|
-
other: "other";
|
|
17
|
-
voucher: "voucher";
|
|
18
|
-
wallet: "wallet";
|
|
19
16
|
credit_card: "credit_card";
|
|
20
17
|
debit_card: "debit_card";
|
|
21
18
|
cash: "cash";
|
|
19
|
+
wallet: "wallet";
|
|
22
20
|
direct_bill: "direct_bill";
|
|
21
|
+
voucher: "voucher";
|
|
22
|
+
other: "other";
|
|
23
23
|
bank_account: "bank_account";
|
|
24
24
|
}>;
|
|
25
25
|
status: z.ZodDefault<z.ZodEnum<{
|
|
26
|
-
active: "active";
|
|
27
26
|
expired: "expired";
|
|
28
|
-
|
|
27
|
+
active: "active";
|
|
29
28
|
inactive: "inactive";
|
|
29
|
+
revoked: "revoked";
|
|
30
30
|
failed_verification: "failed_verification";
|
|
31
31
|
}>>;
|
|
32
32
|
label: z.ZodString;
|
|
@@ -46,32 +46,32 @@ export declare const insertPaymentInstrumentSchema: z.ZodObject<{
|
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
export declare const updatePaymentInstrumentSchema: z.ZodObject<{
|
|
48
48
|
ownerType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
49
|
-
internal: "internal";
|
|
50
|
-
supplier: "supplier";
|
|
51
49
|
other: "other";
|
|
52
50
|
client: "client";
|
|
51
|
+
supplier: "supplier";
|
|
53
52
|
channel: "channel";
|
|
54
53
|
agency: "agency";
|
|
54
|
+
internal: "internal";
|
|
55
55
|
}>>>;
|
|
56
56
|
personId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
57
57
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
58
58
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
59
59
|
channelId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
60
60
|
instrumentType: z.ZodOptional<z.ZodEnum<{
|
|
61
|
-
other: "other";
|
|
62
|
-
voucher: "voucher";
|
|
63
|
-
wallet: "wallet";
|
|
64
61
|
credit_card: "credit_card";
|
|
65
62
|
debit_card: "debit_card";
|
|
66
63
|
cash: "cash";
|
|
64
|
+
wallet: "wallet";
|
|
67
65
|
direct_bill: "direct_bill";
|
|
66
|
+
voucher: "voucher";
|
|
67
|
+
other: "other";
|
|
68
68
|
bank_account: "bank_account";
|
|
69
69
|
}>>;
|
|
70
70
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
71
|
-
active: "active";
|
|
72
71
|
expired: "expired";
|
|
73
|
-
|
|
72
|
+
active: "active";
|
|
74
73
|
inactive: "inactive";
|
|
74
|
+
revoked: "revoked";
|
|
75
75
|
failed_verification: "failed_verification";
|
|
76
76
|
}>>>;
|
|
77
77
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -93,32 +93,32 @@ export declare const paymentInstrumentListQuerySchema: z.ZodObject<{
|
|
|
93
93
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
94
94
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
95
95
|
ownerType: z.ZodOptional<z.ZodEnum<{
|
|
96
|
-
internal: "internal";
|
|
97
|
-
supplier: "supplier";
|
|
98
96
|
other: "other";
|
|
99
97
|
client: "client";
|
|
98
|
+
supplier: "supplier";
|
|
100
99
|
channel: "channel";
|
|
101
100
|
agency: "agency";
|
|
101
|
+
internal: "internal";
|
|
102
102
|
}>>;
|
|
103
103
|
personId: z.ZodOptional<z.ZodString>;
|
|
104
104
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
105
105
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
106
106
|
channelId: z.ZodOptional<z.ZodString>;
|
|
107
107
|
status: z.ZodOptional<z.ZodEnum<{
|
|
108
|
-
active: "active";
|
|
109
108
|
expired: "expired";
|
|
110
|
-
|
|
109
|
+
active: "active";
|
|
111
110
|
inactive: "inactive";
|
|
111
|
+
revoked: "revoked";
|
|
112
112
|
failed_verification: "failed_verification";
|
|
113
113
|
}>>;
|
|
114
114
|
instrumentType: z.ZodOptional<z.ZodEnum<{
|
|
115
|
-
other: "other";
|
|
116
|
-
voucher: "voucher";
|
|
117
|
-
wallet: "wallet";
|
|
118
115
|
credit_card: "credit_card";
|
|
119
116
|
debit_card: "debit_card";
|
|
120
117
|
cash: "cash";
|
|
118
|
+
wallet: "wallet";
|
|
121
119
|
direct_bill: "direct_bill";
|
|
120
|
+
voucher: "voucher";
|
|
121
|
+
other: "other";
|
|
122
122
|
bank_account: "bank_account";
|
|
123
123
|
}>>;
|
|
124
124
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -144,13 +144,13 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
|
|
|
144
144
|
paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
145
145
|
paymentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
146
146
|
status: z.ZodDefault<z.ZodEnum<{
|
|
147
|
-
pending: "pending";
|
|
148
147
|
failed: "failed";
|
|
149
|
-
cancelled: "cancelled";
|
|
150
148
|
expired: "expired";
|
|
149
|
+
cancelled: "cancelled";
|
|
150
|
+
pending: "pending";
|
|
151
|
+
processing: "processing";
|
|
151
152
|
paid: "paid";
|
|
152
153
|
requires_redirect: "requires_redirect";
|
|
153
|
-
processing: "processing";
|
|
154
154
|
authorized: "authorized";
|
|
155
155
|
}>>;
|
|
156
156
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -162,15 +162,15 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
|
|
|
162
162
|
currency: z.ZodString;
|
|
163
163
|
amountCents: z.ZodNumber;
|
|
164
164
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
165
|
-
other: "other";
|
|
166
|
-
voucher: "voucher";
|
|
167
|
-
wallet: "wallet";
|
|
168
165
|
bank_transfer: "bank_transfer";
|
|
169
166
|
credit_card: "credit_card";
|
|
170
167
|
debit_card: "debit_card";
|
|
171
168
|
cash: "cash";
|
|
172
169
|
cheque: "cheque";
|
|
170
|
+
wallet: "wallet";
|
|
173
171
|
direct_bill: "direct_bill";
|
|
172
|
+
voucher: "voucher";
|
|
173
|
+
other: "other";
|
|
174
174
|
}>>>;
|
|
175
175
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
176
176
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -212,13 +212,13 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
|
|
|
212
212
|
paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
213
213
|
paymentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
214
214
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
215
|
-
pending: "pending";
|
|
216
215
|
failed: "failed";
|
|
217
|
-
cancelled: "cancelled";
|
|
218
216
|
expired: "expired";
|
|
217
|
+
cancelled: "cancelled";
|
|
218
|
+
pending: "pending";
|
|
219
|
+
processing: "processing";
|
|
219
220
|
paid: "paid";
|
|
220
221
|
requires_redirect: "requires_redirect";
|
|
221
|
-
processing: "processing";
|
|
222
222
|
authorized: "authorized";
|
|
223
223
|
}>>>;
|
|
224
224
|
provider: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -230,15 +230,15 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
|
|
|
230
230
|
currency: z.ZodOptional<z.ZodString>;
|
|
231
231
|
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
232
232
|
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
233
|
-
other: "other";
|
|
234
|
-
voucher: "voucher";
|
|
235
|
-
wallet: "wallet";
|
|
236
233
|
bank_transfer: "bank_transfer";
|
|
237
234
|
credit_card: "credit_card";
|
|
238
235
|
debit_card: "debit_card";
|
|
239
236
|
cash: "cash";
|
|
240
237
|
cheque: "cheque";
|
|
238
|
+
wallet: "wallet";
|
|
241
239
|
direct_bill: "direct_bill";
|
|
240
|
+
voucher: "voucher";
|
|
241
|
+
other: "other";
|
|
242
242
|
}>>>>;
|
|
243
243
|
payerPersonId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
244
244
|
payerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -277,13 +277,13 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
|
|
|
277
277
|
flight_order: "flight_order";
|
|
278
278
|
}>>;
|
|
279
279
|
status: z.ZodOptional<z.ZodEnum<{
|
|
280
|
-
pending: "pending";
|
|
281
280
|
failed: "failed";
|
|
282
|
-
cancelled: "cancelled";
|
|
283
281
|
expired: "expired";
|
|
282
|
+
cancelled: "cancelled";
|
|
283
|
+
pending: "pending";
|
|
284
|
+
processing: "processing";
|
|
284
285
|
paid: "paid";
|
|
285
286
|
requires_redirect: "requires_redirect";
|
|
286
|
-
processing: "processing";
|
|
287
287
|
authorized: "authorized";
|
|
288
288
|
}>>;
|
|
289
289
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -296,15 +296,15 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
|
|
|
296
296
|
export declare const createPaymentSessionFromScheduleSchema: z.ZodObject<{
|
|
297
297
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
298
298
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
299
|
-
other: "other";
|
|
300
|
-
voucher: "voucher";
|
|
301
|
-
wallet: "wallet";
|
|
302
299
|
bank_transfer: "bank_transfer";
|
|
303
300
|
credit_card: "credit_card";
|
|
304
301
|
debit_card: "debit_card";
|
|
305
302
|
cash: "cash";
|
|
306
303
|
cheque: "cheque";
|
|
304
|
+
wallet: "wallet";
|
|
307
305
|
direct_bill: "direct_bill";
|
|
306
|
+
voucher: "voucher";
|
|
307
|
+
other: "other";
|
|
308
308
|
}>>>;
|
|
309
309
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
310
310
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -324,15 +324,15 @@ export declare const createPaymentSessionFromScheduleSchema: z.ZodObject<{
|
|
|
324
324
|
export declare const createPaymentSessionFromGuaranteeSchema: z.ZodObject<{
|
|
325
325
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
326
326
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
327
|
-
other: "other";
|
|
328
|
-
voucher: "voucher";
|
|
329
|
-
wallet: "wallet";
|
|
330
327
|
bank_transfer: "bank_transfer";
|
|
331
328
|
credit_card: "credit_card";
|
|
332
329
|
debit_card: "debit_card";
|
|
333
330
|
cash: "cash";
|
|
334
331
|
cheque: "cheque";
|
|
332
|
+
wallet: "wallet";
|
|
335
333
|
direct_bill: "direct_bill";
|
|
334
|
+
voucher: "voucher";
|
|
335
|
+
other: "other";
|
|
336
336
|
}>>>;
|
|
337
337
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
338
338
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -352,15 +352,15 @@ export declare const createPaymentSessionFromGuaranteeSchema: z.ZodObject<{
|
|
|
352
352
|
export declare const createPaymentSessionFromInvoiceSchema: z.ZodObject<{
|
|
353
353
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
354
354
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
355
|
-
other: "other";
|
|
356
|
-
voucher: "voucher";
|
|
357
|
-
wallet: "wallet";
|
|
358
355
|
bank_transfer: "bank_transfer";
|
|
359
356
|
credit_card: "credit_card";
|
|
360
357
|
debit_card: "debit_card";
|
|
361
358
|
cash: "cash";
|
|
362
359
|
cheque: "cheque";
|
|
360
|
+
wallet: "wallet";
|
|
363
361
|
direct_bill: "direct_bill";
|
|
362
|
+
voucher: "voucher";
|
|
363
|
+
other: "other";
|
|
364
364
|
}>>>;
|
|
365
365
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
366
366
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -379,8 +379,8 @@ export declare const createPaymentSessionFromInvoiceSchema: z.ZodObject<{
|
|
|
379
379
|
}, z.core.$strip>;
|
|
380
380
|
export declare const applyDefaultBookingPaymentPlanSchema: z.ZodObject<{
|
|
381
381
|
depositMode: z.ZodDefault<z.ZodEnum<{
|
|
382
|
-
percentage: "percentage";
|
|
383
382
|
none: "none";
|
|
383
|
+
percentage: "percentage";
|
|
384
384
|
fixed_amount: "fixed_amount";
|
|
385
385
|
}>>;
|
|
386
386
|
depositValue: z.ZodDefault<z.ZodNumber>;
|
|
@@ -389,10 +389,10 @@ export declare const applyDefaultBookingPaymentPlanSchema: z.ZodObject<{
|
|
|
389
389
|
clearExistingPending: z.ZodDefault<z.ZodBoolean>;
|
|
390
390
|
createGuarantee: z.ZodDefault<z.ZodBoolean>;
|
|
391
391
|
guaranteeType: z.ZodDefault<z.ZodEnum<{
|
|
392
|
-
other: "other";
|
|
393
|
-
voucher: "voucher";
|
|
394
392
|
bank_transfer: "bank_transfer";
|
|
395
393
|
credit_card: "credit_card";
|
|
394
|
+
voucher: "voucher";
|
|
395
|
+
other: "other";
|
|
396
396
|
deposit: "deposit";
|
|
397
397
|
preauth: "preauth";
|
|
398
398
|
card_on_file: "card_on_file";
|
|
@@ -423,20 +423,20 @@ export declare const completePaymentSessionSchema: z.ZodObject<{
|
|
|
423
423
|
providerPaymentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
424
424
|
externalReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
425
425
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
426
|
-
other: "other";
|
|
427
|
-
voucher: "voucher";
|
|
428
|
-
wallet: "wallet";
|
|
429
426
|
bank_transfer: "bank_transfer";
|
|
430
427
|
credit_card: "credit_card";
|
|
431
428
|
debit_card: "debit_card";
|
|
432
429
|
cash: "cash";
|
|
433
430
|
cheque: "cheque";
|
|
431
|
+
wallet: "wallet";
|
|
434
432
|
direct_bill: "direct_bill";
|
|
433
|
+
voucher: "voucher";
|
|
434
|
+
other: "other";
|
|
435
435
|
}>>>;
|
|
436
436
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
437
437
|
captureMode: z.ZodDefault<z.ZodEnum<{
|
|
438
|
-
manual: "manual";
|
|
439
438
|
automatic: "automatic";
|
|
439
|
+
manual: "manual";
|
|
440
440
|
}>>;
|
|
441
441
|
externalAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
442
442
|
externalCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -480,17 +480,17 @@ export declare const insertPaymentAuthorizationSchema: z.ZodObject<{
|
|
|
480
480
|
bookingGuaranteeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
481
481
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
482
482
|
status: z.ZodDefault<z.ZodEnum<{
|
|
483
|
-
pending: "pending";
|
|
484
483
|
failed: "failed";
|
|
485
484
|
expired: "expired";
|
|
485
|
+
pending: "pending";
|
|
486
486
|
authorized: "authorized";
|
|
487
487
|
partially_captured: "partially_captured";
|
|
488
488
|
captured: "captured";
|
|
489
489
|
voided: "voided";
|
|
490
490
|
}>>;
|
|
491
491
|
captureMode: z.ZodDefault<z.ZodEnum<{
|
|
492
|
-
manual: "manual";
|
|
493
492
|
automatic: "automatic";
|
|
493
|
+
manual: "manual";
|
|
494
494
|
}>>;
|
|
495
495
|
currency: z.ZodString;
|
|
496
496
|
amountCents: z.ZodNumber;
|
|
@@ -509,17 +509,17 @@ export declare const updatePaymentAuthorizationSchema: z.ZodObject<{
|
|
|
509
509
|
bookingGuaranteeId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
510
510
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
511
511
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
512
|
-
pending: "pending";
|
|
513
512
|
failed: "failed";
|
|
514
513
|
expired: "expired";
|
|
514
|
+
pending: "pending";
|
|
515
515
|
authorized: "authorized";
|
|
516
516
|
partially_captured: "partially_captured";
|
|
517
517
|
captured: "captured";
|
|
518
518
|
voided: "voided";
|
|
519
519
|
}>>>;
|
|
520
520
|
captureMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
521
|
-
manual: "manual";
|
|
522
521
|
automatic: "automatic";
|
|
522
|
+
manual: "manual";
|
|
523
523
|
}>>>;
|
|
524
524
|
currency: z.ZodOptional<z.ZodString>;
|
|
525
525
|
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
@@ -540,9 +540,9 @@ export declare const paymentAuthorizationListQuerySchema: z.ZodObject<{
|
|
|
540
540
|
bookingGuaranteeId: z.ZodOptional<z.ZodString>;
|
|
541
541
|
paymentInstrumentId: z.ZodOptional<z.ZodString>;
|
|
542
542
|
status: z.ZodOptional<z.ZodEnum<{
|
|
543
|
-
pending: "pending";
|
|
544
543
|
failed: "failed";
|
|
545
544
|
expired: "expired";
|
|
545
|
+
pending: "pending";
|
|
546
546
|
authorized: "authorized";
|
|
547
547
|
partially_captured: "partially_captured";
|
|
548
548
|
captured: "captured";
|
|
@@ -553,9 +553,9 @@ export declare const insertPaymentCaptureSchema: z.ZodObject<{
|
|
|
553
553
|
paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
554
554
|
invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
555
555
|
status: z.ZodDefault<z.ZodEnum<{
|
|
556
|
+
failed: "failed";
|
|
556
557
|
pending: "pending";
|
|
557
558
|
completed: "completed";
|
|
558
|
-
failed: "failed";
|
|
559
559
|
refunded: "refunded";
|
|
560
560
|
voided: "voided";
|
|
561
561
|
}>>;
|
|
@@ -571,9 +571,9 @@ export declare const updatePaymentCaptureSchema: z.ZodObject<{
|
|
|
571
571
|
paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
572
572
|
invoiceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
573
573
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
574
|
+
failed: "failed";
|
|
574
575
|
pending: "pending";
|
|
575
576
|
completed: "completed";
|
|
576
|
-
failed: "failed";
|
|
577
577
|
refunded: "refunded";
|
|
578
578
|
voided: "voided";
|
|
579
579
|
}>>>;
|
|
@@ -591,9 +591,9 @@ export declare const paymentCaptureListQuerySchema: z.ZodObject<{
|
|
|
591
591
|
paymentAuthorizationId: z.ZodOptional<z.ZodString>;
|
|
592
592
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
593
593
|
status: z.ZodOptional<z.ZodEnum<{
|
|
594
|
+
failed: "failed";
|
|
594
595
|
pending: "pending";
|
|
595
596
|
completed: "completed";
|
|
596
|
-
failed: "failed";
|
|
597
597
|
refunded: "refunded";
|
|
598
598
|
voided: "voided";
|
|
599
599
|
}>>;
|
|
@@ -608,9 +608,9 @@ export declare const insertBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
608
608
|
hold: "hold";
|
|
609
609
|
}>>;
|
|
610
610
|
status: z.ZodDefault<z.ZodEnum<{
|
|
611
|
-
pending: "pending";
|
|
612
|
-
cancelled: "cancelled";
|
|
613
611
|
expired: "expired";
|
|
612
|
+
cancelled: "cancelled";
|
|
613
|
+
pending: "pending";
|
|
614
614
|
paid: "paid";
|
|
615
615
|
due: "due";
|
|
616
616
|
waived: "waived";
|
|
@@ -630,9 +630,9 @@ export declare const updateBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
630
630
|
hold: "hold";
|
|
631
631
|
}>>>;
|
|
632
632
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
633
|
-
pending: "pending";
|
|
634
|
-
cancelled: "cancelled";
|
|
635
633
|
expired: "expired";
|
|
634
|
+
cancelled: "cancelled";
|
|
635
|
+
pending: "pending";
|
|
636
636
|
paid: "paid";
|
|
637
637
|
due: "due";
|
|
638
638
|
waived: "waived";
|
|
@@ -646,21 +646,21 @@ export declare const insertBookingGuaranteeSchema: z.ZodObject<{
|
|
|
646
646
|
bookingPaymentScheduleId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
647
647
|
bookingItemId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
648
648
|
guaranteeType: z.ZodEnum<{
|
|
649
|
-
other: "other";
|
|
650
|
-
voucher: "voucher";
|
|
651
649
|
bank_transfer: "bank_transfer";
|
|
652
650
|
credit_card: "credit_card";
|
|
651
|
+
voucher: "voucher";
|
|
652
|
+
other: "other";
|
|
653
653
|
deposit: "deposit";
|
|
654
654
|
preauth: "preauth";
|
|
655
655
|
card_on_file: "card_on_file";
|
|
656
656
|
agency_letter: "agency_letter";
|
|
657
657
|
}>;
|
|
658
658
|
status: z.ZodDefault<z.ZodEnum<{
|
|
659
|
-
pending: "pending";
|
|
660
659
|
failed: "failed";
|
|
660
|
+
expired: "expired";
|
|
661
661
|
cancelled: "cancelled";
|
|
662
|
+
pending: "pending";
|
|
662
663
|
active: "active";
|
|
663
|
-
expired: "expired";
|
|
664
664
|
released: "released";
|
|
665
665
|
}>>;
|
|
666
666
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -678,21 +678,21 @@ export declare const updateBookingGuaranteeSchema: z.ZodObject<{
|
|
|
678
678
|
bookingPaymentScheduleId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
679
679
|
bookingItemId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
680
680
|
guaranteeType: z.ZodOptional<z.ZodEnum<{
|
|
681
|
-
other: "other";
|
|
682
|
-
voucher: "voucher";
|
|
683
681
|
bank_transfer: "bank_transfer";
|
|
684
682
|
credit_card: "credit_card";
|
|
683
|
+
voucher: "voucher";
|
|
684
|
+
other: "other";
|
|
685
685
|
deposit: "deposit";
|
|
686
686
|
preauth: "preauth";
|
|
687
687
|
card_on_file: "card_on_file";
|
|
688
688
|
agency_letter: "agency_letter";
|
|
689
689
|
}>>;
|
|
690
690
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
691
|
-
pending: "pending";
|
|
692
691
|
failed: "failed";
|
|
692
|
+
expired: "expired";
|
|
693
693
|
cancelled: "cancelled";
|
|
694
|
+
pending: "pending";
|
|
694
695
|
active: "active";
|
|
695
|
-
expired: "expired";
|
|
696
696
|
released: "released";
|
|
697
697
|
}>>>;
|
|
698
698
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -713,23 +713,23 @@ export declare const insertPaymentSchema: z.ZodObject<{
|
|
|
713
713
|
baseAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
714
714
|
fxRateSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
715
715
|
paymentMethod: z.ZodEnum<{
|
|
716
|
-
other: "other";
|
|
717
|
-
voucher: "voucher";
|
|
718
|
-
wallet: "wallet";
|
|
719
716
|
bank_transfer: "bank_transfer";
|
|
720
717
|
credit_card: "credit_card";
|
|
721
718
|
debit_card: "debit_card";
|
|
722
719
|
cash: "cash";
|
|
723
720
|
cheque: "cheque";
|
|
721
|
+
wallet: "wallet";
|
|
724
722
|
direct_bill: "direct_bill";
|
|
723
|
+
voucher: "voucher";
|
|
724
|
+
other: "other";
|
|
725
725
|
}>;
|
|
726
726
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
727
727
|
paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
728
728
|
paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
729
729
|
status: z.ZodDefault<z.ZodEnum<{
|
|
730
|
+
failed: "failed";
|
|
730
731
|
pending: "pending";
|
|
731
732
|
completed: "completed";
|
|
732
|
-
failed: "failed";
|
|
733
733
|
refunded: "refunded";
|
|
734
734
|
}>>;
|
|
735
735
|
referenceNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -743,23 +743,23 @@ export declare const updatePaymentSchema: z.ZodObject<{
|
|
|
743
743
|
baseAmountCents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
744
744
|
fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
745
745
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
746
|
-
other: "other";
|
|
747
|
-
voucher: "voucher";
|
|
748
|
-
wallet: "wallet";
|
|
749
746
|
bank_transfer: "bank_transfer";
|
|
750
747
|
credit_card: "credit_card";
|
|
751
748
|
debit_card: "debit_card";
|
|
752
749
|
cash: "cash";
|
|
753
750
|
cheque: "cheque";
|
|
751
|
+
wallet: "wallet";
|
|
754
752
|
direct_bill: "direct_bill";
|
|
753
|
+
voucher: "voucher";
|
|
754
|
+
other: "other";
|
|
755
755
|
}>>;
|
|
756
756
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
757
757
|
paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
758
758
|
paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
759
759
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
760
|
+
failed: "failed";
|
|
760
761
|
pending: "pending";
|
|
761
762
|
completed: "completed";
|
|
762
|
-
failed: "failed";
|
|
763
763
|
refunded: "refunded";
|
|
764
764
|
}>>>;
|
|
765
765
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -776,21 +776,21 @@ export declare const insertSupplierPaymentSchema: z.ZodObject<{
|
|
|
776
776
|
baseAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
777
777
|
fxRateSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
778
778
|
paymentMethod: z.ZodEnum<{
|
|
779
|
-
other: "other";
|
|
780
|
-
voucher: "voucher";
|
|
781
|
-
wallet: "wallet";
|
|
782
779
|
bank_transfer: "bank_transfer";
|
|
783
780
|
credit_card: "credit_card";
|
|
784
781
|
debit_card: "debit_card";
|
|
785
782
|
cash: "cash";
|
|
786
783
|
cheque: "cheque";
|
|
784
|
+
wallet: "wallet";
|
|
787
785
|
direct_bill: "direct_bill";
|
|
786
|
+
voucher: "voucher";
|
|
787
|
+
other: "other";
|
|
788
788
|
}>;
|
|
789
789
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
790
790
|
status: z.ZodDefault<z.ZodEnum<{
|
|
791
|
+
failed: "failed";
|
|
791
792
|
pending: "pending";
|
|
792
793
|
completed: "completed";
|
|
793
|
-
failed: "failed";
|
|
794
794
|
refunded: "refunded";
|
|
795
795
|
}>>;
|
|
796
796
|
referenceNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -807,21 +807,21 @@ export declare const updateSupplierPaymentSchema: z.ZodObject<{
|
|
|
807
807
|
baseAmountCents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
808
808
|
fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
809
809
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
810
|
-
other: "other";
|
|
811
|
-
voucher: "voucher";
|
|
812
|
-
wallet: "wallet";
|
|
813
810
|
bank_transfer: "bank_transfer";
|
|
814
811
|
credit_card: "credit_card";
|
|
815
812
|
debit_card: "debit_card";
|
|
816
813
|
cash: "cash";
|
|
817
814
|
cheque: "cheque";
|
|
815
|
+
wallet: "wallet";
|
|
818
816
|
direct_bill: "direct_bill";
|
|
817
|
+
voucher: "voucher";
|
|
818
|
+
other: "other";
|
|
819
819
|
}>>;
|
|
820
820
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
821
821
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
822
|
+
failed: "failed";
|
|
822
823
|
pending: "pending";
|
|
823
824
|
completed: "completed";
|
|
824
|
-
failed: "failed";
|
|
825
825
|
refunded: "refunded";
|
|
826
826
|
}>>>;
|
|
827
827
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -829,8 +829,8 @@ export declare const updateSupplierPaymentSchema: z.ZodObject<{
|
|
|
829
829
|
notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
830
830
|
}, z.core.$strip>;
|
|
831
831
|
export declare const supplierPaymentListSortFieldSchema: z.ZodEnum<{
|
|
832
|
-
createdAt: "createdAt";
|
|
833
832
|
status: "status";
|
|
833
|
+
createdAt: "createdAt";
|
|
834
834
|
amountCents: "amountCents";
|
|
835
835
|
paymentDate: "paymentDate";
|
|
836
836
|
}>;
|
|
@@ -842,28 +842,28 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
|
|
|
842
842
|
bookingId: z.ZodOptional<z.ZodString>;
|
|
843
843
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
844
844
|
status: z.ZodOptional<z.ZodEnum<{
|
|
845
|
+
failed: "failed";
|
|
845
846
|
pending: "pending";
|
|
846
847
|
completed: "completed";
|
|
847
|
-
failed: "failed";
|
|
848
848
|
refunded: "refunded";
|
|
849
849
|
}>>;
|
|
850
850
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
851
|
-
other: "other";
|
|
852
|
-
voucher: "voucher";
|
|
853
|
-
wallet: "wallet";
|
|
854
851
|
bank_transfer: "bank_transfer";
|
|
855
852
|
credit_card: "credit_card";
|
|
856
853
|
debit_card: "debit_card";
|
|
857
854
|
cash: "cash";
|
|
858
855
|
cheque: "cheque";
|
|
856
|
+
wallet: "wallet";
|
|
859
857
|
direct_bill: "direct_bill";
|
|
858
|
+
voucher: "voucher";
|
|
859
|
+
other: "other";
|
|
860
860
|
}>>;
|
|
861
861
|
currency: z.ZodOptional<z.ZodString>;
|
|
862
862
|
paymentDateFrom: z.ZodOptional<z.ZodString>;
|
|
863
863
|
paymentDateTo: z.ZodOptional<z.ZodString>;
|
|
864
864
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
865
|
-
createdAt: "createdAt";
|
|
866
865
|
status: "status";
|
|
866
|
+
createdAt: "createdAt";
|
|
867
867
|
amountCents: "amountCents";
|
|
868
868
|
paymentDate: "paymentDate";
|
|
869
869
|
}>>;
|
|
@@ -875,12 +875,12 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
|
|
|
875
875
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
876
876
|
}, z.core.$strip>;
|
|
877
877
|
export declare const paymentKindSchema: z.ZodEnum<{
|
|
878
|
-
customer: "customer";
|
|
879
878
|
supplier: "supplier";
|
|
879
|
+
customer: "customer";
|
|
880
880
|
}>;
|
|
881
881
|
export declare const paymentListSortFieldSchema: z.ZodEnum<{
|
|
882
|
-
createdAt: "createdAt";
|
|
883
882
|
status: "status";
|
|
883
|
+
createdAt: "createdAt";
|
|
884
884
|
amountCents: "amountCents";
|
|
885
885
|
paymentDate: "paymentDate";
|
|
886
886
|
}>;
|
|
@@ -890,25 +890,25 @@ export declare const paymentListSortDirSchema: z.ZodEnum<{
|
|
|
890
890
|
}>;
|
|
891
891
|
export declare const paymentListQuerySchema: z.ZodObject<{
|
|
892
892
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
893
|
-
customer: "customer";
|
|
894
893
|
supplier: "supplier";
|
|
894
|
+
customer: "customer";
|
|
895
895
|
}>>;
|
|
896
896
|
status: z.ZodOptional<z.ZodEnum<{
|
|
897
|
+
failed: "failed";
|
|
897
898
|
pending: "pending";
|
|
898
899
|
completed: "completed";
|
|
899
|
-
failed: "failed";
|
|
900
900
|
refunded: "refunded";
|
|
901
901
|
}>>;
|
|
902
902
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
903
|
-
other: "other";
|
|
904
|
-
voucher: "voucher";
|
|
905
|
-
wallet: "wallet";
|
|
906
903
|
bank_transfer: "bank_transfer";
|
|
907
904
|
credit_card: "credit_card";
|
|
908
905
|
debit_card: "debit_card";
|
|
909
906
|
cash: "cash";
|
|
910
907
|
cheque: "cheque";
|
|
908
|
+
wallet: "wallet";
|
|
911
909
|
direct_bill: "direct_bill";
|
|
910
|
+
voucher: "voucher";
|
|
911
|
+
other: "other";
|
|
912
912
|
}>>;
|
|
913
913
|
currency: z.ZodOptional<z.ZodString>;
|
|
914
914
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
@@ -918,8 +918,8 @@ export declare const paymentListQuerySchema: z.ZodObject<{
|
|
|
918
918
|
paymentDateTo: z.ZodOptional<z.ZodString>;
|
|
919
919
|
search: z.ZodOptional<z.ZodString>;
|
|
920
920
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
921
|
-
createdAt: "createdAt";
|
|
922
921
|
status: "status";
|
|
922
|
+
createdAt: "createdAt";
|
|
923
923
|
amountCents: "amountCents";
|
|
924
924
|
paymentDate: "paymentDate";
|
|
925
925
|
}>>;
|