@voyant-travel/finance-react 0.119.5 → 0.120.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.
@@ -56,7 +56,7 @@ export declare function useCollectPayment(bookingId: string, options?: UseCollec
56
56
  bookingId: string;
57
57
  method: "bank_transfer" | "card";
58
58
  stage: "manual" | "initial" | "reminder";
59
- paymentSessionTarget: "schedule" | "invoice" | null;
59
+ paymentSessionTarget: "invoice" | "schedule" | null;
60
60
  documentType: "invoice" | "proforma" | null;
61
61
  willCreateDefaultPaymentPlan: boolean;
62
62
  selectedSchedule: {
@@ -151,13 +151,13 @@ export declare function useCollectPayment(bookingId: string, options?: UseCollec
151
151
  idempotencyKey?: string | null | undefined;
152
152
  } | null;
153
153
  id: string;
154
- targetType: "other" | "booking" | "invoice" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
154
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
155
155
  targetId: string | null;
156
156
  bookingId: string | null;
157
157
  invoiceId: string | null;
158
158
  bookingPaymentScheduleId: string | null;
159
159
  bookingGuaranteeId: string | null;
160
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "authorized" | "requires_redirect" | "processing";
160
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
161
161
  provider: string | null;
162
162
  providerSessionId: string | null;
163
163
  providerPaymentId: string | null;
@@ -165,7 +165,7 @@ export declare function useCollectPayment(bookingId: string, options?: UseCollec
165
165
  clientReference: string | null;
166
166
  currency: string;
167
167
  amountCents: number;
168
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
168
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
169
169
  payerEmail: string | null;
170
170
  payerName: string | null;
171
171
  redirectUrl: string | null;
@@ -12,7 +12,7 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
12
12
  bookingId: string;
13
13
  method: "bank_transfer" | "card";
14
14
  stage: "manual" | "initial" | "reminder";
15
- paymentSessionTarget: "schedule" | "invoice" | null;
15
+ paymentSessionTarget: "invoice" | "schedule" | null;
16
16
  documentType: "invoice" | "proforma" | null;
17
17
  willCreateDefaultPaymentPlan: boolean;
18
18
  selectedSchedule: {
@@ -107,13 +107,13 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
107
107
  idempotencyKey?: string | null | undefined;
108
108
  } | null;
109
109
  id: string;
110
- targetType: "other" | "booking" | "invoice" | "order" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
110
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
111
111
  targetId: string | null;
112
112
  bookingId: string | null;
113
113
  invoiceId: string | null;
114
114
  bookingPaymentScheduleId: string | null;
115
115
  bookingGuaranteeId: string | null;
116
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "authorized" | "requires_redirect" | "processing";
116
+ status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
117
117
  provider: string | null;
118
118
  providerSessionId: string | null;
119
119
  providerPaymentId: string | null;
@@ -121,7 +121,7 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
121
121
  clientReference: string | null;
122
122
  currency: string;
123
123
  amountCents: number;
124
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
124
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
125
125
  payerEmail: string | null;
126
126
  payerName: string | null;
127
127
  redirectUrl: string | null;
@@ -186,15 +186,15 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
186
186
  scheduleId?: string | undefined;
187
187
  invoiceId?: string | undefined;
188
188
  amountCents?: number | undefined;
189
- paymentSessionTarget?: "schedule" | "invoice" | undefined;
189
+ paymentSessionTarget?: "invoice" | "schedule" | undefined;
190
190
  paymentPlan?: {
191
- depositMode?: "none" | "percentage" | "fixed_amount" | undefined;
191
+ depositMode?: "percentage" | "none" | "fixed_amount" | undefined;
192
192
  depositValue?: number | undefined;
193
193
  depositDueDate?: string | null | undefined;
194
194
  balanceDueDaysBeforeStart?: number | undefined;
195
195
  clearExistingPending?: boolean | undefined;
196
196
  createGuarantee?: boolean | undefined;
197
- guaranteeType?: "other" | "deposit" | "voucher" | "bank_transfer" | "credit_card" | "preauth" | "card_on_file" | "agency_letter" | undefined;
197
+ guaranteeType?: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter" | undefined;
198
198
  notes?: string | null | undefined;
199
199
  } | undefined;
200
200
  paymentSession?: {
@@ -237,7 +237,7 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
237
237
  idempotencyKey?: string | null | undefined;
238
238
  } | undefined;
239
239
  provider?: string | null | undefined;
240
- paymentMethod?: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null | undefined;
240
+ paymentMethod?: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null | undefined;
241
241
  payerPersonId?: string | null | undefined;
242
242
  payerOrganizationId?: string | null | undefined;
243
243
  payerEmail?: string | null | undefined;
@@ -8,7 +8,7 @@ export declare function usePreviewCheckoutCollection(bookingId: string): import(
8
8
  bookingId: string;
9
9
  method: "bank_transfer" | "card";
10
10
  stage: "manual" | "initial" | "reminder";
11
- paymentSessionTarget: "schedule" | "invoice" | null;
11
+ paymentSessionTarget: "invoice" | "schedule" | null;
12
12
  documentType: "invoice" | "proforma" | null;
13
13
  willCreateDefaultPaymentPlan: boolean;
14
14
  selectedSchedule: {
@@ -50,15 +50,15 @@ export declare function usePreviewCheckoutCollection(bookingId: string): import(
50
50
  scheduleId?: string | undefined;
51
51
  invoiceId?: string | undefined;
52
52
  amountCents?: number | undefined;
53
- paymentSessionTarget?: "schedule" | "invoice" | undefined;
53
+ paymentSessionTarget?: "invoice" | "schedule" | undefined;
54
54
  paymentPlan?: {
55
- depositMode?: "none" | "percentage" | "fixed_amount" | undefined;
55
+ depositMode?: "percentage" | "none" | "fixed_amount" | undefined;
56
56
  depositValue?: number | undefined;
57
57
  depositDueDate?: string | null | undefined;
58
58
  balanceDueDaysBeforeStart?: number | undefined;
59
59
  clearExistingPending?: boolean | undefined;
60
60
  createGuarantee?: boolean | undefined;
61
- guaranteeType?: "other" | "deposit" | "voucher" | "bank_transfer" | "credit_card" | "preauth" | "card_on_file" | "agency_letter" | undefined;
61
+ guaranteeType?: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter" | undefined;
62
62
  notes?: string | null | undefined;
63
63
  } | undefined;
64
64
  } | undefined, unknown>;
@@ -1,5 +1,5 @@
1
1
  import { type PaymentMethod, type PaymentStatus } from "../../index.js";
2
- export declare const PAYMENT_METHODS: ("other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill")[];
2
+ export declare const PAYMENT_METHODS: ("bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other")[];
3
3
  export declare const PAYMENT_STATUSES: ("pending" | "completed" | "failed" | "refunded")[];
4
4
  export interface EditingPaymentSnapshot {
5
5
  id: string;
@@ -10,7 +10,7 @@ export type TargetType = (typeof TARGET_TYPES)[number];
10
10
  * Departure search is product-centric (search a product → pick its dated slot),
11
11
  * wired by the host. Travelers have no global search, so they stay raw-id.
12
12
  */
13
- export declare const SEARCHABLE_TARGETS: Set<"traveler" | "booking" | "product" | "departure" | "unattributed">;
13
+ export declare const SEARCHABLE_TARGETS: Set<"booking" | "departure" | "product" | "traveler" | "unattributed">;
14
14
  export declare const LINE_CATEGORY_NONE = "__none__";
15
15
  export declare const PAYMENT_METHODS: readonly ["bank_transfer", "credit_card", "cash", "cheque", "other"];
16
16
  export declare function toCents(major: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/finance-react",
3
- "version": "0.119.5",
3
+ "version": "0.120.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -93,13 +93,13 @@
93
93
  "recharts": "^3.0.0",
94
94
  "sonner": "^2.0.7",
95
95
  "zod": "^4.0.0",
96
- "@voyant-travel/admin": "^0.111.0",
97
- "@voyant-travel/inventory-react": "^0.1.0",
98
- "@voyant-travel/ui": "^0.106.1",
99
- "@voyant-travel/distribution-react": "^0.109.8",
100
- "@voyant-travel/finance": "^0.119.5",
101
- "@voyant-travel/operations-react": "^0.0.0",
102
- "@voyant-travel/bookings-react": "^0.119.3"
96
+ "@voyant-travel/admin": "^0.111.2",
97
+ "@voyant-travel/bookings-react": "^0.120.1",
98
+ "@voyant-travel/finance": "^0.120.1",
99
+ "@voyant-travel/inventory-react": "^0.2.1",
100
+ "@voyant-travel/distribution-react": "^0.110.4",
101
+ "@voyant-travel/ui": "^0.106.2",
102
+ "@voyant-travel/operations-react": "^0.1.1"
103
103
  },
104
104
  "peerDependenciesMeta": {
105
105
  "@tanstack/react-table": {
@@ -151,16 +151,16 @@
151
151
  "typescript": "^6.0.2",
152
152
  "vitest": "^4.1.2",
153
153
  "zod": "^4.3.6",
154
- "@voyant-travel/admin": "^0.111.0",
155
- "@voyant-travel/finance": "^0.119.5",
156
- "@voyant-travel/bookings-react": "^0.119.3",
154
+ "@voyant-travel/admin": "^0.111.2",
155
+ "@voyant-travel/bookings-react": "^0.120.1",
156
+ "@voyant-travel/finance": "^0.120.1",
157
157
  "@voyant-travel/i18n": "^0.106.1",
158
- "@voyant-travel/distribution-react": "^0.109.8",
158
+ "@voyant-travel/inventory-react": "^0.2.1",
159
159
  "@voyant-travel/react": "^0.104.1",
160
- "@voyant-travel/inventory-react": "^0.1.0",
161
- "@voyant-travel/ui": "^0.106.1",
160
+ "@voyant-travel/distribution-react": "^0.110.4",
161
+ "@voyant-travel/ui": "^0.106.2",
162
162
  "@voyant-travel/voyant-typescript-config": "^0.1.0",
163
- "@voyant-travel/operations-react": "^0.0.0"
163
+ "@voyant-travel/operations-react": "^0.1.1"
164
164
  },
165
165
  "files": [
166
166
  "dist",