@voyantjs/finance-react 0.8.0 → 0.10.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.
@@ -8,7 +8,7 @@ export declare function useBookingGuarantees(bookingId: string | null | undefine
8
8
  bookingPaymentScheduleId: string | null;
9
9
  bookingItemId: string | null;
10
10
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
11
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
11
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
12
12
  currency: string | null;
13
13
  amountCents: number | null;
14
14
  provider: string | null;
@@ -42,7 +42,7 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
42
42
  bookingPaymentScheduleId: string | null;
43
43
  bookingItemId: string | null;
44
44
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
45
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
45
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
46
46
  currency: string | null;
47
47
  amountCents: number | null;
48
48
  provider: string | null;
@@ -60,7 +60,7 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
60
60
  bookingPaymentScheduleId: string | null;
61
61
  bookingItemId: string | null;
62
62
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
63
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
63
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
64
64
  currency: string | null;
65
65
  amountCents: number | null;
66
66
  provider: string | null;
@@ -10,7 +10,7 @@ export declare function usePublicBookingPaymentOptions(bookingId: string | null
10
10
  label: string;
11
11
  provider: string | null;
12
12
  instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
13
- status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
13
+ status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
14
14
  brand: string | null;
15
15
  last4: string | null;
16
16
  expiryMonth: number | null;
@@ -33,7 +33,7 @@ export declare function useVoucherMutation(): {
33
33
  issue: import("@tanstack/react-query").UseMutationResult<{
34
34
  id: string;
35
35
  code: string;
36
- status: "void" | "expired" | "active" | "redeemed";
36
+ status: "void" | "active" | "expired" | "redeemed";
37
37
  currency: string;
38
38
  initialAmountCents: number;
39
39
  remainingAmountCents: number;
@@ -51,7 +51,7 @@ export declare function useVoucherMutation(): {
51
51
  update: import("@tanstack/react-query").UseMutationResult<{
52
52
  id: string;
53
53
  code: string;
54
- status: "void" | "expired" | "active" | "redeemed";
54
+ status: "void" | "active" | "expired" | "redeemed";
55
55
  currency: string;
56
56
  initialAmountCents: number;
57
57
  remainingAmountCents: number;
@@ -73,7 +73,7 @@ export declare function useVoucherMutation(): {
73
73
  voucher: {
74
74
  id: string;
75
75
  code: string;
76
- status: "void" | "expired" | "active" | "redeemed";
76
+ status: "void" | "active" | "expired" | "redeemed";
77
77
  currency: string;
78
78
  initialAmountCents: number;
79
79
  remainingAmountCents: number;
@@ -10,7 +10,7 @@ export declare function useVoucher(id: string | null | undefined, options?: UseV
10
10
  data: {
11
11
  id: string;
12
12
  code: string;
13
- status: "void" | "expired" | "active" | "redeemed";
13
+ status: "void" | "active" | "expired" | "redeemed";
14
14
  currency: string;
15
15
  initialAmountCents: number;
16
16
  remainingAmountCents: number;
@@ -12,7 +12,7 @@ export declare function useVouchers(options?: UseVouchersOptions): import("@tans
12
12
  data: {
13
13
  id: string;
14
14
  code: string;
15
- status: "void" | "expired" | "active" | "redeemed";
15
+ status: "void" | "active" | "expired" | "redeemed";
16
16
  currency: string;
17
17
  initialAmountCents: number;
18
18
  remainingAmountCents: number;
@@ -80,7 +80,7 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
80
80
  label: string;
81
81
  provider: string | null;
82
82
  instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
83
- status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
83
+ status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
84
84
  brand: string | null;
85
85
  last4: string | null;
86
86
  expiryMonth: number | null;
@@ -86,7 +86,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
86
86
  bookingPaymentScheduleId: string | null;
87
87
  bookingItemId: string | null;
88
88
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
89
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
89
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
90
90
  currency: string | null;
91
91
  amountCents: number | null;
92
92
  provider: string | null;
@@ -105,7 +105,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
105
105
  bookingPaymentScheduleId: string | null;
106
106
  bookingItemId: string | null;
107
107
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
108
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
108
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
109
109
  currency: string | null;
110
110
  amountCents: number | null;
111
111
  provider: string | null;
@@ -125,7 +125,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
125
125
  bookingPaymentScheduleId: string | null;
126
126
  bookingItemId: string | null;
127
127
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
128
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
128
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
129
129
  currency: string | null;
130
130
  amountCents: number | null;
131
131
  provider: string | null;
@@ -147,7 +147,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
147
147
  bookingPaymentScheduleId: string | null;
148
148
  bookingItemId: string | null;
149
149
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
150
- status: "pending" | "expired" | "cancelled" | "released" | "failed" | "active";
150
+ status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
151
151
  currency: string | null;
152
152
  amountCents: number | null;
153
153
  provider: string | null;
@@ -647,7 +647,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
647
647
  label: string;
648
648
  provider: string | null;
649
649
  instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
650
- status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
650
+ status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
651
651
  brand: string | null;
652
652
  last4: string | null;
653
653
  expiryMonth: number | null;
@@ -688,7 +688,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
688
688
  label: string;
689
689
  provider: string | null;
690
690
  instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
691
- status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
691
+ status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
692
692
  brand: string | null;
693
693
  last4: string | null;
694
694
  expiryMonth: number | null;
@@ -730,7 +730,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
730
730
  label: string;
731
731
  provider: string | null;
732
732
  instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
733
- status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
733
+ status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
734
734
  brand: string | null;
735
735
  last4: string | null;
736
736
  expiryMonth: number | null;
@@ -774,7 +774,7 @@ export declare function getPublicBookingPaymentOptionsQueryOptions(client: Fetch
774
774
  label: string;
775
775
  provider: string | null;
776
776
  instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
777
- status: "expired" | "revoked" | "active" | "inactive" | "failed_verification";
777
+ status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
778
778
  brand: string | null;
779
779
  last4: string | null;
780
780
  expiryMonth: number | null;
@@ -1211,7 +1211,7 @@ export declare function getVouchersQueryOptions(client: FetchWithValidationOptio
1211
1211
  data: {
1212
1212
  id: string;
1213
1213
  code: string;
1214
- status: "void" | "expired" | "active" | "redeemed";
1214
+ status: "void" | "active" | "expired" | "redeemed";
1215
1215
  currency: string;
1216
1216
  initialAmountCents: number;
1217
1217
  remainingAmountCents: number;
@@ -1233,7 +1233,7 @@ export declare function getVouchersQueryOptions(client: FetchWithValidationOptio
1233
1233
  data: {
1234
1234
  id: string;
1235
1235
  code: string;
1236
- status: "void" | "expired" | "active" | "redeemed";
1236
+ status: "void" | "active" | "expired" | "redeemed";
1237
1237
  currency: string;
1238
1238
  initialAmountCents: number;
1239
1239
  remainingAmountCents: number;
@@ -1256,7 +1256,7 @@ export declare function getVouchersQueryOptions(client: FetchWithValidationOptio
1256
1256
  data: {
1257
1257
  id: string;
1258
1258
  code: string;
1259
- status: "void" | "expired" | "active" | "redeemed";
1259
+ status: "void" | "active" | "expired" | "redeemed";
1260
1260
  currency: string;
1261
1261
  initialAmountCents: number;
1262
1262
  remainingAmountCents: number;
@@ -1281,7 +1281,7 @@ export declare function getVouchersQueryOptions(client: FetchWithValidationOptio
1281
1281
  data: {
1282
1282
  id: string;
1283
1283
  code: string;
1284
- status: "void" | "expired" | "active" | "redeemed";
1284
+ status: "void" | "active" | "expired" | "redeemed";
1285
1285
  currency: string;
1286
1286
  initialAmountCents: number;
1287
1287
  remainingAmountCents: number;
@@ -1307,7 +1307,7 @@ export declare function getVoucherQueryOptions(client: FetchWithValidationOption
1307
1307
  data: {
1308
1308
  id: string;
1309
1309
  code: string;
1310
- status: "void" | "expired" | "active" | "redeemed";
1310
+ status: "void" | "active" | "expired" | "redeemed";
1311
1311
  currency: string;
1312
1312
  initialAmountCents: number;
1313
1313
  remainingAmountCents: number;
@@ -1335,7 +1335,7 @@ export declare function getVoucherQueryOptions(client: FetchWithValidationOption
1335
1335
  data: {
1336
1336
  id: string;
1337
1337
  code: string;
1338
- status: "void" | "expired" | "active" | "redeemed";
1338
+ status: "void" | "active" | "expired" | "redeemed";
1339
1339
  currency: string;
1340
1340
  initialAmountCents: number;
1341
1341
  remainingAmountCents: number;
@@ -1364,7 +1364,7 @@ export declare function getVoucherQueryOptions(client: FetchWithValidationOption
1364
1364
  data: {
1365
1365
  id: string;
1366
1366
  code: string;
1367
- status: "void" | "expired" | "active" | "redeemed";
1367
+ status: "void" | "active" | "expired" | "redeemed";
1368
1368
  currency: string;
1369
1369
  initialAmountCents: number;
1370
1370
  remainingAmountCents: number;
@@ -1395,7 +1395,7 @@ export declare function getVoucherQueryOptions(client: FetchWithValidationOption
1395
1395
  data: {
1396
1396
  id: string;
1397
1397
  code: string;
1398
- status: "void" | "expired" | "active" | "redeemed";
1398
+ status: "void" | "active" | "expired" | "redeemed";
1399
1399
  currency: string;
1400
1400
  initialAmountCents: number;
1401
1401
  remainingAmountCents: number;
package/dist/schemas.d.ts CHANGED
@@ -216,11 +216,11 @@ export declare const guaranteeTypeSchema: z.ZodEnum<{
216
216
  }>;
217
217
  export declare const guaranteeStatusSchema: z.ZodEnum<{
218
218
  pending: "pending";
219
+ active: "active";
219
220
  expired: "expired";
220
221
  cancelled: "cancelled";
221
222
  released: "released";
222
223
  failed: "failed";
223
- active: "active";
224
224
  }>;
225
225
  export declare const bookingGuaranteeRecordSchema: z.ZodObject<{
226
226
  id: z.ZodString;
@@ -239,11 +239,11 @@ export declare const bookingGuaranteeRecordSchema: z.ZodObject<{
239
239
  }>;
240
240
  status: z.ZodEnum<{
241
241
  pending: "pending";
242
+ active: "active";
242
243
  expired: "expired";
243
244
  cancelled: "cancelled";
244
245
  released: "released";
245
246
  failed: "failed";
246
- active: "active";
247
247
  }>;
248
248
  currency: z.ZodNullable<z.ZodString>;
249
249
  amountCents: z.ZodNullable<z.ZodNumber>;
@@ -275,11 +275,11 @@ export declare const bookingGuaranteesResponse: z.ZodObject<{
275
275
  }>;
276
276
  status: z.ZodEnum<{
277
277
  pending: "pending";
278
+ active: "active";
278
279
  expired: "expired";
279
280
  cancelled: "cancelled";
280
281
  released: "released";
281
282
  failed: "failed";
282
- active: "active";
283
283
  }>;
284
284
  currency: z.ZodNullable<z.ZodString>;
285
285
  amountCents: z.ZodNullable<z.ZodNumber>;
@@ -452,9 +452,9 @@ export declare const publicBookingPaymentOptionsResponse: z.ZodObject<{
452
452
  bank_account: "bank_account";
453
453
  }>;
454
454
  status: z.ZodEnum<{
455
+ active: "active";
455
456
  expired: "expired";
456
457
  revoked: "revoked";
457
- active: "active";
458
458
  inactive: "inactive";
459
459
  failed_verification: "failed_verification";
460
460
  }>;
@@ -728,8 +728,8 @@ export type PublicValidateVoucherInput = z.input<typeof publicValidateVoucherSch
728
728
  export type PublicVoucherValidationRecord = z.infer<typeof publicVoucherValidationSchema>;
729
729
  export declare const voucherStatusSchema: z.ZodEnum<{
730
730
  void: "void";
731
- expired: "expired";
732
731
  active: "active";
732
+ expired: "expired";
733
733
  redeemed: "redeemed";
734
734
  }>;
735
735
  export declare const voucherSourceTypeSchema: z.ZodEnum<{
@@ -744,8 +744,8 @@ export declare const voucherRecordSchema: z.ZodObject<{
744
744
  code: z.ZodString;
745
745
  status: z.ZodEnum<{
746
746
  void: "void";
747
- expired: "expired";
748
747
  active: "active";
748
+ expired: "expired";
749
749
  redeemed: "redeemed";
750
750
  }>;
751
751
  currency: z.ZodString;
@@ -784,8 +784,8 @@ export declare const voucherDetailSchema: z.ZodObject<{
784
784
  code: z.ZodString;
785
785
  status: z.ZodEnum<{
786
786
  void: "void";
787
- expired: "expired";
788
787
  active: "active";
788
+ expired: "expired";
789
789
  redeemed: "redeemed";
790
790
  }>;
791
791
  currency: z.ZodString;
@@ -825,8 +825,8 @@ export declare const voucherRedemptionResultSchema: z.ZodObject<{
825
825
  code: z.ZodString;
826
826
  status: z.ZodEnum<{
827
827
  void: "void";
828
- expired: "expired";
829
828
  active: "active";
829
+ expired: "expired";
830
830
  redeemed: "redeemed";
831
831
  }>;
832
832
  currency: z.ZodString;
@@ -866,8 +866,8 @@ export declare const voucherListResponse: z.ZodObject<{
866
866
  code: z.ZodString;
867
867
  status: z.ZodEnum<{
868
868
  void: "void";
869
- expired: "expired";
870
869
  active: "active";
870
+ expired: "expired";
871
871
  redeemed: "redeemed";
872
872
  }>;
873
873
  currency: z.ZodString;
@@ -900,8 +900,8 @@ export declare const voucherDetailResponse: z.ZodObject<{
900
900
  code: z.ZodString;
901
901
  status: z.ZodEnum<{
902
902
  void: "void";
903
- expired: "expired";
904
903
  active: "active";
904
+ expired: "expired";
905
905
  redeemed: "redeemed";
906
906
  }>;
907
907
  currency: z.ZodString;
@@ -940,8 +940,8 @@ export declare const voucherSingleResponse: z.ZodObject<{
940
940
  code: z.ZodString;
941
941
  status: z.ZodEnum<{
942
942
  void: "void";
943
- expired: "expired";
944
943
  active: "active";
944
+ expired: "expired";
945
945
  redeemed: "redeemed";
946
946
  }>;
947
947
  currency: z.ZodString;
@@ -972,8 +972,8 @@ export declare const voucherRedemptionResponse: z.ZodObject<{
972
972
  code: z.ZodString;
973
973
  status: z.ZodEnum<{
974
974
  void: "void";
975
- expired: "expired";
976
975
  active: "active";
976
+ expired: "expired";
977
977
  redeemed: "redeemed";
978
978
  }>;
979
979
  currency: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/finance-react",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "react": "^19.0.0",
36
36
  "react-dom": "^19.0.0",
37
37
  "zod": "^4.0.0",
38
- "@voyantjs/finance": "0.8.0"
38
+ "@voyantjs/finance": "0.10.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tanstack/react-query": "^5.96.2",
@@ -46,12 +46,12 @@
46
46
  "typescript": "^6.0.2",
47
47
  "vitest": "^4.1.2",
48
48
  "zod": "^4.3.6",
49
- "@voyantjs/finance": "0.8.0",
50
- "@voyantjs/react": "0.8.0",
49
+ "@voyantjs/finance": "0.10.0",
50
+ "@voyantjs/react": "0.10.0",
51
51
  "@voyantjs/voyant-typescript-config": "0.1.0"
52
52
  },
53
53
  "dependencies": {
54
- "@voyantjs/react": "0.8.0"
54
+ "@voyantjs/react": "0.10.0"
55
55
  },
56
56
  "files": [
57
57
  "dist"