@voyantjs/finance-react 0.52.2 → 0.52.4

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.
Files changed (37) hide show
  1. package/dist/hooks/index.d.ts +1 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +1 -0
  4. package/dist/hooks/use-admin-booking-payments.d.ts +1 -1
  5. package/dist/hooks/use-booking-guarantees.d.ts +6 -6
  6. package/dist/hooks/use-booking-payment-schedules.d.ts +3 -3
  7. package/dist/hooks/use-finance-action-ledger.d.ts +94 -0
  8. package/dist/hooks/use-finance-action-ledger.d.ts.map +1 -0
  9. package/dist/hooks/use-finance-action-ledger.js +20 -0
  10. package/dist/hooks/use-public-booking-documents.d.ts +2 -2
  11. package/dist/hooks/use-public-booking-payment-options.d.ts +3 -3
  12. package/dist/hooks/use-public-booking-payments.d.ts +1 -1
  13. package/dist/hooks/use-public-finance-document-by-reference.d.ts +2 -2
  14. package/dist/hooks/use-public-payment-session-mutation.d.ts +2 -2
  15. package/dist/hooks/use-public-payment-session.d.ts +2 -2
  16. package/dist/hooks/use-voucher-mutation.d.ts +3 -3
  17. package/dist/hooks/use-voucher.d.ts +1 -1
  18. package/dist/hooks/use-vouchers.d.ts +1 -1
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2 -2
  22. package/dist/operations.d.ts +112 -15
  23. package/dist/operations.d.ts.map +1 -1
  24. package/dist/operations.js +14 -1
  25. package/dist/query-keys.d.ts +11 -0
  26. package/dist/query-keys.d.ts.map +1 -1
  27. package/dist/query-keys.js +2 -0
  28. package/dist/query-options-action-ledger.d.ts +382 -0
  29. package/dist/query-options-action-ledger.d.ts.map +1 -0
  30. package/dist/query-options-action-ledger.js +36 -0
  31. package/dist/query-options.d.ts +65 -64
  32. package/dist/query-options.d.ts.map +1 -1
  33. package/dist/query-options.js +1 -0
  34. package/dist/schemas.d.ts +245 -41
  35. package/dist/schemas.d.ts.map +1 -1
  36. package/dist/schemas.js +83 -1
  37. package/package.json +5 -5
@@ -2,6 +2,7 @@ export * from "./use-admin-booking-payments.js";
2
2
  export * from "./use-all-payments.js";
3
3
  export * from "./use-booking-guarantees.js";
4
4
  export * from "./use-booking-payment-schedules.js";
5
+ export * from "./use-finance-action-ledger.js";
5
6
  export * from "./use-invoice.js";
6
7
  export * from "./use-invoice-attachment-mutation.js";
7
8
  export * from "./use-invoice-attachments.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA;AAC/C,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oCAAoC,CAAA;AAClD,cAAc,kBAAkB,CAAA;AAChC,cAAc,sCAAsC,CAAA;AACpD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mCAAmC,CAAA;AACjD,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mCAAmC,CAAA;AACjD,cAAc,yCAAyC,CAAA;AACvD,cAAc,kCAAkC,CAAA;AAChD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0CAA0C,CAAA;AACxD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA;AAC/C,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oCAAoC,CAAA;AAClD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,kBAAkB,CAAA;AAChC,cAAc,sCAAsC,CAAA;AACpD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mCAAmC,CAAA;AACjD,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mCAAmC,CAAA;AACjD,cAAc,yCAAyC,CAAA;AACvD,cAAc,kCAAkC,CAAA;AAChD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0CAA0C,CAAA;AACxD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
@@ -2,6 +2,7 @@ export * from "./use-admin-booking-payments.js";
2
2
  export * from "./use-all-payments.js";
3
3
  export * from "./use-booking-guarantees.js";
4
4
  export * from "./use-booking-payment-schedules.js";
5
+ export * from "./use-finance-action-ledger.js";
5
6
  export * from "./use-invoice.js";
6
7
  export * from "./use-invoice-attachment-mutation.js";
7
8
  export * from "./use-invoice-attachments.js";
@@ -16,7 +16,7 @@ export declare function useAdminBookingPayments(bookingId: string | null | undef
16
16
  invoiceNumber: string;
17
17
  invoiceType: "invoice" | "proforma" | "credit_note";
18
18
  status: "pending" | "completed" | "failed" | "refunded";
19
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
19
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
20
20
  amountCents: number;
21
21
  currency: string;
22
22
  paymentDate: string;
@@ -7,8 +7,8 @@ export declare function useBookingGuarantees(bookingId: string | null | undefine
7
7
  bookingId: string;
8
8
  bookingPaymentScheduleId: string | null;
9
9
  bookingItemId: string | null;
10
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
11
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
10
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
11
+ status: "pending" | "failed" | "cancelled" | "expired" | "active" | "released";
12
12
  currency: string | null;
13
13
  amountCents: number | null;
14
14
  provider: string | null;
@@ -41,8 +41,8 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
41
41
  bookingId: string;
42
42
  bookingPaymentScheduleId: string | null;
43
43
  bookingItemId: string | null;
44
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
45
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
44
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
45
+ status: "pending" | "failed" | "cancelled" | "expired" | "active" | "released";
46
46
  currency: string | null;
47
47
  amountCents: number | null;
48
48
  provider: string | null;
@@ -59,8 +59,8 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
59
59
  bookingId: string;
60
60
  bookingPaymentScheduleId: string | null;
61
61
  bookingItemId: string | null;
62
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
63
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
62
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
63
+ status: "pending" | "failed" | "cancelled" | "expired" | "active" | "released";
64
64
  currency: string | null;
65
65
  amountCents: number | null;
66
66
  provider: string | null;
@@ -7,7 +7,7 @@ export declare function useBookingPaymentSchedules(bookingId: string | null | un
7
7
  bookingId: string;
8
8
  bookingItemId: string | null;
9
9
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
10
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
10
+ status: "pending" | "paid" | "cancelled" | "expired" | "due" | "waived";
11
11
  dueDate: string;
12
12
  currency: string;
13
13
  amountCents: number;
@@ -32,7 +32,7 @@ export declare function useBookingPaymentScheduleMutation(bookingId: string): {
32
32
  bookingId: string;
33
33
  bookingItemId: string | null;
34
34
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
35
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
35
+ status: "pending" | "paid" | "cancelled" | "expired" | "due" | "waived";
36
36
  dueDate: string;
37
37
  currency: string;
38
38
  amountCents: number;
@@ -45,7 +45,7 @@ export declare function useBookingPaymentScheduleMutation(bookingId: string): {
45
45
  bookingId: string;
46
46
  bookingItemId: string | null;
47
47
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
48
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
48
+ status: "pending" | "paid" | "cancelled" | "expired" | "due" | "waived";
49
49
  dueDate: string;
50
50
  currency: string;
51
51
  amountCents: number;
@@ -0,0 +1,94 @@
1
+ import { type UseFinanceActionLedgerOptions } from "../query-options-action-ledger.js";
2
+ export declare function useInvoiceActionLedger(invoiceId: string | null | undefined, options?: UseFinanceActionLedgerOptions): import("@tanstack/react-query").UseQueryResult<{
3
+ data: {
4
+ id: string;
5
+ occurredAt: string;
6
+ actionName: string;
7
+ actionVersion: string;
8
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
9
+ status: "failed" | "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
10
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
11
+ actorType: string | null;
12
+ principalType: "agent" | "user" | "api_key" | "workflow" | "system";
13
+ principalId: string;
14
+ principalSubtype: string | null;
15
+ sessionId: string | null;
16
+ apiTokenId: string | null;
17
+ internalRequest: boolean;
18
+ delegatedByPrincipalType: "agent" | "user" | "api_key" | "workflow" | "system" | null;
19
+ delegatedByPrincipalId: string | null;
20
+ delegationId: string | null;
21
+ callerType: string | null;
22
+ organizationId: string | null;
23
+ routeOrToolName: string | null;
24
+ workflowRunId: string | null;
25
+ workflowStepId: string | null;
26
+ correlationId: string | null;
27
+ causationActionId: string | null;
28
+ idempotencyScope: string | null;
29
+ idempotencyKey: string | null;
30
+ idempotencyFingerprint: string | null;
31
+ targetType: string;
32
+ targetId: string;
33
+ capabilityId: string | null;
34
+ capabilityVersion: string | null;
35
+ authorizationSource: string | null;
36
+ approvalId: string | null;
37
+ amendsActionId: string | null;
38
+ createdAt: string;
39
+ mutationSummary: string | null;
40
+ }[];
41
+ pageInfo: {
42
+ nextCursor: {
43
+ occurredAt: string;
44
+ id: string;
45
+ } | null;
46
+ };
47
+ }, Error>;
48
+ export declare function usePaymentSessionActionLedger(paymentSessionId: string | null | undefined, options?: UseFinanceActionLedgerOptions): import("@tanstack/react-query").UseQueryResult<{
49
+ data: {
50
+ id: string;
51
+ occurredAt: string;
52
+ actionName: string;
53
+ actionVersion: string;
54
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
55
+ status: "failed" | "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
56
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
57
+ actorType: string | null;
58
+ principalType: "agent" | "user" | "api_key" | "workflow" | "system";
59
+ principalId: string;
60
+ principalSubtype: string | null;
61
+ sessionId: string | null;
62
+ apiTokenId: string | null;
63
+ internalRequest: boolean;
64
+ delegatedByPrincipalType: "agent" | "user" | "api_key" | "workflow" | "system" | null;
65
+ delegatedByPrincipalId: string | null;
66
+ delegationId: string | null;
67
+ callerType: string | null;
68
+ organizationId: string | null;
69
+ routeOrToolName: string | null;
70
+ workflowRunId: string | null;
71
+ workflowStepId: string | null;
72
+ correlationId: string | null;
73
+ causationActionId: string | null;
74
+ idempotencyScope: string | null;
75
+ idempotencyKey: string | null;
76
+ idempotencyFingerprint: string | null;
77
+ targetType: string;
78
+ targetId: string;
79
+ capabilityId: string | null;
80
+ capabilityVersion: string | null;
81
+ authorizationSource: string | null;
82
+ approvalId: string | null;
83
+ amendsActionId: string | null;
84
+ createdAt: string;
85
+ mutationSummary: string | null;
86
+ }[];
87
+ pageInfo: {
88
+ nextCursor: {
89
+ occurredAt: string;
90
+ id: string;
91
+ } | null;
92
+ };
93
+ }, Error>;
94
+ //# sourceMappingURL=use-finance-action-ledger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-finance-action-ledger.d.ts","sourceRoot":"","sources":["../../src/hooks/use-finance-action-ledger.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,mCAAmC,CAAA;AAE1C,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,6BAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAS5C;AAED,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,OAAO,GAAE,6BAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAS5C"}
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantFinanceContext } from "../provider.js";
4
+ import { getInvoiceActionLedgerQueryOptions, getPaymentSessionActionLedgerQueryOptions, } from "../query-options-action-ledger.js";
5
+ export function useInvoiceActionLedger(invoiceId, options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantFinanceContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getInvoiceActionLedgerQueryOptions({ baseUrl, fetcher }, invoiceId, options),
10
+ enabled: enabled && Boolean(invoiceId),
11
+ });
12
+ }
13
+ export function usePaymentSessionActionLedger(paymentSessionId, options = {}) {
14
+ const { baseUrl, fetcher } = useVoyantFinanceContext();
15
+ const { enabled = true } = options;
16
+ return useQuery({
17
+ ...getPaymentSessionActionLedgerQueryOptions({ baseUrl, fetcher }, paymentSessionId, options),
18
+ enabled: enabled && Boolean(paymentSessionId),
19
+ });
20
+ }
@@ -16,8 +16,8 @@ export declare function usePublicBookingDocuments(bookingId: string | null | und
16
16
  issueDate: string;
17
17
  dueDate: string;
18
18
  renditionId: string | null;
19
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
20
- format: "json" | "pdf" | "html" | "xml" | null;
19
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
20
+ format: "html" | "pdf" | "xml" | "json" | null;
21
21
  language: string | null;
22
22
  generatedAt: string | null;
23
23
  fileSize: number | null;
@@ -9,8 +9,8 @@ export declare function usePublicBookingPaymentOptions(bookingId: string | null
9
9
  id: string;
10
10
  label: string;
11
11
  provider: string | null;
12
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
13
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
12
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
13
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
14
14
  brand: string | null;
15
15
  last4: string | null;
16
16
  expiryMonth: number | null;
@@ -20,7 +20,7 @@ export declare function usePublicBookingPaymentOptions(bookingId: string | null
20
20
  schedules: {
21
21
  id: string;
22
22
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
23
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
23
+ status: "pending" | "paid" | "cancelled" | "expired" | "due" | "waived";
24
24
  dueDate: string;
25
25
  currency: string;
26
26
  amountCents: number;
@@ -10,7 +10,7 @@ export declare function usePublicBookingPayments(bookingId: string | null | unde
10
10
  invoiceNumber: string;
11
11
  invoiceType: "invoice" | "proforma" | "credit_note";
12
12
  status: "pending" | "completed" | "failed" | "refunded";
13
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
13
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
14
14
  amountCents: number;
15
15
  currency: string;
16
16
  paymentDate: string;
@@ -14,8 +14,8 @@ export declare function usePublicFinanceDocumentByReference(reference: string |
14
14
  issueDate: string;
15
15
  dueDate: string;
16
16
  renditionId: string | null;
17
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
18
- format: "json" | "pdf" | "html" | "xml" | null;
17
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
18
+ format: "html" | "pdf" | "xml" | "json" | null;
19
19
  language: string | null;
20
20
  generatedAt: string | null;
21
21
  fileSize: number | null;
@@ -19,7 +19,7 @@ export declare function usePublicPaymentSessionMutation(): import("@tanstack/rea
19
19
  invoiceId: string | null;
20
20
  bookingPaymentScheduleId: string | null;
21
21
  bookingGuaranteeId: string | null;
22
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
22
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
23
23
  provider: string | null;
24
24
  providerSessionId: string | null;
25
25
  providerPaymentId: string | null;
@@ -27,7 +27,7 @@ export declare function usePublicPaymentSessionMutation(): import("@tanstack/rea
27
27
  clientReference: string | null;
28
28
  currency: string;
29
29
  amountCents: number;
30
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
30
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
31
31
  payerEmail: string | null;
32
32
  payerName: string | null;
33
33
  redirectUrl: string | null;
@@ -10,7 +10,7 @@ export declare function usePublicPaymentSession(sessionId: string | null | undef
10
10
  invoiceId: string | null;
11
11
  bookingPaymentScheduleId: string | null;
12
12
  bookingGuaranteeId: string | null;
13
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
13
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
14
14
  provider: string | null;
15
15
  providerSessionId: string | null;
16
16
  providerPaymentId: string | null;
@@ -18,7 +18,7 @@ export declare function usePublicPaymentSession(sessionId: string | null | undef
18
18
  clientReference: string | null;
19
19
  currency: string;
20
20
  amountCents: number;
21
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
21
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
22
22
  payerEmail: string | null;
23
23
  payerName: string | null;
24
24
  redirectUrl: string | 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" | "active" | "expired" | "redeemed";
36
+ status: "void" | "expired" | "active" | "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" | "active" | "expired" | "redeemed";
54
+ status: "void" | "expired" | "active" | "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" | "active" | "expired" | "redeemed";
76
+ status: "void" | "expired" | "active" | "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" | "active" | "expired" | "redeemed";
13
+ status: "void" | "expired" | "active" | "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" | "active" | "expired" | "redeemed";
15
+ status: "void" | "expired" | "active" | "redeemed";
16
16
  currency: string;
17
17
  initialAmountCents: number;
18
18
  remainingAmountCents: number;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, withQueryParams, } from "./client.js";
2
2
  export * from "./hooks/index.js";
3
- export { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
3
+ export { type FinanceActionLedgerListInput, getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, listInvoiceActionLedger, listPaymentSessionActionLedger, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
4
4
  export { useVoyantFinanceContext, type VoyantFinanceContextValue, VoyantFinanceProvider, type VoyantFinanceProviderProps, } from "./provider.js";
5
- export { type FinanceAllPaymentsListFilters, type FinanceAllPaymentsListSortDir, type FinanceAllPaymentsListSortField, type FinanceInvoiceListFilters, type FinanceInvoiceListSortDir, type FinanceInvoiceListSortField, type FinancePaymentKind, type FinanceSupplierPaymentListFilters, type FinanceSupplierPaymentListSortDir, type FinanceSupplierPaymentListSortField, financeQueryKeys, } from "./query-keys.js";
6
- export { getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceAttachmentsQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
5
+ export { type FinanceActionLedgerListCursor, type FinanceActionLedgerListFilters, type FinanceAllPaymentsListFilters, type FinanceAllPaymentsListSortDir, type FinanceAllPaymentsListSortField, type FinanceInvoiceListFilters, type FinanceInvoiceListSortDir, type FinanceInvoiceListSortField, type FinancePaymentKind, type FinanceSupplierPaymentListFilters, type FinanceSupplierPaymentListSortDir, type FinanceSupplierPaymentListSortField, financeQueryKeys, } from "./query-keys.js";
6
+ export { getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceActionLedgerQueryOptions, getInvoiceAttachmentsQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPaymentSessionActionLedgerQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
7
7
  export * from "./schemas.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,mCAAmC,EACnC,uBAAuB,EACvB,yCAAyC,EACzC,wCAAwC,EACxC,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,sCAAsC,EACtC,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,+CAA+C,EAC/C,mCAAmC,EACnC,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,KAAK,4BAA4B,EACjC,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,mCAAmC,EACnC,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,yCAAyC,EACzC,wCAAwC,EACxC,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,sCAAsC,EACtC,kCAAkC,EAClC,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,yCAAyC,EACzC,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,+CAA+C,EAC/C,mCAAmC,EACnC,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { defaultFetcher, fetchWithValidation, VoyantApiError, withQueryParams, } from "./client.js";
2
2
  export * from "./hooks/index.js";
3
- export { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
3
+ export { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, listInvoiceActionLedger, listPaymentSessionActionLedger, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
4
4
  export { useVoyantFinanceContext, VoyantFinanceProvider, } from "./provider.js";
5
5
  export { financeQueryKeys, } from "./query-keys.js";
6
- export { getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceAttachmentsQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
6
+ export { getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceActionLedgerQueryOptions, getInvoiceAttachmentsQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPaymentSessionActionLedgerQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
7
7
  export * from "./schemas.js";
@@ -1,5 +1,102 @@
1
1
  import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { FinanceActionLedgerListCursor } from "./query-keys.js";
2
3
  import { type PublicFinanceDocumentLookupQuery, type PublicStartPaymentSessionInput, type PublicValidateVoucherInput } from "./schemas.js";
4
+ export interface FinanceActionLedgerListInput {
5
+ cursor?: FinanceActionLedgerListCursor | null | undefined;
6
+ limit?: number | undefined;
7
+ }
8
+ export declare function listInvoiceActionLedger(client: FetchWithValidationOptions, invoiceId: string, input?: FinanceActionLedgerListInput): Promise<{
9
+ data: {
10
+ id: string;
11
+ occurredAt: string;
12
+ actionName: string;
13
+ actionVersion: string;
14
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
15
+ status: "failed" | "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
16
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
17
+ actorType: string | null;
18
+ principalType: "agent" | "user" | "api_key" | "workflow" | "system";
19
+ principalId: string;
20
+ principalSubtype: string | null;
21
+ sessionId: string | null;
22
+ apiTokenId: string | null;
23
+ internalRequest: boolean;
24
+ delegatedByPrincipalType: "agent" | "user" | "api_key" | "workflow" | "system" | null;
25
+ delegatedByPrincipalId: string | null;
26
+ delegationId: string | null;
27
+ callerType: string | null;
28
+ organizationId: string | null;
29
+ routeOrToolName: string | null;
30
+ workflowRunId: string | null;
31
+ workflowStepId: string | null;
32
+ correlationId: string | null;
33
+ causationActionId: string | null;
34
+ idempotencyScope: string | null;
35
+ idempotencyKey: string | null;
36
+ idempotencyFingerprint: string | null;
37
+ targetType: string;
38
+ targetId: string;
39
+ capabilityId: string | null;
40
+ capabilityVersion: string | null;
41
+ authorizationSource: string | null;
42
+ approvalId: string | null;
43
+ amendsActionId: string | null;
44
+ createdAt: string;
45
+ mutationSummary: string | null;
46
+ }[];
47
+ pageInfo: {
48
+ nextCursor: {
49
+ occurredAt: string;
50
+ id: string;
51
+ } | null;
52
+ };
53
+ }>;
54
+ export declare function listPaymentSessionActionLedger(client: FetchWithValidationOptions, paymentSessionId: string, input?: FinanceActionLedgerListInput): Promise<{
55
+ data: {
56
+ id: string;
57
+ occurredAt: string;
58
+ actionName: string;
59
+ actionVersion: string;
60
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
61
+ status: "failed" | "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
62
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
63
+ actorType: string | null;
64
+ principalType: "agent" | "user" | "api_key" | "workflow" | "system";
65
+ principalId: string;
66
+ principalSubtype: string | null;
67
+ sessionId: string | null;
68
+ apiTokenId: string | null;
69
+ internalRequest: boolean;
70
+ delegatedByPrincipalType: "agent" | "user" | "api_key" | "workflow" | "system" | null;
71
+ delegatedByPrincipalId: string | null;
72
+ delegationId: string | null;
73
+ callerType: string | null;
74
+ organizationId: string | null;
75
+ routeOrToolName: string | null;
76
+ workflowRunId: string | null;
77
+ workflowStepId: string | null;
78
+ correlationId: string | null;
79
+ causationActionId: string | null;
80
+ idempotencyScope: string | null;
81
+ idempotencyKey: string | null;
82
+ idempotencyFingerprint: string | null;
83
+ targetType: string;
84
+ targetId: string;
85
+ capabilityId: string | null;
86
+ capabilityVersion: string | null;
87
+ authorizationSource: string | null;
88
+ approvalId: string | null;
89
+ amendsActionId: string | null;
90
+ createdAt: string;
91
+ mutationSummary: string | null;
92
+ }[];
93
+ pageInfo: {
94
+ nextCursor: {
95
+ occurredAt: string;
96
+ id: string;
97
+ } | null;
98
+ };
99
+ }>;
3
100
  export declare function getPublicFinanceDocumentByReference(client: FetchWithValidationOptions, query: PublicFinanceDocumentLookupQuery): Promise<{
4
101
  data: {
5
102
  invoiceId: string;
@@ -13,8 +110,8 @@ export declare function getPublicFinanceDocumentByReference(client: FetchWithVal
13
110
  issueDate: string;
14
111
  dueDate: string;
15
112
  renditionId: string | null;
16
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
17
- format: "json" | "pdf" | "html" | "xml" | null;
113
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
114
+ format: "html" | "pdf" | "xml" | "json" | null;
18
115
  language: string | null;
19
116
  generatedAt: string | null;
20
117
  fileSize: number | null;
@@ -38,8 +135,8 @@ export declare function getPublicBookingDocuments(client: FetchWithValidationOpt
38
135
  issueDate: string;
39
136
  dueDate: string;
40
137
  renditionId: string | null;
41
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
42
- format: "json" | "pdf" | "html" | "xml" | null;
138
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
139
+ format: "html" | "pdf" | "xml" | "json" | null;
43
140
  language: string | null;
44
141
  generatedAt: string | null;
45
142
  fileSize: number | null;
@@ -57,7 +154,7 @@ export declare function getPublicBookingPayments(client: FetchWithValidationOpti
57
154
  invoiceNumber: string;
58
155
  invoiceType: "invoice" | "proforma" | "credit_note";
59
156
  status: "pending" | "completed" | "failed" | "refunded";
60
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
157
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
61
158
  amountCents: number;
62
159
  currency: string;
63
160
  paymentDate: string;
@@ -81,7 +178,7 @@ export declare function getAdminBookingPayments(client: FetchWithValidationOptio
81
178
  invoiceNumber: string;
82
179
  invoiceType: "invoice" | "proforma" | "credit_note";
83
180
  status: "pending" | "completed" | "failed" | "refunded";
84
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
181
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
85
182
  amountCents: number;
86
183
  currency: string;
87
184
  paymentDate: string;
@@ -103,8 +200,8 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
103
200
  id: string;
104
201
  label: string;
105
202
  provider: string | null;
106
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
107
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
203
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
204
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
108
205
  brand: string | null;
109
206
  last4: string | null;
110
207
  expiryMonth: number | null;
@@ -114,7 +211,7 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
114
211
  schedules: {
115
212
  id: string;
116
213
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
117
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
214
+ status: "pending" | "paid" | "cancelled" | "expired" | "due" | "waived";
118
215
  dueDate: string;
119
216
  currency: string;
120
217
  amountCents: number;
@@ -147,7 +244,7 @@ export declare function getPublicPaymentSession(client: FetchWithValidationOptio
147
244
  invoiceId: string | null;
148
245
  bookingPaymentScheduleId: string | null;
149
246
  bookingGuaranteeId: string | null;
150
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
247
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
151
248
  provider: string | null;
152
249
  providerSessionId: string | null;
153
250
  providerPaymentId: string | null;
@@ -155,7 +252,7 @@ export declare function getPublicPaymentSession(client: FetchWithValidationOptio
155
252
  clientReference: string | null;
156
253
  currency: string;
157
254
  amountCents: number;
158
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
255
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
159
256
  payerEmail: string | null;
160
257
  payerName: string | null;
161
258
  redirectUrl: string | null;
@@ -177,7 +274,7 @@ export declare function startPublicBookingSchedulePaymentSession(client: FetchWi
177
274
  invoiceId: string | null;
178
275
  bookingPaymentScheduleId: string | null;
179
276
  bookingGuaranteeId: string | null;
180
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
277
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
181
278
  provider: string | null;
182
279
  providerSessionId: string | null;
183
280
  providerPaymentId: string | null;
@@ -185,7 +282,7 @@ export declare function startPublicBookingSchedulePaymentSession(client: FetchWi
185
282
  clientReference: string | null;
186
283
  currency: string;
187
284
  amountCents: number;
188
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
285
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
189
286
  payerEmail: string | null;
190
287
  payerName: string | null;
191
288
  redirectUrl: string | null;
@@ -207,7 +304,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
207
304
  invoiceId: string | null;
208
305
  bookingPaymentScheduleId: string | null;
209
306
  bookingGuaranteeId: string | null;
210
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
307
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
211
308
  provider: string | null;
212
309
  providerSessionId: string | null;
213
310
  providerPaymentId: string | null;
@@ -215,7 +312,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
215
312
  clientReference: string | null;
216
313
  currency: string;
217
314
  amountCents: number;
218
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
315
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
219
316
  payerEmail: string | null;
220
317
  payerName: string | null;
221
318
  redirectUrl: string | null;