@voyantjs/checkout-react 0.28.3 → 0.30.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.
@@ -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: "invoice" | "schedule" | null;
59
+ paymentSessionTarget: "schedule" | "invoice" | null;
60
60
  documentType: "invoice" | "proforma" | null;
61
61
  willCreateDefaultPaymentPlan: boolean;
62
62
  selectedSchedule: {
@@ -118,7 +118,7 @@ export declare function useCollectPayment(bookingId: string, options?: UseCollec
118
118
  invoiceId: string | null;
119
119
  bookingPaymentScheduleId: string | null;
120
120
  bookingGuaranteeId: string | null;
121
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
121
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
122
122
  provider: string | null;
123
123
  providerSessionId: string | null;
124
124
  providerPaymentId: 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: "invoice" | "schedule" | null;
15
+ paymentSessionTarget: "schedule" | "invoice" | null;
16
16
  documentType: "invoice" | "proforma" | null;
17
17
  willCreateDefaultPaymentPlan: boolean;
18
18
  selectedSchedule: {
@@ -74,7 +74,7 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
74
74
  invoiceId: string | null;
75
75
  bookingPaymentScheduleId: string | null;
76
76
  bookingGuaranteeId: string | null;
77
- status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
77
+ status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
78
78
  provider: string | null;
79
79
  providerSessionId: string | null;
80
80
  providerPaymentId: string | null;
@@ -147,7 +147,7 @@ export declare function useInitiateCheckoutCollection(bookingId: string): import
147
147
  scheduleId?: string | undefined;
148
148
  invoiceId?: string | undefined;
149
149
  amountCents?: number | undefined;
150
- paymentSessionTarget?: "invoice" | "schedule" | undefined;
150
+ paymentSessionTarget?: "schedule" | "invoice" | undefined;
151
151
  paymentPlan?: {
152
152
  depositMode?: "percentage" | "none" | "fixed_amount" | undefined;
153
153
  depositValue?: number | 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: "invoice" | "schedule" | null;
11
+ paymentSessionTarget: "schedule" | "invoice" | null;
12
12
  documentType: "invoice" | "proforma" | null;
13
13
  willCreateDefaultPaymentPlan: boolean;
14
14
  selectedSchedule: {
@@ -50,7 +50,7 @@ export declare function usePreviewCheckoutCollection(bookingId: string): import(
50
50
  scheduleId?: string | undefined;
51
51
  invoiceId?: string | undefined;
52
52
  amountCents?: number | undefined;
53
- paymentSessionTarget?: "invoice" | "schedule" | undefined;
53
+ paymentSessionTarget?: "schedule" | "invoice" | undefined;
54
54
  paymentPlan?: {
55
55
  depositMode?: "percentage" | "none" | "fixed_amount" | undefined;
56
56
  depositValue?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/checkout-react",
3
- "version": "0.28.3",
3
+ "version": "0.30.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,8 +30,8 @@
30
30
  "@tanstack/react-query": "^5.0.0",
31
31
  "react": "^19.0.0",
32
32
  "react-dom": "^19.0.0",
33
- "@voyantjs/checkout": "0.28.3",
34
- "@voyantjs/finance": "0.28.3"
33
+ "@voyantjs/checkout": "0.30.0",
34
+ "@voyantjs/finance": "0.30.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@tanstack/react-query": "^5.96.2",
@@ -41,15 +41,15 @@
41
41
  "react-dom": "^19.2.4",
42
42
  "typescript": "^6.0.2",
43
43
  "vitest": "^4.1.2",
44
- "@voyantjs/checkout": "0.28.3",
45
- "@voyantjs/finance": "0.28.3",
46
- "@voyantjs/finance-react": "0.28.3",
47
- "@voyantjs/react": "0.28.3",
44
+ "@voyantjs/checkout": "0.30.0",
45
+ "@voyantjs/finance": "0.30.0",
46
+ "@voyantjs/finance-react": "0.30.0",
47
+ "@voyantjs/react": "0.30.0",
48
48
  "@voyantjs/voyant-typescript-config": "0.1.0"
49
49
  },
50
50
  "dependencies": {
51
- "@voyantjs/finance-react": "0.28.3",
52
- "@voyantjs/react": "0.28.3"
51
+ "@voyantjs/finance-react": "0.30.0",
52
+ "@voyantjs/react": "0.30.0"
53
53
  },
54
54
  "files": [
55
55
  "dist"