@voyantjs/finance-contracts 0.95.0 → 0.103.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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may accept and charge a
167
+ fee for, the acceptance of support, warranty, indemnity, or
168
+ other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 PixelMakers Studio SRL
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -35,12 +35,12 @@ export declare const insertBookingItemCommissionSchema: z.ZodObject<{
35
35
  channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
36
  recipientType: z.ZodEnum<{
37
37
  other: "other";
38
+ supplier: "supplier";
38
39
  channel: "channel";
39
- affiliate: "affiliate";
40
40
  agency: "agency";
41
- agent: "agent";
42
41
  internal: "internal";
43
- supplier: "supplier";
42
+ affiliate: "affiliate";
43
+ agent: "agent";
44
44
  }>;
45
45
  commissionModel: z.ZodDefault<z.ZodEnum<{
46
46
  percentage: "percentage";
@@ -66,12 +66,12 @@ export declare const updateBookingItemCommissionSchema: z.ZodObject<{
66
66
  channelId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
67
67
  recipientType: z.ZodOptional<z.ZodEnum<{
68
68
  other: "other";
69
+ supplier: "supplier";
69
70
  channel: "channel";
70
- affiliate: "affiliate";
71
71
  agency: "agency";
72
- agent: "agent";
73
72
  internal: "internal";
74
- supplier: "supplier";
73
+ affiliate: "affiliate";
74
+ agent: "agent";
75
75
  }>>;
76
76
  commissionModel: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
77
77
  percentage: "percentage";
@@ -391,11 +391,11 @@ export declare const invoiceNumberSeriesListQuerySchema: z.ZodObject<{
391
391
  credit_note: "credit_note";
392
392
  }>>;
393
393
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
394
- 0: "0";
395
- 1: "1";
396
394
  true: "true";
395
+ 0: "0";
397
396
  false: "false";
398
- }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
397
+ 1: "1";
398
+ }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
399
399
  }, z.core.$strip>;
400
400
  export declare const allocateInvoiceNumberInputSchema: z.ZodObject<{
401
401
  seriesId: z.ZodString;
@@ -450,8 +450,8 @@ export declare const insertInvoiceRenditionSchema: z.ZodObject<{
450
450
  }>>;
451
451
  status: z.ZodDefault<z.ZodEnum<{
452
452
  pending: "pending";
453
- ready: "ready";
454
453
  failed: "failed";
454
+ ready: "ready";
455
455
  stale: "stale";
456
456
  }>>;
457
457
  storageKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -472,8 +472,8 @@ export declare const updateInvoiceRenditionSchema: z.ZodObject<{
472
472
  }>>>;
473
473
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
474
474
  pending: "pending";
475
- ready: "ready";
476
475
  failed: "failed";
476
+ ready: "ready";
477
477
  stale: "stale";
478
478
  }>>>;
479
479
  storageKey: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -564,10 +564,10 @@ export declare const insertTaxClassSchema: z.ZodObject<{
564
564
  lines: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
565
565
  regime_id: z.ZodString;
566
566
  applies_to: z.ZodEnum<{
567
- all: "all";
568
567
  base: "base";
569
568
  addon: "addon";
570
569
  accommodation: "accommodation";
570
+ all: "all";
571
571
  }>;
572
572
  }, z.core.$strip>>>>;
573
573
  active: z.ZodDefault<z.ZodBoolean>;
@@ -580,10 +580,10 @@ export declare const updateTaxClassSchema: z.ZodObject<{
580
580
  lines: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
581
581
  regime_id: z.ZodString;
582
582
  applies_to: z.ZodEnum<{
583
- all: "all";
584
583
  base: "base";
585
584
  addon: "addon";
586
585
  accommodation: "accommodation";
586
+ all: "all";
587
587
  }>;
588
588
  }, z.core.$strip>>>>>;
589
589
  active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -624,10 +624,10 @@ export declare const insertTaxPolicyRuleSchema: z.ZodObject<{
624
624
  priority: z.ZodDefault<z.ZodNumber>;
625
625
  name: z.ZodString;
626
626
  appliesTo: z.ZodDefault<z.ZodEnum<{
627
- all: "all";
628
627
  base: "base";
629
628
  addon: "addon";
630
629
  accommodation: "accommodation";
630
+ all: "all";
631
631
  }>>;
632
632
  condition: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
633
633
  taxRegimeId: z.ZodString;
@@ -642,10 +642,10 @@ export declare const updateTaxPolicyRuleSchema: z.ZodObject<{
642
642
  priority: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
643
643
  name: z.ZodOptional<z.ZodString>;
644
644
  appliesTo: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
645
- all: "all";
646
645
  base: "base";
647
646
  addon: "addon";
648
647
  accommodation: "accommodation";
648
+ all: "all";
649
649
  }>>>;
650
650
  condition: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
651
651
  taxRegimeId: z.ZodOptional<z.ZodString>;
@@ -806,8 +806,8 @@ export declare const generatedInvoiceDocumentResultSchema: z.ZodObject<{
806
806
  }>;
807
807
  status: z.ZodEnum<{
808
808
  pending: "pending";
809
- ready: "ready";
810
809
  failed: "failed";
810
+ ready: "ready";
811
811
  stale: "stale";
812
812
  }>;
813
813
  storageKey: z.ZodNullable<z.ZodString>;
@@ -2,11 +2,11 @@ import { z } from "zod";
2
2
  export declare const insertPaymentInstrumentSchema: z.ZodObject<{
3
3
  ownerType: z.ZodDefault<z.ZodEnum<{
4
4
  other: "other";
5
+ client: "client";
6
+ supplier: "supplier";
5
7
  channel: "channel";
6
8
  agency: "agency";
7
9
  internal: "internal";
8
- supplier: "supplier";
9
- client: "client";
10
10
  }>>;
11
11
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12
12
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -23,9 +23,9 @@ export declare const insertPaymentInstrumentSchema: z.ZodObject<{
23
23
  bank_account: "bank_account";
24
24
  }>;
25
25
  status: z.ZodDefault<z.ZodEnum<{
26
+ expired: "expired";
26
27
  active: "active";
27
28
  inactive: "inactive";
28
- expired: "expired";
29
29
  revoked: "revoked";
30
30
  failed_verification: "failed_verification";
31
31
  }>>;
@@ -47,11 +47,11 @@ export declare const insertPaymentInstrumentSchema: z.ZodObject<{
47
47
  export declare const updatePaymentInstrumentSchema: z.ZodObject<{
48
48
  ownerType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
49
49
  other: "other";
50
+ client: "client";
51
+ supplier: "supplier";
50
52
  channel: "channel";
51
53
  agency: "agency";
52
54
  internal: "internal";
53
- supplier: "supplier";
54
- client: "client";
55
55
  }>>>;
56
56
  personId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
57
57
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -68,9 +68,9 @@ export declare const updatePaymentInstrumentSchema: z.ZodObject<{
68
68
  bank_account: "bank_account";
69
69
  }>>;
70
70
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
71
+ expired: "expired";
71
72
  active: "active";
72
73
  inactive: "inactive";
73
- expired: "expired";
74
74
  revoked: "revoked";
75
75
  failed_verification: "failed_verification";
76
76
  }>>>;
@@ -94,20 +94,20 @@ export declare const paymentInstrumentListQuerySchema: z.ZodObject<{
94
94
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
95
95
  ownerType: z.ZodOptional<z.ZodEnum<{
96
96
  other: "other";
97
+ client: "client";
98
+ supplier: "supplier";
97
99
  channel: "channel";
98
100
  agency: "agency";
99
101
  internal: "internal";
100
- supplier: "supplier";
101
- client: "client";
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
+ expired: "expired";
108
109
  active: "active";
109
110
  inactive: "inactive";
110
- expired: "expired";
111
111
  revoked: "revoked";
112
112
  failed_verification: "failed_verification";
113
113
  }>>;
@@ -126,9 +126,9 @@ export declare const paymentInstrumentListQuerySchema: z.ZodObject<{
126
126
  export declare const insertPaymentSessionSchema: z.ZodObject<{
127
127
  targetType: z.ZodDefault<z.ZodEnum<{
128
128
  other: "other";
129
- invoice: "invoice";
130
129
  booking: "booking";
131
130
  order: "order";
131
+ invoice: "invoice";
132
132
  booking_payment_schedule: "booking_payment_schedule";
133
133
  booking_guarantee: "booking_guarantee";
134
134
  flight_order: "flight_order";
@@ -147,11 +147,11 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
147
147
  paid: "paid";
148
148
  pending: "pending";
149
149
  failed: "failed";
150
- expired: "expired";
151
150
  requires_redirect: "requires_redirect";
152
151
  processing: "processing";
153
152
  authorized: "authorized";
154
153
  cancelled: "cancelled";
154
+ expired: "expired";
155
155
  }>>;
156
156
  provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
157
157
  providerSessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -194,9 +194,9 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
194
194
  export declare const updatePaymentSessionSchema: z.ZodObject<{
195
195
  targetType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
196
196
  other: "other";
197
- invoice: "invoice";
198
197
  booking: "booking";
199
198
  order: "order";
199
+ invoice: "invoice";
200
200
  booking_payment_schedule: "booking_payment_schedule";
201
201
  booking_guarantee: "booking_guarantee";
202
202
  flight_order: "flight_order";
@@ -215,11 +215,11 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
215
215
  paid: "paid";
216
216
  pending: "pending";
217
217
  failed: "failed";
218
- expired: "expired";
219
218
  requires_redirect: "requires_redirect";
220
219
  processing: "processing";
221
220
  authorized: "authorized";
222
221
  cancelled: "cancelled";
222
+ expired: "expired";
223
223
  }>>>;
224
224
  provider: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
225
225
  providerSessionId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -269,9 +269,9 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
269
269
  bookingGuaranteeId: z.ZodOptional<z.ZodString>;
270
270
  targetType: z.ZodOptional<z.ZodEnum<{
271
271
  other: "other";
272
- invoice: "invoice";
273
272
  booking: "booking";
274
273
  order: "order";
274
+ invoice: "invoice";
275
275
  booking_payment_schedule: "booking_payment_schedule";
276
276
  booking_guarantee: "booking_guarantee";
277
277
  flight_order: "flight_order";
@@ -280,11 +280,11 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
280
280
  paid: "paid";
281
281
  pending: "pending";
282
282
  failed: "failed";
283
- expired: "expired";
284
283
  requires_redirect: "requires_redirect";
285
284
  processing: "processing";
286
285
  authorized: "authorized";
287
286
  cancelled: "cancelled";
287
+ expired: "expired";
288
288
  }>>;
289
289
  provider: z.ZodOptional<z.ZodString>;
290
290
  providerSessionId: z.ZodOptional<z.ZodString>;
@@ -482,8 +482,8 @@ export declare const insertPaymentAuthorizationSchema: z.ZodObject<{
482
482
  status: z.ZodDefault<z.ZodEnum<{
483
483
  pending: "pending";
484
484
  failed: "failed";
485
- expired: "expired";
486
485
  authorized: "authorized";
486
+ expired: "expired";
487
487
  partially_captured: "partially_captured";
488
488
  captured: "captured";
489
489
  voided: "voided";
@@ -511,8 +511,8 @@ export declare const updatePaymentAuthorizationSchema: z.ZodObject<{
511
511
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
512
512
  pending: "pending";
513
513
  failed: "failed";
514
- expired: "expired";
515
514
  authorized: "authorized";
515
+ expired: "expired";
516
516
  partially_captured: "partially_captured";
517
517
  captured: "captured";
518
518
  voided: "voided";
@@ -542,8 +542,8 @@ export declare const paymentAuthorizationListQuerySchema: z.ZodObject<{
542
542
  status: z.ZodOptional<z.ZodEnum<{
543
543
  pending: "pending";
544
544
  failed: "failed";
545
- expired: "expired";
546
545
  authorized: "authorized";
546
+ expired: "expired";
547
547
  partially_captured: "partially_captured";
548
548
  captured: "captured";
549
549
  voided: "voided";
@@ -554,10 +554,10 @@ 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
- failed: "failed";
558
- voided: "voided";
559
557
  completed: "completed";
558
+ failed: "failed";
560
559
  refunded: "refunded";
560
+ voided: "voided";
561
561
  }>>;
562
562
  currency: z.ZodString;
563
563
  amountCents: z.ZodNumber;
@@ -572,10 +572,10 @@ 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
- failed: "failed";
576
- voided: "voided";
577
575
  completed: "completed";
576
+ failed: "failed";
578
577
  refunded: "refunded";
578
+ voided: "voided";
579
579
  }>>>;
580
580
  currency: z.ZodOptional<z.ZodString>;
581
581
  amountCents: z.ZodOptional<z.ZodNumber>;
@@ -592,10 +592,10 @@ 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
- failed: "failed";
596
- voided: "voided";
597
595
  completed: "completed";
596
+ failed: "failed";
598
597
  refunded: "refunded";
598
+ voided: "voided";
599
599
  }>>;
600
600
  }, z.core.$strip>;
601
601
  export declare const insertBookingPaymentScheduleSchema: z.ZodObject<{
@@ -610,8 +610,8 @@ export declare const insertBookingPaymentScheduleSchema: z.ZodObject<{
610
610
  status: z.ZodDefault<z.ZodEnum<{
611
611
  paid: "paid";
612
612
  pending: "pending";
613
- expired: "expired";
614
613
  cancelled: "cancelled";
614
+ expired: "expired";
615
615
  due: "due";
616
616
  waived: "waived";
617
617
  }>>;
@@ -632,8 +632,8 @@ export declare const updateBookingPaymentScheduleSchema: z.ZodObject<{
632
632
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
633
633
  paid: "paid";
634
634
  pending: "pending";
635
- expired: "expired";
636
635
  cancelled: "cancelled";
636
+ expired: "expired";
637
637
  due: "due";
638
638
  waived: "waived";
639
639
  }>>>;
@@ -657,10 +657,10 @@ export declare const insertBookingGuaranteeSchema: z.ZodObject<{
657
657
  }>;
658
658
  status: z.ZodDefault<z.ZodEnum<{
659
659
  pending: "pending";
660
- active: "active";
661
660
  failed: "failed";
662
- expired: "expired";
663
661
  cancelled: "cancelled";
662
+ expired: "expired";
663
+ active: "active";
664
664
  released: "released";
665
665
  }>>;
666
666
  paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -689,10 +689,10 @@ export declare const updateBookingGuaranteeSchema: z.ZodObject<{
689
689
  }>>;
690
690
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
691
691
  pending: "pending";
692
- active: "active";
693
692
  failed: "failed";
694
- expired: "expired";
695
693
  cancelled: "cancelled";
694
+ expired: "expired";
695
+ active: "active";
696
696
  released: "released";
697
697
  }>>>;
698
698
  paymentInstrumentId: 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
- failed: "failed";
732
731
  completed: "completed";
732
+ failed: "failed";
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
- failed: "failed";
762
761
  completed: "completed";
762
+ failed: "failed";
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
- failed: "failed";
793
792
  completed: "completed";
793
+ failed: "failed";
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
- failed: "failed";
824
823
  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
- amountCents: "amountCents";
833
832
  status: "status";
833
+ amountCents: "amountCents";
834
834
  createdAt: "createdAt";
835
835
  paymentDate: "paymentDate";
836
836
  }>;
@@ -843,8 +843,8 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
843
843
  supplierId: z.ZodOptional<z.ZodString>;
844
844
  status: z.ZodOptional<z.ZodEnum<{
845
845
  pending: "pending";
846
- failed: "failed";
847
846
  completed: "completed";
847
+ failed: "failed";
848
848
  refunded: "refunded";
849
849
  }>>;
850
850
  paymentMethod: z.ZodOptional<z.ZodEnum<{
@@ -862,8 +862,8 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
862
862
  paymentDateFrom: z.ZodOptional<z.ZodString>;
863
863
  paymentDateTo: z.ZodOptional<z.ZodString>;
864
864
  sortBy: z.ZodDefault<z.ZodEnum<{
865
- amountCents: "amountCents";
866
865
  status: "status";
866
+ amountCents: "amountCents";
867
867
  createdAt: "createdAt";
868
868
  paymentDate: "paymentDate";
869
869
  }>>;
@@ -879,8 +879,8 @@ export declare const paymentKindSchema: z.ZodEnum<{
879
879
  customer: "customer";
880
880
  }>;
881
881
  export declare const paymentListSortFieldSchema: z.ZodEnum<{
882
- amountCents: "amountCents";
883
882
  status: "status";
883
+ amountCents: "amountCents";
884
884
  createdAt: "createdAt";
885
885
  paymentDate: "paymentDate";
886
886
  }>;
@@ -895,8 +895,8 @@ export declare const paymentListQuerySchema: z.ZodObject<{
895
895
  }>>;
896
896
  status: z.ZodOptional<z.ZodEnum<{
897
897
  pending: "pending";
898
- failed: "failed";
899
898
  completed: "completed";
899
+ failed: "failed";
900
900
  refunded: "refunded";
901
901
  }>>;
902
902
  paymentMethod: z.ZodOptional<z.ZodEnum<{
@@ -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
- amountCents: "amountCents";
922
921
  status: "status";
922
+ amountCents: "amountCents";
923
923
  createdAt: "createdAt";
924
924
  paymentDate: "paymentDate";
925
925
  }>>;
@@ -6,8 +6,8 @@ export declare const publicFinanceInvoiceTypeSchema: z.ZodEnum<{
6
6
  }>;
7
7
  export declare const publicFinanceDocumentAvailabilitySchema: z.ZodEnum<{
8
8
  pending: "pending";
9
- ready: "ready";
10
9
  failed: "failed";
10
+ ready: "ready";
11
11
  stale: "stale";
12
12
  missing: "missing";
13
13
  }>;
@@ -92,9 +92,9 @@ export declare const publicPaymentAccountSchema: z.ZodObject<{
92
92
  bank_account: "bank_account";
93
93
  }>;
94
94
  status: z.ZodEnum<{
95
+ expired: "expired";
95
96
  active: "active";
96
97
  inactive: "inactive";
97
- expired: "expired";
98
98
  revoked: "revoked";
99
99
  failed_verification: "failed_verification";
100
100
  }>;
@@ -116,8 +116,8 @@ export declare const publicBookingPaymentScheduleSchema: z.ZodObject<{
116
116
  status: z.ZodEnum<{
117
117
  paid: "paid";
118
118
  pending: "pending";
119
- expired: "expired";
120
119
  cancelled: "cancelled";
120
+ expired: "expired";
121
121
  due: "due";
122
122
  waived: "waived";
123
123
  }>;
@@ -155,9 +155,9 @@ export declare const publicBookingPaymentOptionsSchema: z.ZodObject<{
155
155
  bank_account: "bank_account";
156
156
  }>;
157
157
  status: z.ZodEnum<{
158
+ expired: "expired";
158
159
  active: "active";
159
160
  inactive: "inactive";
160
- expired: "expired";
161
161
  revoked: "revoked";
162
162
  failed_verification: "failed_verification";
163
163
  }>;
@@ -179,8 +179,8 @@ export declare const publicBookingPaymentOptionsSchema: z.ZodObject<{
179
179
  status: z.ZodEnum<{
180
180
  paid: "paid";
181
181
  pending: "pending";
182
- expired: "expired";
183
182
  cancelled: "cancelled";
183
+ expired: "expired";
184
184
  due: "due";
185
185
  waived: "waived";
186
186
  }>;
@@ -213,9 +213,9 @@ export declare const publicPaymentSessionSchema: z.ZodObject<{
213
213
  id: z.ZodString;
214
214
  targetType: z.ZodEnum<{
215
215
  other: "other";
216
- invoice: "invoice";
217
216
  booking: "booking";
218
217
  order: "order";
218
+ invoice: "invoice";
219
219
  booking_payment_schedule: "booking_payment_schedule";
220
220
  booking_guarantee: "booking_guarantee";
221
221
  flight_order: "flight_order";
@@ -229,11 +229,11 @@ export declare const publicPaymentSessionSchema: z.ZodObject<{
229
229
  paid: "paid";
230
230
  pending: "pending";
231
231
  failed: "failed";
232
- expired: "expired";
233
232
  requires_redirect: "requires_redirect";
234
233
  processing: "processing";
235
234
  authorized: "authorized";
236
235
  cancelled: "cancelled";
236
+ expired: "expired";
237
237
  }>;
238
238
  provider: z.ZodNullable<z.ZodString>;
239
239
  providerSessionId: z.ZodNullable<z.ZodString>;
@@ -290,8 +290,8 @@ export declare const publicFinanceBookingDocumentSchema: z.ZodObject<{
290
290
  renditionId: z.ZodNullable<z.ZodString>;
291
291
  documentStatus: z.ZodEnum<{
292
292
  pending: "pending";
293
- ready: "ready";
294
293
  failed: "failed";
294
+ ready: "ready";
295
295
  stale: "stale";
296
296
  missing: "missing";
297
297
  }>;
@@ -335,8 +335,8 @@ export declare const publicBookingFinanceDocumentsSchema: z.ZodObject<{
335
335
  renditionId: z.ZodNullable<z.ZodString>;
336
336
  documentStatus: z.ZodEnum<{
337
337
  pending: "pending";
338
- ready: "ready";
339
338
  failed: "failed";
339
+ ready: "ready";
340
340
  stale: "stale";
341
341
  missing: "missing";
342
342
  }>;
@@ -379,8 +379,8 @@ export declare const publicFinanceDocumentLookupSchema: z.ZodObject<{
379
379
  renditionId: z.ZodNullable<z.ZodString>;
380
380
  documentStatus: z.ZodEnum<{
381
381
  pending: "pending";
382
- ready: "ready";
383
382
  failed: "failed";
383
+ ready: "ready";
384
384
  stale: "stale";
385
385
  missing: "missing";
386
386
  }>;
@@ -408,8 +408,8 @@ export declare const publicFinanceBookingPaymentSchema: z.ZodObject<{
408
408
  }>;
409
409
  status: z.ZodEnum<{
410
410
  pending: "pending";
411
- failed: "failed";
412
411
  completed: "completed";
412
+ failed: "failed";
413
413
  refunded: "refunded";
414
414
  }>;
415
415
  paymentMethod: z.ZodEnum<{
@@ -444,8 +444,8 @@ export declare const publicBookingFinancePaymentsSchema: z.ZodObject<{
444
444
  }>;
445
445
  status: z.ZodEnum<{
446
446
  pending: "pending";
447
- failed: "failed";
448
447
  completed: "completed";
448
+ failed: "failed";
449
449
  refunded: "refunded";
450
450
  }>;
451
451
  paymentMethod: z.ZodEnum<{
@@ -471,8 +471,8 @@ export declare const publicBookingFinancePaymentsSchema: z.ZodObject<{
471
471
  export declare const publicVoucherValidationSchema: z.ZodObject<{
472
472
  valid: z.ZodBoolean;
473
473
  reason: z.ZodNullable<z.ZodEnum<{
474
- inactive: "inactive";
475
474
  expired: "expired";
475
+ inactive: "inactive";
476
476
  not_found: "not_found";
477
477
  not_started: "not_started";
478
478
  booking_mismatch: "booking_mismatch";
@@ -21,25 +21,25 @@ export declare const paymentMethodSchema: z.ZodEnum<{
21
21
  }>;
22
22
  export declare const paymentStatusSchema: z.ZodEnum<{
23
23
  pending: "pending";
24
- failed: "failed";
25
24
  completed: "completed";
25
+ failed: "failed";
26
26
  refunded: "refunded";
27
27
  }>;
28
28
  export declare const paymentSessionStatusSchema: z.ZodEnum<{
29
29
  paid: "paid";
30
30
  pending: "pending";
31
31
  failed: "failed";
32
- expired: "expired";
33
32
  requires_redirect: "requires_redirect";
34
33
  processing: "processing";
35
34
  authorized: "authorized";
36
35
  cancelled: "cancelled";
36
+ expired: "expired";
37
37
  }>;
38
38
  export declare const paymentSessionTargetTypeSchema: z.ZodEnum<{
39
39
  other: "other";
40
- invoice: "invoice";
41
40
  booking: "booking";
42
41
  order: "order";
42
+ invoice: "invoice";
43
43
  booking_payment_schedule: "booking_payment_schedule";
44
44
  booking_guarantee: "booking_guarantee";
45
45
  flight_order: "flight_order";
@@ -56,34 +56,34 @@ export declare const paymentInstrumentTypeSchema: z.ZodEnum<{
56
56
  }>;
57
57
  export declare const paymentInstrumentOwnerTypeSchema: z.ZodEnum<{
58
58
  other: "other";
59
+ client: "client";
60
+ supplier: "supplier";
59
61
  channel: "channel";
60
62
  agency: "agency";
61
63
  internal: "internal";
62
- supplier: "supplier";
63
- client: "client";
64
64
  }>;
65
65
  export declare const paymentInstrumentStatusSchema: z.ZodEnum<{
66
+ expired: "expired";
66
67
  active: "active";
67
68
  inactive: "inactive";
68
- expired: "expired";
69
69
  revoked: "revoked";
70
70
  failed_verification: "failed_verification";
71
71
  }>;
72
72
  export declare const paymentAuthorizationStatusSchema: z.ZodEnum<{
73
73
  pending: "pending";
74
74
  failed: "failed";
75
- expired: "expired";
76
75
  authorized: "authorized";
76
+ expired: "expired";
77
77
  partially_captured: "partially_captured";
78
78
  captured: "captured";
79
79
  voided: "voided";
80
80
  }>;
81
81
  export declare const paymentCaptureStatusSchema: z.ZodEnum<{
82
82
  pending: "pending";
83
- failed: "failed";
84
- voided: "voided";
85
83
  completed: "completed";
84
+ failed: "failed";
86
85
  refunded: "refunded";
86
+ voided: "voided";
87
87
  }>;
88
88
  export declare const captureModeSchema: z.ZodEnum<{
89
89
  automatic: "automatic";
@@ -104,8 +104,8 @@ export declare const paymentScheduleTypeSchema: z.ZodEnum<{
104
104
  export declare const paymentScheduleStatusSchema: z.ZodEnum<{
105
105
  paid: "paid";
106
106
  pending: "pending";
107
- expired: "expired";
108
107
  cancelled: "cancelled";
108
+ expired: "expired";
109
109
  due: "due";
110
110
  waived: "waived";
111
111
  }>;
@@ -121,10 +121,10 @@ export declare const guaranteeTypeSchema: z.ZodEnum<{
121
121
  }>;
122
122
  export declare const guaranteeStatusSchema: z.ZodEnum<{
123
123
  pending: "pending";
124
- active: "active";
125
124
  failed: "failed";
126
- expired: "expired";
127
125
  cancelled: "cancelled";
126
+ expired: "expired";
127
+ active: "active";
128
128
  released: "released";
129
129
  }>;
130
130
  export declare const taxScopeSchema: z.ZodEnum<{
@@ -134,12 +134,12 @@ export declare const taxScopeSchema: z.ZodEnum<{
134
134
  }>;
135
135
  export declare const commissionRecipientTypeSchema: z.ZodEnum<{
136
136
  other: "other";
137
+ supplier: "supplier";
137
138
  channel: "channel";
138
- affiliate: "affiliate";
139
139
  agency: "agency";
140
- agent: "agent";
141
140
  internal: "internal";
142
- supplier: "supplier";
141
+ affiliate: "affiliate";
142
+ agent: "agent";
143
143
  }>;
144
144
  export declare const commissionModelSchema: z.ZodEnum<{
145
145
  percentage: "percentage";
@@ -160,8 +160,8 @@ export declare const paginationSchema: z.ZodObject<{
160
160
  }, z.core.$strip>;
161
161
  export declare const voucherStatusSchema: z.ZodEnum<{
162
162
  void: "void";
163
- active: "active";
164
163
  expired: "expired";
164
+ active: "active";
165
165
  redeemed: "redeemed";
166
166
  }>;
167
167
  export declare const voucherSourceTypeSchema: z.ZodEnum<{
@@ -173,11 +173,11 @@ export declare const voucherSourceTypeSchema: z.ZodEnum<{
173
173
  }>;
174
174
  export declare const financeAggregatesQuerySchema: z.ZodObject<{
175
175
  range: z.ZodDefault<z.ZodEnum<{
176
- custom: "custom";
177
176
  this_month: "this_month";
178
177
  last_month: "last_month";
179
178
  year_to_date: "year_to_date";
180
179
  all_time: "all_time";
180
+ custom: "custom";
181
181
  }>>;
182
182
  from: z.ZodOptional<z.ZodString>;
183
183
  to: z.ZodOptional<z.ZodString>;
@@ -27,8 +27,8 @@ export declare const insertVoucherSchema: z.ZodObject<{
27
27
  export declare const updateVoucherSchema: z.ZodObject<{
28
28
  status: z.ZodOptional<z.ZodEnum<{
29
29
  void: "void";
30
- active: "active";
31
30
  expired: "expired";
31
+ active: "active";
32
32
  redeemed: "redeemed";
33
33
  }>>;
34
34
  seriesCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -47,8 +47,8 @@ export declare const redeemVoucherSchema: z.ZodObject<{
47
47
  export declare const voucherListQuerySchema: z.ZodObject<{
48
48
  status: z.ZodOptional<z.ZodEnum<{
49
49
  void: "void";
50
- active: "active";
51
50
  expired: "expired";
51
+ active: "active";
52
52
  redeemed: "redeemed";
53
53
  }>>;
54
54
  seriesCode: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,52 +1,47 @@
1
1
  {
2
2
  "name": "@voyantjs/finance-contracts",
3
- "version": "0.95.0",
3
+ "version": "0.103.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
7
- ".": "./src/index.ts",
8
- "./validation": "./src/validation.ts"
9
- },
10
- "scripts": {
11
- "typecheck": "tsc --noEmit",
12
- "lint": "biome check src/",
13
- "test": "vitest run --passWithNoTests",
14
- "build": "tsc -p tsconfig.json",
15
- "clean": "rm -rf dist tsconfig.tsbuildinfo",
16
- "prepack": "pnpm run build"
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./validation": {
13
+ "types": "./dist/validation.d.ts",
14
+ "import": "./dist/validation.js",
15
+ "default": "./dist/validation.js"
16
+ }
17
17
  },
18
18
  "files": [
19
19
  "dist"
20
20
  ],
21
21
  "publishConfig": {
22
- "access": "public",
23
- "exports": {
24
- ".": {
25
- "types": "./dist/index.d.ts",
26
- "import": "./dist/index.js",
27
- "default": "./dist/index.js"
28
- },
29
- "./validation": {
30
- "types": "./dist/validation.d.ts",
31
- "import": "./dist/validation.js",
32
- "default": "./dist/validation.js"
33
- }
34
- },
35
- "main": "./dist/index.js",
36
- "types": "./dist/index.d.ts"
22
+ "access": "public"
37
23
  },
38
24
  "dependencies": {
39
- "@voyantjs/schema-kit": "workspace:*",
40
- "zod": "^4.3.6"
25
+ "zod": "^4.3.6",
26
+ "@voyantjs/schema-kit": "0.103.0"
41
27
  },
42
28
  "devDependencies": {
43
- "@voyantjs/voyant-typescript-config": "workspace:*",
44
29
  "typescript": "^6.0.2",
45
- "vitest": "^4.1.2"
30
+ "vitest": "^4.1.2",
31
+ "@voyantjs/voyant-typescript-config": "0.1.0"
46
32
  },
47
33
  "repository": {
48
34
  "type": "git",
49
35
  "url": "https://github.com/voyantjs/voyant.git",
50
36
  "directory": "packages/finance-contracts"
51
- }
52
- }
37
+ },
38
+ "scripts": {
39
+ "typecheck": "tsc --noEmit",
40
+ "lint": "biome check src/",
41
+ "test": "vitest run --passWithNoTests",
42
+ "build": "tsc -p tsconfig.json",
43
+ "clean": "rm -rf dist tsconfig.tsbuildinfo"
44
+ },
45
+ "main": "./dist/index.js",
46
+ "types": "./dist/index.d.ts"
47
+ }