@voyantjs/finance 0.20.0 → 0.21.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/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -4
- package/dist/payment-policy.d.ts +113 -0
- package/dist/payment-policy.d.ts.map +1 -0
- package/dist/payment-policy.js +193 -0
- package/dist/routes-documents.d.ts +2 -2
- package/dist/routes-public.d.ts +12 -12
- package/dist/routes.d.ts +530 -31
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +120 -5
- package/dist/schema.d.ts +538 -6
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +84 -0
- package/dist/service-issue.d.ts +108 -0
- package/dist/service-issue.d.ts.map +1 -0
- package/dist/service-issue.js +57 -0
- package/dist/service-public.d.ts +5 -5
- package/dist/service.d.ts +257 -37
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +278 -20
- package/dist/validation-billing.d.ts +109 -0
- package/dist/validation-billing.d.ts.map +1 -1
- package/dist/validation-billing.js +58 -0
- package/dist/validation-payments.d.ts +16 -16
- package/dist/validation-public.d.ts +3 -3
- package/dist/validation-shared.d.ts +5 -5
- package/package.json +7 -7
|
@@ -145,9 +145,9 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
|
|
|
145
145
|
paymentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
146
146
|
status: z.ZodDefault<z.ZodEnum<{
|
|
147
147
|
pending: "pending";
|
|
148
|
+
failed: "failed";
|
|
148
149
|
expired: "expired";
|
|
149
150
|
cancelled: "cancelled";
|
|
150
|
-
failed: "failed";
|
|
151
151
|
paid: "paid";
|
|
152
152
|
requires_redirect: "requires_redirect";
|
|
153
153
|
processing: "processing";
|
|
@@ -213,9 +213,9 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
|
|
|
213
213
|
paymentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
214
214
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
215
215
|
pending: "pending";
|
|
216
|
+
failed: "failed";
|
|
216
217
|
expired: "expired";
|
|
217
218
|
cancelled: "cancelled";
|
|
218
|
-
failed: "failed";
|
|
219
219
|
paid: "paid";
|
|
220
220
|
requires_redirect: "requires_redirect";
|
|
221
221
|
processing: "processing";
|
|
@@ -278,9 +278,9 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
|
|
|
278
278
|
}>>;
|
|
279
279
|
status: z.ZodOptional<z.ZodEnum<{
|
|
280
280
|
pending: "pending";
|
|
281
|
+
failed: "failed";
|
|
281
282
|
expired: "expired";
|
|
282
283
|
cancelled: "cancelled";
|
|
283
|
-
failed: "failed";
|
|
284
284
|
paid: "paid";
|
|
285
285
|
requires_redirect: "requires_redirect";
|
|
286
286
|
processing: "processing";
|
|
@@ -481,8 +481,8 @@ export declare const insertPaymentAuthorizationSchema: z.ZodObject<{
|
|
|
481
481
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
482
482
|
status: z.ZodDefault<z.ZodEnum<{
|
|
483
483
|
pending: "pending";
|
|
484
|
-
expired: "expired";
|
|
485
484
|
failed: "failed";
|
|
485
|
+
expired: "expired";
|
|
486
486
|
authorized: "authorized";
|
|
487
487
|
partially_captured: "partially_captured";
|
|
488
488
|
captured: "captured";
|
|
@@ -510,8 +510,8 @@ export declare const updatePaymentAuthorizationSchema: z.ZodObject<{
|
|
|
510
510
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
511
511
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
512
512
|
pending: "pending";
|
|
513
|
-
expired: "expired";
|
|
514
513
|
failed: "failed";
|
|
514
|
+
expired: "expired";
|
|
515
515
|
authorized: "authorized";
|
|
516
516
|
partially_captured: "partially_captured";
|
|
517
517
|
captured: "captured";
|
|
@@ -541,8 +541,8 @@ export declare const paymentAuthorizationListQuerySchema: z.ZodObject<{
|
|
|
541
541
|
paymentInstrumentId: z.ZodOptional<z.ZodString>;
|
|
542
542
|
status: z.ZodOptional<z.ZodEnum<{
|
|
543
543
|
pending: "pending";
|
|
544
|
-
expired: "expired";
|
|
545
544
|
failed: "failed";
|
|
545
|
+
expired: "expired";
|
|
546
546
|
authorized: "authorized";
|
|
547
547
|
partially_captured: "partially_captured";
|
|
548
548
|
captured: "captured";
|
|
@@ -554,8 +554,8 @@ export declare const insertPaymentCaptureSchema: z.ZodObject<{
|
|
|
554
554
|
invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
555
555
|
status: z.ZodDefault<z.ZodEnum<{
|
|
556
556
|
pending: "pending";
|
|
557
|
-
completed: "completed";
|
|
558
557
|
failed: "failed";
|
|
558
|
+
completed: "completed";
|
|
559
559
|
refunded: "refunded";
|
|
560
560
|
voided: "voided";
|
|
561
561
|
}>>;
|
|
@@ -572,8 +572,8 @@ export declare const updatePaymentCaptureSchema: z.ZodObject<{
|
|
|
572
572
|
invoiceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
573
573
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
574
574
|
pending: "pending";
|
|
575
|
-
completed: "completed";
|
|
576
575
|
failed: "failed";
|
|
576
|
+
completed: "completed";
|
|
577
577
|
refunded: "refunded";
|
|
578
578
|
voided: "voided";
|
|
579
579
|
}>>>;
|
|
@@ -592,8 +592,8 @@ export declare const paymentCaptureListQuerySchema: z.ZodObject<{
|
|
|
592
592
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
593
593
|
status: z.ZodOptional<z.ZodEnum<{
|
|
594
594
|
pending: "pending";
|
|
595
|
-
completed: "completed";
|
|
596
595
|
failed: "failed";
|
|
596
|
+
completed: "completed";
|
|
597
597
|
refunded: "refunded";
|
|
598
598
|
voided: "voided";
|
|
599
599
|
}>>;
|
|
@@ -658,10 +658,10 @@ export declare const insertBookingGuaranteeSchema: z.ZodObject<{
|
|
|
658
658
|
status: z.ZodDefault<z.ZodEnum<{
|
|
659
659
|
pending: "pending";
|
|
660
660
|
active: "active";
|
|
661
|
+
failed: "failed";
|
|
661
662
|
expired: "expired";
|
|
662
663
|
cancelled: "cancelled";
|
|
663
664
|
released: "released";
|
|
664
|
-
failed: "failed";
|
|
665
665
|
}>>;
|
|
666
666
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
667
667
|
paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -690,10 +690,10 @@ export declare const updateBookingGuaranteeSchema: z.ZodObject<{
|
|
|
690
690
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
691
691
|
pending: "pending";
|
|
692
692
|
active: "active";
|
|
693
|
+
failed: "failed";
|
|
693
694
|
expired: "expired";
|
|
694
695
|
cancelled: "cancelled";
|
|
695
696
|
released: "released";
|
|
696
|
-
failed: "failed";
|
|
697
697
|
}>>>;
|
|
698
698
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
699
699
|
paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -728,8 +728,8 @@ export declare const insertPaymentSchema: z.ZodObject<{
|
|
|
728
728
|
paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
729
729
|
status: z.ZodDefault<z.ZodEnum<{
|
|
730
730
|
pending: "pending";
|
|
731
|
-
completed: "completed";
|
|
732
731
|
failed: "failed";
|
|
732
|
+
completed: "completed";
|
|
733
733
|
refunded: "refunded";
|
|
734
734
|
}>>;
|
|
735
735
|
referenceNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -758,8 +758,8 @@ export declare const updatePaymentSchema: z.ZodObject<{
|
|
|
758
758
|
paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
759
759
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
760
760
|
pending: "pending";
|
|
761
|
-
completed: "completed";
|
|
762
761
|
failed: "failed";
|
|
762
|
+
completed: "completed";
|
|
763
763
|
refunded: "refunded";
|
|
764
764
|
}>>>;
|
|
765
765
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -789,8 +789,8 @@ export declare const insertSupplierPaymentSchema: z.ZodObject<{
|
|
|
789
789
|
paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
790
790
|
status: z.ZodDefault<z.ZodEnum<{
|
|
791
791
|
pending: "pending";
|
|
792
|
-
completed: "completed";
|
|
793
792
|
failed: "failed";
|
|
793
|
+
completed: "completed";
|
|
794
794
|
refunded: "refunded";
|
|
795
795
|
}>>;
|
|
796
796
|
referenceNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -820,8 +820,8 @@ export declare const updateSupplierPaymentSchema: z.ZodObject<{
|
|
|
820
820
|
paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
821
821
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
822
822
|
pending: "pending";
|
|
823
|
-
completed: "completed";
|
|
824
823
|
failed: "failed";
|
|
824
|
+
completed: "completed";
|
|
825
825
|
refunded: "refunded";
|
|
826
826
|
}>>>;
|
|
827
827
|
referenceNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -833,8 +833,8 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
|
|
|
833
833
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
834
834
|
status: z.ZodOptional<z.ZodEnum<{
|
|
835
835
|
pending: "pending";
|
|
836
|
-
completed: "completed";
|
|
837
836
|
failed: "failed";
|
|
837
|
+
completed: "completed";
|
|
838
838
|
refunded: "refunded";
|
|
839
839
|
}>>;
|
|
840
840
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -222,9 +222,9 @@ export declare const publicPaymentSessionSchema: z.ZodObject<{
|
|
|
222
222
|
bookingGuaranteeId: z.ZodNullable<z.ZodString>;
|
|
223
223
|
status: z.ZodEnum<{
|
|
224
224
|
pending: "pending";
|
|
225
|
+
failed: "failed";
|
|
225
226
|
expired: "expired";
|
|
226
227
|
cancelled: "cancelled";
|
|
227
|
-
failed: "failed";
|
|
228
228
|
paid: "paid";
|
|
229
229
|
requires_redirect: "requires_redirect";
|
|
230
230
|
processing: "processing";
|
|
@@ -400,8 +400,8 @@ export declare const publicFinanceBookingPaymentSchema: z.ZodObject<{
|
|
|
400
400
|
}>;
|
|
401
401
|
status: z.ZodEnum<{
|
|
402
402
|
pending: "pending";
|
|
403
|
-
completed: "completed";
|
|
404
403
|
failed: "failed";
|
|
404
|
+
completed: "completed";
|
|
405
405
|
refunded: "refunded";
|
|
406
406
|
}>;
|
|
407
407
|
paymentMethod: z.ZodEnum<{
|
|
@@ -434,8 +434,8 @@ export declare const publicBookingFinancePaymentsSchema: z.ZodObject<{
|
|
|
434
434
|
}>;
|
|
435
435
|
status: z.ZodEnum<{
|
|
436
436
|
pending: "pending";
|
|
437
|
-
completed: "completed";
|
|
438
437
|
failed: "failed";
|
|
438
|
+
completed: "completed";
|
|
439
439
|
refunded: "refunded";
|
|
440
440
|
}>;
|
|
441
441
|
paymentMethod: z.ZodEnum<{
|
|
@@ -20,15 +20,15 @@ export declare const paymentMethodSchema: z.ZodEnum<{
|
|
|
20
20
|
}>;
|
|
21
21
|
export declare const paymentStatusSchema: z.ZodEnum<{
|
|
22
22
|
pending: "pending";
|
|
23
|
-
completed: "completed";
|
|
24
23
|
failed: "failed";
|
|
24
|
+
completed: "completed";
|
|
25
25
|
refunded: "refunded";
|
|
26
26
|
}>;
|
|
27
27
|
export declare const paymentSessionStatusSchema: z.ZodEnum<{
|
|
28
28
|
pending: "pending";
|
|
29
|
+
failed: "failed";
|
|
29
30
|
expired: "expired";
|
|
30
31
|
cancelled: "cancelled";
|
|
31
|
-
failed: "failed";
|
|
32
32
|
paid: "paid";
|
|
33
33
|
requires_redirect: "requires_redirect";
|
|
34
34
|
processing: "processing";
|
|
@@ -70,8 +70,8 @@ export declare const paymentInstrumentStatusSchema: z.ZodEnum<{
|
|
|
70
70
|
}>;
|
|
71
71
|
export declare const paymentAuthorizationStatusSchema: z.ZodEnum<{
|
|
72
72
|
pending: "pending";
|
|
73
|
-
expired: "expired";
|
|
74
73
|
failed: "failed";
|
|
74
|
+
expired: "expired";
|
|
75
75
|
authorized: "authorized";
|
|
76
76
|
partially_captured: "partially_captured";
|
|
77
77
|
captured: "captured";
|
|
@@ -79,8 +79,8 @@ export declare const paymentAuthorizationStatusSchema: z.ZodEnum<{
|
|
|
79
79
|
}>;
|
|
80
80
|
export declare const paymentCaptureStatusSchema: z.ZodEnum<{
|
|
81
81
|
pending: "pending";
|
|
82
|
-
completed: "completed";
|
|
83
82
|
failed: "failed";
|
|
83
|
+
completed: "completed";
|
|
84
84
|
refunded: "refunded";
|
|
85
85
|
voided: "voided";
|
|
86
86
|
}>;
|
|
@@ -121,10 +121,10 @@ export declare const guaranteeTypeSchema: z.ZodEnum<{
|
|
|
121
121
|
export declare const guaranteeStatusSchema: z.ZodEnum<{
|
|
122
122
|
pending: "pending";
|
|
123
123
|
active: "active";
|
|
124
|
+
failed: "failed";
|
|
124
125
|
expired: "expired";
|
|
125
126
|
cancelled: "cancelled";
|
|
126
127
|
released: "released";
|
|
127
|
-
failed: "failed";
|
|
128
128
|
}>;
|
|
129
129
|
export declare const taxScopeSchema: z.ZodEnum<{
|
|
130
130
|
included: "included";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/finance",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"drizzle-orm": "^0.45.2",
|
|
40
40
|
"hono": "^4.12.10",
|
|
41
41
|
"zod": "^4.3.6",
|
|
42
|
-
"@voyantjs/bookings": "0.
|
|
43
|
-
"@voyantjs/core": "0.
|
|
44
|
-
"@voyantjs/db": "0.
|
|
45
|
-
"@voyantjs/hono": "0.
|
|
46
|
-
"@voyantjs/utils": "0.
|
|
47
|
-
"@voyantjs/storage": "0.
|
|
42
|
+
"@voyantjs/bookings": "0.21.0",
|
|
43
|
+
"@voyantjs/core": "0.21.0",
|
|
44
|
+
"@voyantjs/db": "0.21.0",
|
|
45
|
+
"@voyantjs/hono": "0.21.0",
|
|
46
|
+
"@voyantjs/utils": "0.21.0",
|
|
47
|
+
"@voyantjs/storage": "0.21.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^6.0.2",
|