@voyantjs/finance 0.3.0 → 0.3.1
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/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/routes-public.d.ts +476 -0
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-public.js +56 -0
- package/dist/routes-shared.d.ts +12 -0
- package/dist/routes-shared.d.ts.map +1 -0
- package/dist/routes-shared.js +3 -0
- package/dist/routes.d.ts +207 -161
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +40 -1
- package/dist/schema.d.ts +17 -17
- package/dist/service-public.d.ts +250 -0
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-public.js +366 -0
- package/dist/service.d.ts +175 -181
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +52 -10
- package/dist/validation-billing.d.ts +10 -10
- package/dist/validation-payments.d.ts +83 -83
- package/dist/validation-public.d.ts +374 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-public.js +166 -0
- package/dist/validation-shared.d.ts +24 -24
- package/dist/validation.d.ts +1 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +1 -0
- package/package.json +13 -5
|
@@ -13,20 +13,20 @@ export declare const insertPaymentInstrumentSchema: z.ZodObject<{
|
|
|
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";
|
|
16
19
|
credit_card: "credit_card";
|
|
17
20
|
debit_card: "debit_card";
|
|
18
21
|
cash: "cash";
|
|
19
|
-
wallet: "wallet";
|
|
20
22
|
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
26
|
expired: "expired";
|
|
27
|
+
revoked: "revoked";
|
|
27
28
|
active: "active";
|
|
28
29
|
inactive: "inactive";
|
|
29
|
-
revoked: "revoked";
|
|
30
30
|
failed_verification: "failed_verification";
|
|
31
31
|
}>>;
|
|
32
32
|
label: z.ZodString;
|
|
@@ -58,20 +58,20 @@ export declare const updatePaymentInstrumentSchema: z.ZodObject<{
|
|
|
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";
|
|
61
64
|
credit_card: "credit_card";
|
|
62
65
|
debit_card: "debit_card";
|
|
63
66
|
cash: "cash";
|
|
64
|
-
wallet: "wallet";
|
|
65
67
|
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
71
|
expired: "expired";
|
|
72
|
+
revoked: "revoked";
|
|
72
73
|
active: "active";
|
|
73
74
|
inactive: "inactive";
|
|
74
|
-
revoked: "revoked";
|
|
75
75
|
failed_verification: "failed_verification";
|
|
76
76
|
}>>>;
|
|
77
77
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -106,19 +106,19 @@ export declare const paymentInstrumentListQuerySchema: z.ZodObject<{
|
|
|
106
106
|
channelId: z.ZodOptional<z.ZodString>;
|
|
107
107
|
status: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
expired: "expired";
|
|
109
|
+
revoked: "revoked";
|
|
109
110
|
active: "active";
|
|
110
111
|
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";
|
|
115
118
|
credit_card: "credit_card";
|
|
116
119
|
debit_card: "debit_card";
|
|
117
120
|
cash: "cash";
|
|
118
|
-
wallet: "wallet";
|
|
119
121
|
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>;
|
|
@@ -143,14 +143,14 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
|
|
|
143
143
|
paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
144
144
|
paymentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
145
145
|
status: z.ZodDefault<z.ZodEnum<{
|
|
146
|
-
|
|
146
|
+
expired: "expired";
|
|
147
|
+
cancelled: "cancelled";
|
|
147
148
|
pending: "pending";
|
|
148
149
|
failed: "failed";
|
|
150
|
+
paid: "paid";
|
|
149
151
|
requires_redirect: "requires_redirect";
|
|
150
152
|
processing: "processing";
|
|
151
153
|
authorized: "authorized";
|
|
152
|
-
cancelled: "cancelled";
|
|
153
|
-
expired: "expired";
|
|
154
154
|
}>>;
|
|
155
155
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
156
|
providerSessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -161,15 +161,15 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
|
|
|
161
161
|
currency: z.ZodString;
|
|
162
162
|
amountCents: z.ZodNumber;
|
|
163
163
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
164
|
+
other: "other";
|
|
165
|
+
voucher: "voucher";
|
|
166
|
+
wallet: "wallet";
|
|
164
167
|
bank_transfer: "bank_transfer";
|
|
165
168
|
credit_card: "credit_card";
|
|
166
169
|
debit_card: "debit_card";
|
|
167
170
|
cash: "cash";
|
|
168
171
|
cheque: "cheque";
|
|
169
|
-
wallet: "wallet";
|
|
170
172
|
direct_bill: "direct_bill";
|
|
171
|
-
voucher: "voucher";
|
|
172
|
-
other: "other";
|
|
173
173
|
}>>>;
|
|
174
174
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
175
175
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -210,14 +210,14 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
|
|
|
210
210
|
paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
211
211
|
paymentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
212
212
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
213
|
-
|
|
213
|
+
expired: "expired";
|
|
214
|
+
cancelled: "cancelled";
|
|
214
215
|
pending: "pending";
|
|
215
216
|
failed: "failed";
|
|
217
|
+
paid: "paid";
|
|
216
218
|
requires_redirect: "requires_redirect";
|
|
217
219
|
processing: "processing";
|
|
218
220
|
authorized: "authorized";
|
|
219
|
-
cancelled: "cancelled";
|
|
220
|
-
expired: "expired";
|
|
221
221
|
}>>>;
|
|
222
222
|
provider: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
223
223
|
providerSessionId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -228,15 +228,15 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
|
|
|
228
228
|
currency: z.ZodOptional<z.ZodString>;
|
|
229
229
|
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
230
230
|
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
other: "other";
|
|
232
|
+
voucher: "voucher";
|
|
233
|
+
wallet: "wallet";
|
|
231
234
|
bank_transfer: "bank_transfer";
|
|
232
235
|
credit_card: "credit_card";
|
|
233
236
|
debit_card: "debit_card";
|
|
234
237
|
cash: "cash";
|
|
235
238
|
cheque: "cheque";
|
|
236
|
-
wallet: "wallet";
|
|
237
239
|
direct_bill: "direct_bill";
|
|
238
|
-
voucher: "voucher";
|
|
239
|
-
other: "other";
|
|
240
240
|
}>>>>;
|
|
241
241
|
payerPersonId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
242
242
|
payerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -274,14 +274,14 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
|
|
|
274
274
|
booking_guarantee: "booking_guarantee";
|
|
275
275
|
}>>;
|
|
276
276
|
status: z.ZodOptional<z.ZodEnum<{
|
|
277
|
-
|
|
277
|
+
expired: "expired";
|
|
278
|
+
cancelled: "cancelled";
|
|
278
279
|
pending: "pending";
|
|
279
280
|
failed: "failed";
|
|
281
|
+
paid: "paid";
|
|
280
282
|
requires_redirect: "requires_redirect";
|
|
281
283
|
processing: "processing";
|
|
282
284
|
authorized: "authorized";
|
|
283
|
-
cancelled: "cancelled";
|
|
284
|
-
expired: "expired";
|
|
285
285
|
}>>;
|
|
286
286
|
provider: z.ZodOptional<z.ZodString>;
|
|
287
287
|
providerSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -293,15 +293,15 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
|
|
|
293
293
|
export declare const createPaymentSessionFromScheduleSchema: z.ZodObject<{
|
|
294
294
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
295
295
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
other: "other";
|
|
297
|
+
voucher: "voucher";
|
|
298
|
+
wallet: "wallet";
|
|
296
299
|
bank_transfer: "bank_transfer";
|
|
297
300
|
credit_card: "credit_card";
|
|
298
301
|
debit_card: "debit_card";
|
|
299
302
|
cash: "cash";
|
|
300
303
|
cheque: "cheque";
|
|
301
|
-
wallet: "wallet";
|
|
302
304
|
direct_bill: "direct_bill";
|
|
303
|
-
voucher: "voucher";
|
|
304
|
-
other: "other";
|
|
305
305
|
}>>>;
|
|
306
306
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
307
307
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -321,15 +321,15 @@ export declare const createPaymentSessionFromScheduleSchema: z.ZodObject<{
|
|
|
321
321
|
export declare const createPaymentSessionFromGuaranteeSchema: z.ZodObject<{
|
|
322
322
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
323
323
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
other: "other";
|
|
325
|
+
voucher: "voucher";
|
|
326
|
+
wallet: "wallet";
|
|
324
327
|
bank_transfer: "bank_transfer";
|
|
325
328
|
credit_card: "credit_card";
|
|
326
329
|
debit_card: "debit_card";
|
|
327
330
|
cash: "cash";
|
|
328
331
|
cheque: "cheque";
|
|
329
|
-
wallet: "wallet";
|
|
330
332
|
direct_bill: "direct_bill";
|
|
331
|
-
voucher: "voucher";
|
|
332
|
-
other: "other";
|
|
333
333
|
}>>>;
|
|
334
334
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
335
335
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -349,15 +349,15 @@ export declare const createPaymentSessionFromGuaranteeSchema: z.ZodObject<{
|
|
|
349
349
|
export declare const createPaymentSessionFromInvoiceSchema: z.ZodObject<{
|
|
350
350
|
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
351
351
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
352
|
+
other: "other";
|
|
353
|
+
voucher: "voucher";
|
|
354
|
+
wallet: "wallet";
|
|
352
355
|
bank_transfer: "bank_transfer";
|
|
353
356
|
credit_card: "credit_card";
|
|
354
357
|
debit_card: "debit_card";
|
|
355
358
|
cash: "cash";
|
|
356
359
|
cheque: "cheque";
|
|
357
|
-
wallet: "wallet";
|
|
358
360
|
direct_bill: "direct_bill";
|
|
359
|
-
voucher: "voucher";
|
|
360
|
-
other: "other";
|
|
361
361
|
}>>>;
|
|
362
362
|
payerPersonId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
363
363
|
payerOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -386,10 +386,10 @@ export declare const applyDefaultBookingPaymentPlanSchema: z.ZodObject<{
|
|
|
386
386
|
clearExistingPending: z.ZodDefault<z.ZodBoolean>;
|
|
387
387
|
createGuarantee: z.ZodDefault<z.ZodBoolean>;
|
|
388
388
|
guaranteeType: z.ZodDefault<z.ZodEnum<{
|
|
389
|
+
other: "other";
|
|
390
|
+
voucher: "voucher";
|
|
389
391
|
bank_transfer: "bank_transfer";
|
|
390
392
|
credit_card: "credit_card";
|
|
391
|
-
voucher: "voucher";
|
|
392
|
-
other: "other";
|
|
393
393
|
deposit: "deposit";
|
|
394
394
|
preauth: "preauth";
|
|
395
395
|
card_on_file: "card_on_file";
|
|
@@ -420,20 +420,20 @@ export declare const completePaymentSessionSchema: z.ZodObject<{
|
|
|
420
420
|
providerPaymentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
421
421
|
externalReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
422
422
|
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
423
|
+
other: "other";
|
|
424
|
+
voucher: "voucher";
|
|
425
|
+
wallet: "wallet";
|
|
423
426
|
bank_transfer: "bank_transfer";
|
|
424
427
|
credit_card: "credit_card";
|
|
425
428
|
debit_card: "debit_card";
|
|
426
429
|
cash: "cash";
|
|
427
430
|
cheque: "cheque";
|
|
428
|
-
wallet: "wallet";
|
|
429
431
|
direct_bill: "direct_bill";
|
|
430
|
-
voucher: "voucher";
|
|
431
|
-
other: "other";
|
|
432
432
|
}>>>;
|
|
433
433
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
434
434
|
captureMode: z.ZodDefault<z.ZodEnum<{
|
|
435
|
-
automatic: "automatic";
|
|
436
435
|
manual: "manual";
|
|
436
|
+
automatic: "automatic";
|
|
437
437
|
}>>;
|
|
438
438
|
externalAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
439
439
|
externalCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -477,17 +477,17 @@ export declare const insertPaymentAuthorizationSchema: z.ZodObject<{
|
|
|
477
477
|
bookingGuaranteeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
478
478
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
479
479
|
status: z.ZodDefault<z.ZodEnum<{
|
|
480
|
+
expired: "expired";
|
|
480
481
|
pending: "pending";
|
|
481
482
|
failed: "failed";
|
|
482
483
|
authorized: "authorized";
|
|
483
|
-
expired: "expired";
|
|
484
484
|
partially_captured: "partially_captured";
|
|
485
485
|
captured: "captured";
|
|
486
486
|
voided: "voided";
|
|
487
487
|
}>>;
|
|
488
488
|
captureMode: z.ZodDefault<z.ZodEnum<{
|
|
489
|
-
automatic: "automatic";
|
|
490
489
|
manual: "manual";
|
|
490
|
+
automatic: "automatic";
|
|
491
491
|
}>>;
|
|
492
492
|
currency: z.ZodString;
|
|
493
493
|
amountCents: z.ZodNumber;
|
|
@@ -506,17 +506,17 @@ export declare const updatePaymentAuthorizationSchema: z.ZodObject<{
|
|
|
506
506
|
bookingGuaranteeId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
507
507
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
508
508
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
509
|
+
expired: "expired";
|
|
509
510
|
pending: "pending";
|
|
510
511
|
failed: "failed";
|
|
511
512
|
authorized: "authorized";
|
|
512
|
-
expired: "expired";
|
|
513
513
|
partially_captured: "partially_captured";
|
|
514
514
|
captured: "captured";
|
|
515
515
|
voided: "voided";
|
|
516
516
|
}>>>;
|
|
517
517
|
captureMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
518
|
-
automatic: "automatic";
|
|
519
518
|
manual: "manual";
|
|
519
|
+
automatic: "automatic";
|
|
520
520
|
}>>>;
|
|
521
521
|
currency: z.ZodOptional<z.ZodString>;
|
|
522
522
|
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
@@ -537,10 +537,10 @@ export declare const paymentAuthorizationListQuerySchema: z.ZodObject<{
|
|
|
537
537
|
bookingGuaranteeId: z.ZodOptional<z.ZodString>;
|
|
538
538
|
paymentInstrumentId: z.ZodOptional<z.ZodString>;
|
|
539
539
|
status: z.ZodOptional<z.ZodEnum<{
|
|
540
|
+
expired: "expired";
|
|
540
541
|
pending: "pending";
|
|
541
542
|
failed: "failed";
|
|
542
543
|
authorized: "authorized";
|
|
543
|
-
expired: "expired";
|
|
544
544
|
partially_captured: "partially_captured";
|
|
545
545
|
captured: "captured";
|
|
546
546
|
voided: "voided";
|
|
@@ -550,8 +550,8 @@ export declare const insertPaymentCaptureSchema: z.ZodObject<{
|
|
|
550
550
|
paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
551
551
|
invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
552
552
|
status: z.ZodDefault<z.ZodEnum<{
|
|
553
|
-
pending: "pending";
|
|
554
553
|
completed: "completed";
|
|
554
|
+
pending: "pending";
|
|
555
555
|
failed: "failed";
|
|
556
556
|
refunded: "refunded";
|
|
557
557
|
voided: "voided";
|
|
@@ -568,8 +568,8 @@ export declare const updatePaymentCaptureSchema: z.ZodObject<{
|
|
|
568
568
|
paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
569
569
|
invoiceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
570
570
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
571
|
-
pending: "pending";
|
|
572
571
|
completed: "completed";
|
|
572
|
+
pending: "pending";
|
|
573
573
|
failed: "failed";
|
|
574
574
|
refunded: "refunded";
|
|
575
575
|
voided: "voided";
|
|
@@ -588,8 +588,8 @@ export declare const paymentCaptureListQuerySchema: z.ZodObject<{
|
|
|
588
588
|
paymentAuthorizationId: z.ZodOptional<z.ZodString>;
|
|
589
589
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
590
590
|
status: z.ZodOptional<z.ZodEnum<{
|
|
591
|
-
pending: "pending";
|
|
592
591
|
completed: "completed";
|
|
592
|
+
pending: "pending";
|
|
593
593
|
failed: "failed";
|
|
594
594
|
refunded: "refunded";
|
|
595
595
|
voided: "voided";
|
|
@@ -605,10 +605,10 @@ export declare const insertBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
605
605
|
hold: "hold";
|
|
606
606
|
}>>;
|
|
607
607
|
status: z.ZodDefault<z.ZodEnum<{
|
|
608
|
-
paid: "paid";
|
|
609
|
-
pending: "pending";
|
|
610
|
-
cancelled: "cancelled";
|
|
611
608
|
expired: "expired";
|
|
609
|
+
cancelled: "cancelled";
|
|
610
|
+
pending: "pending";
|
|
611
|
+
paid: "paid";
|
|
612
612
|
due: "due";
|
|
613
613
|
waived: "waived";
|
|
614
614
|
}>>;
|
|
@@ -627,10 +627,10 @@ export declare const updateBookingPaymentScheduleSchema: z.ZodObject<{
|
|
|
627
627
|
hold: "hold";
|
|
628
628
|
}>>>;
|
|
629
629
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
630
|
-
paid: "paid";
|
|
631
|
-
pending: "pending";
|
|
632
|
-
cancelled: "cancelled";
|
|
633
630
|
expired: "expired";
|
|
631
|
+
cancelled: "cancelled";
|
|
632
|
+
pending: "pending";
|
|
633
|
+
paid: "paid";
|
|
634
634
|
due: "due";
|
|
635
635
|
waived: "waived";
|
|
636
636
|
}>>>;
|
|
@@ -643,22 +643,22 @@ export declare const insertBookingGuaranteeSchema: z.ZodObject<{
|
|
|
643
643
|
bookingPaymentScheduleId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
644
644
|
bookingItemId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
645
645
|
guaranteeType: z.ZodEnum<{
|
|
646
|
+
other: "other";
|
|
647
|
+
voucher: "voucher";
|
|
646
648
|
bank_transfer: "bank_transfer";
|
|
647
649
|
credit_card: "credit_card";
|
|
648
|
-
voucher: "voucher";
|
|
649
|
-
other: "other";
|
|
650
650
|
deposit: "deposit";
|
|
651
651
|
preauth: "preauth";
|
|
652
652
|
card_on_file: "card_on_file";
|
|
653
653
|
agency_letter: "agency_letter";
|
|
654
654
|
}>;
|
|
655
655
|
status: z.ZodDefault<z.ZodEnum<{
|
|
656
|
+
expired: "expired";
|
|
657
|
+
cancelled: "cancelled";
|
|
656
658
|
pending: "pending";
|
|
659
|
+
released: "released";
|
|
657
660
|
failed: "failed";
|
|
658
|
-
cancelled: "cancelled";
|
|
659
|
-
expired: "expired";
|
|
660
661
|
active: "active";
|
|
661
|
-
released: "released";
|
|
662
662
|
}>>;
|
|
663
663
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
664
664
|
paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -675,22 +675,22 @@ export declare const updateBookingGuaranteeSchema: z.ZodObject<{
|
|
|
675
675
|
bookingPaymentScheduleId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
676
676
|
bookingItemId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
677
677
|
guaranteeType: z.ZodOptional<z.ZodEnum<{
|
|
678
|
+
other: "other";
|
|
679
|
+
voucher: "voucher";
|
|
678
680
|
bank_transfer: "bank_transfer";
|
|
679
681
|
credit_card: "credit_card";
|
|
680
|
-
voucher: "voucher";
|
|
681
|
-
other: "other";
|
|
682
682
|
deposit: "deposit";
|
|
683
683
|
preauth: "preauth";
|
|
684
684
|
card_on_file: "card_on_file";
|
|
685
685
|
agency_letter: "agency_letter";
|
|
686
686
|
}>>;
|
|
687
687
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
688
|
+
expired: "expired";
|
|
689
|
+
cancelled: "cancelled";
|
|
688
690
|
pending: "pending";
|
|
691
|
+
released: "released";
|
|
689
692
|
failed: "failed";
|
|
690
|
-
cancelled: "cancelled";
|
|
691
|
-
expired: "expired";
|
|
692
693
|
active: "active";
|
|
693
|
-
released: "released";
|
|
694
694
|
}>>>;
|
|
695
695
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
696
696
|
paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -710,22 +710,22 @@ export declare const insertPaymentSchema: z.ZodObject<{
|
|
|
710
710
|
baseAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
711
711
|
fxRateSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
712
712
|
paymentMethod: z.ZodEnum<{
|
|
713
|
+
other: "other";
|
|
714
|
+
voucher: "voucher";
|
|
715
|
+
wallet: "wallet";
|
|
713
716
|
bank_transfer: "bank_transfer";
|
|
714
717
|
credit_card: "credit_card";
|
|
715
718
|
debit_card: "debit_card";
|
|
716
719
|
cash: "cash";
|
|
717
720
|
cheque: "cheque";
|
|
718
|
-
wallet: "wallet";
|
|
719
721
|
direct_bill: "direct_bill";
|
|
720
|
-
voucher: "voucher";
|
|
721
|
-
other: "other";
|
|
722
722
|
}>;
|
|
723
723
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
724
724
|
paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
725
725
|
paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
726
726
|
status: z.ZodDefault<z.ZodEnum<{
|
|
727
|
-
pending: "pending";
|
|
728
727
|
completed: "completed";
|
|
728
|
+
pending: "pending";
|
|
729
729
|
failed: "failed";
|
|
730
730
|
refunded: "refunded";
|
|
731
731
|
}>>;
|
|
@@ -740,22 +740,22 @@ export declare const updatePaymentSchema: z.ZodObject<{
|
|
|
740
740
|
baseAmountCents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
741
741
|
fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
742
742
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
743
|
+
other: "other";
|
|
744
|
+
voucher: "voucher";
|
|
745
|
+
wallet: "wallet";
|
|
743
746
|
bank_transfer: "bank_transfer";
|
|
744
747
|
credit_card: "credit_card";
|
|
745
748
|
debit_card: "debit_card";
|
|
746
749
|
cash: "cash";
|
|
747
750
|
cheque: "cheque";
|
|
748
|
-
wallet: "wallet";
|
|
749
751
|
direct_bill: "direct_bill";
|
|
750
|
-
voucher: "voucher";
|
|
751
|
-
other: "other";
|
|
752
752
|
}>>;
|
|
753
753
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
754
754
|
paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
755
755
|
paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
756
756
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
757
|
-
pending: "pending";
|
|
758
757
|
completed: "completed";
|
|
758
|
+
pending: "pending";
|
|
759
759
|
failed: "failed";
|
|
760
760
|
refunded: "refunded";
|
|
761
761
|
}>>>;
|
|
@@ -773,20 +773,20 @@ export declare const insertSupplierPaymentSchema: z.ZodObject<{
|
|
|
773
773
|
baseAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
774
774
|
fxRateSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
775
775
|
paymentMethod: z.ZodEnum<{
|
|
776
|
+
other: "other";
|
|
777
|
+
voucher: "voucher";
|
|
778
|
+
wallet: "wallet";
|
|
776
779
|
bank_transfer: "bank_transfer";
|
|
777
780
|
credit_card: "credit_card";
|
|
778
781
|
debit_card: "debit_card";
|
|
779
782
|
cash: "cash";
|
|
780
783
|
cheque: "cheque";
|
|
781
|
-
wallet: "wallet";
|
|
782
784
|
direct_bill: "direct_bill";
|
|
783
|
-
voucher: "voucher";
|
|
784
|
-
other: "other";
|
|
785
785
|
}>;
|
|
786
786
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
787
787
|
status: z.ZodDefault<z.ZodEnum<{
|
|
788
|
-
pending: "pending";
|
|
789
788
|
completed: "completed";
|
|
789
|
+
pending: "pending";
|
|
790
790
|
failed: "failed";
|
|
791
791
|
refunded: "refunded";
|
|
792
792
|
}>>;
|
|
@@ -804,20 +804,20 @@ export declare const updateSupplierPaymentSchema: z.ZodObject<{
|
|
|
804
804
|
baseAmountCents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
805
805
|
fxRateSetId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
806
806
|
paymentMethod: z.ZodOptional<z.ZodEnum<{
|
|
807
|
+
other: "other";
|
|
808
|
+
voucher: "voucher";
|
|
809
|
+
wallet: "wallet";
|
|
807
810
|
bank_transfer: "bank_transfer";
|
|
808
811
|
credit_card: "credit_card";
|
|
809
812
|
debit_card: "debit_card";
|
|
810
813
|
cash: "cash";
|
|
811
814
|
cheque: "cheque";
|
|
812
|
-
wallet: "wallet";
|
|
813
815
|
direct_bill: "direct_bill";
|
|
814
|
-
voucher: "voucher";
|
|
815
|
-
other: "other";
|
|
816
816
|
}>>;
|
|
817
817
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
818
818
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
819
|
-
pending: "pending";
|
|
820
819
|
completed: "completed";
|
|
820
|
+
pending: "pending";
|
|
821
821
|
failed: "failed";
|
|
822
822
|
refunded: "refunded";
|
|
823
823
|
}>>>;
|
|
@@ -829,8 +829,8 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
|
|
|
829
829
|
bookingId: z.ZodOptional<z.ZodString>;
|
|
830
830
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
831
831
|
status: z.ZodOptional<z.ZodEnum<{
|
|
832
|
-
pending: "pending";
|
|
833
832
|
completed: "completed";
|
|
833
|
+
pending: "pending";
|
|
834
834
|
failed: "failed";
|
|
835
835
|
refunded: "refunded";
|
|
836
836
|
}>>;
|