@voyant-travel/finance-react 0.119.5
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 +201 -0
- package/README.md +75 -0
- package/dist/admin/booking-invoices-widget.d.ts +19 -0
- package/dist/admin/booking-invoices-widget.d.ts.map +1 -0
- package/dist/admin/booking-invoices-widget.js +204 -0
- package/dist/admin/booking-payment-policy-widget.d.ts +21 -0
- package/dist/admin/booking-payment-policy-widget.d.ts.map +1 -0
- package/dist/admin/booking-payment-policy-widget.js +128 -0
- package/dist/admin/booking-pending-payment-sessions-widget.d.ts +24 -0
- package/dist/admin/booking-pending-payment-sessions-widget.d.ts.map +1 -0
- package/dist/admin/booking-pending-payment-sessions-widget.js +139 -0
- package/dist/admin/credit-note-dialog.d.ts +9 -0
- package/dist/admin/credit-note-dialog.d.ts.map +1 -0
- package/dist/admin/credit-note-dialog.js +70 -0
- package/dist/admin/finance-shared.d.ts +7 -0
- package/dist/admin/finance-shared.d.ts.map +1 -0
- package/dist/admin/finance-shared.js +30 -0
- package/dist/admin/index.d.ts +99 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +286 -0
- package/dist/admin/invoice-detail-host.d.ts +19 -0
- package/dist/admin/invoice-detail-host.d.ts.map +1 -0
- package/dist/admin/invoice-detail-host.js +147 -0
- package/dist/admin/invoice-detail-sections.d.ts +31 -0
- package/dist/admin/invoice-detail-sections.d.ts.map +1 -0
- package/dist/admin/invoice-detail-sections.js +109 -0
- package/dist/admin/invoice-detail-skeleton.d.ts +11 -0
- package/dist/admin/invoice-detail-skeleton.d.ts.map +1 -0
- package/dist/admin/invoice-detail-skeleton.js +33 -0
- package/dist/admin/line-item-dialog.d.ts +10 -0
- package/dist/admin/line-item-dialog.d.ts.map +1 -0
- package/dist/admin/line-item-dialog.js +91 -0
- package/dist/admin/pages/invoice-detail.d.ts +8 -0
- package/dist/admin/pages/invoice-detail.d.ts.map +1 -0
- package/dist/admin/pages/invoice-detail.js +11 -0
- package/dist/admin/pages/invoices-index.d.ts +8 -0
- package/dist/admin/pages/invoices-index.d.ts.map +1 -0
- package/dist/admin/pages/invoices-index.js +14 -0
- package/dist/admin/pages/payment-detail.d.ts +8 -0
- package/dist/admin/pages/payment-detail.d.ts.map +1 -0
- package/dist/admin/pages/payment-detail.js +11 -0
- package/dist/admin/pages/payments-index.d.ts +9 -0
- package/dist/admin/pages/payments-index.d.ts.map +1 -0
- package/dist/admin/pages/payments-index.js +21 -0
- package/dist/admin/pages/profitability.d.ts +10 -0
- package/dist/admin/pages/profitability.d.ts.map +1 -0
- package/dist/admin/pages/profitability.js +32 -0
- package/dist/admin/pages/supplier-invoice-detail.d.ts +20 -0
- package/dist/admin/pages/supplier-invoice-detail.d.ts.map +1 -0
- package/dist/admin/pages/supplier-invoice-detail.js +102 -0
- package/dist/admin/pages/supplier-invoices-index.d.ts +9 -0
- package/dist/admin/pages/supplier-invoices-index.d.ts.map +1 -0
- package/dist/admin/pages/supplier-invoices-index.js +16 -0
- package/dist/admin/payment-detail-host.d.ts +12 -0
- package/dist/admin/payment-detail-host.d.ts.map +1 -0
- package/dist/admin/payment-detail-host.js +108 -0
- package/dist/admin/payment-detail-skeleton.d.ts +8 -0
- package/dist/admin/payment-detail-skeleton.d.ts.map +1 -0
- package/dist/admin/payment-detail-skeleton.js +15 -0
- package/dist/admin/payment-dialog.d.ts +9 -0
- package/dist/admin/payment-dialog.d.ts.map +1 -0
- package/dist/admin/payment-dialog.js +99 -0
- package/dist/admin/record-payment-dialog.d.ts +16 -0
- package/dist/admin/record-payment-dialog.d.ts.map +1 -0
- package/dist/admin/record-payment-dialog.js +219 -0
- package/dist/admin/supplier-payment-policy-widget.d.ts +18 -0
- package/dist/admin/supplier-payment-policy-widget.d.ts.map +1 -0
- package/dist/admin/supplier-payment-policy-widget.js +31 -0
- package/dist/admin/use-supplier-picker.d.ts +19 -0
- package/dist/admin/use-supplier-picker.d.ts.map +1 -0
- package/dist/admin/use-supplier-picker.js +30 -0
- package/dist/checkout-components/collect-payment-dialog.d.ts +45 -0
- package/dist/checkout-components/collect-payment-dialog.d.ts.map +1 -0
- package/dist/checkout-components/collect-payment-dialog.js +121 -0
- package/dist/checkout-components/payment-link-landing-page.d.ts +76 -0
- package/dist/checkout-components/payment-link-landing-page.d.ts.map +1 -0
- package/dist/checkout-components/payment-link-landing-page.js +173 -0
- package/dist/checkout-components/payment-step.d.ts +42 -0
- package/dist/checkout-components/payment-step.d.ts.map +1 -0
- package/dist/checkout-components/payment-step.js +113 -0
- package/dist/checkout-hooks/index.d.ts +5 -0
- package/dist/checkout-hooks/index.d.ts.map +1 -0
- package/dist/checkout-hooks/index.js +4 -0
- package/dist/checkout-hooks/use-checkout-payment-link-config.d.ts +20 -0
- package/dist/checkout-hooks/use-checkout-payment-link-config.d.ts.map +1 -0
- package/dist/checkout-hooks/use-checkout-payment-link-config.js +26 -0
- package/dist/checkout-hooks/use-collect-payment.d.ts +227 -0
- package/dist/checkout-hooks/use-collect-payment.d.ts.map +1 -0
- package/dist/checkout-hooks/use-collect-payment.js +80 -0
- package/dist/checkout-hooks/use-initiate-checkout-collection.d.ts +308 -0
- package/dist/checkout-hooks/use-initiate-checkout-collection.d.ts.map +1 -0
- package/dist/checkout-hooks/use-initiate-checkout-collection.js +35 -0
- package/dist/checkout-hooks/use-preview-checkout-collection.d.ts +65 -0
- package/dist/checkout-hooks/use-preview-checkout-collection.d.ts.map +1 -0
- package/dist/checkout-hooks/use-preview-checkout-collection.js +27 -0
- package/dist/checkout-i18n/en.d.ts +3 -0
- package/dist/checkout-i18n/en.d.ts.map +1 -0
- package/dist/checkout-i18n/en.js +127 -0
- package/dist/checkout-i18n/index.d.ts +5 -0
- package/dist/checkout-i18n/index.d.ts.map +1 -0
- package/dist/checkout-i18n/index.js +3 -0
- package/dist/checkout-i18n/messages.d.ts +121 -0
- package/dist/checkout-i18n/messages.d.ts.map +1 -0
- package/dist/checkout-i18n/messages.js +1 -0
- package/dist/checkout-i18n/provider.d.ts +26 -0
- package/dist/checkout-i18n/provider.d.ts.map +1 -0
- package/dist/checkout-i18n/provider.js +41 -0
- package/dist/checkout-i18n/ro.d.ts +3 -0
- package/dist/checkout-i18n/ro.d.ts.map +1 -0
- package/dist/checkout-i18n/ro.js +127 -0
- package/dist/checkout-types.d.ts +53 -0
- package/dist/checkout-types.d.ts.map +1 -0
- package/dist/checkout-types.js +1 -0
- package/dist/checkout-ui.d.ts +7 -0
- package/dist/checkout-ui.d.ts.map +1 -0
- package/dist/checkout-ui.js +4 -0
- package/dist/checkout.d.ts +5 -0
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.js +3 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +79 -0
- package/dist/components/accountant-portal/body.d.ts +8 -0
- package/dist/components/accountant-portal/body.d.ts.map +1 -0
- package/dist/components/accountant-portal/body.js +114 -0
- package/dist/components/accountant-portal/widgets.d.ts +13 -0
- package/dist/components/accountant-portal/widgets.d.ts.map +1 -0
- package/dist/components/accountant-portal/widgets.js +27 -0
- package/dist/components/accountant-portal.d.ts +10 -0
- package/dist/components/accountant-portal.d.ts.map +1 -0
- package/dist/components/accountant-portal.js +22 -0
- package/dist/components/accountant-share-dialog.d.ts +6 -0
- package/dist/components/accountant-share-dialog.d.ts.map +1 -0
- package/dist/components/accountant-share-dialog.js +53 -0
- package/dist/components/async-combobox.d.ts +33 -0
- package/dist/components/async-combobox.d.ts.map +1 -0
- package/dist/components/async-combobox.js +100 -0
- package/dist/components/booking-invoice-dialog.d.ts +63 -0
- package/dist/components/booking-invoice-dialog.d.ts.map +1 -0
- package/dist/components/booking-invoice-dialog.js +383 -0
- package/dist/components/cost-categories-page.d.ts +5 -0
- package/dist/components/cost-categories-page.d.ts.map +1 -0
- package/dist/components/cost-categories-page.js +30 -0
- package/dist/components/invoice-action-ledger-card.d.ts +15 -0
- package/dist/components/invoice-action-ledger-card.d.ts.map +1 -0
- package/dist/components/invoice-action-ledger-card.js +76 -0
- package/dist/components/invoice-bulk-actions.d.ts +10 -0
- package/dist/components/invoice-bulk-actions.d.ts.map +1 -0
- package/dist/components/invoice-bulk-actions.js +19 -0
- package/dist/components/invoice-detail-page/cards.d.ts +44 -0
- package/dist/components/invoice-detail-page/cards.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/cards.js +43 -0
- package/dist/components/invoice-detail-page/header.d.ts +15 -0
- package/dist/components/invoice-detail-page/header.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/header.js +30 -0
- package/dist/components/invoice-detail-page/notes-dialogs.d.ts +28 -0
- package/dist/components/invoice-detail-page/notes-dialogs.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/notes-dialogs.js +104 -0
- package/dist/components/invoice-detail-page/primitives.d.ts +47 -0
- package/dist/components/invoice-detail-page/primitives.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/primitives.js +76 -0
- package/dist/components/invoice-detail-page-with-action-ledger.d.ts +7 -0
- package/dist/components/invoice-detail-page-with-action-ledger.d.ts.map +1 -0
- package/dist/components/invoice-detail-page-with-action-ledger.js +11 -0
- package/dist/components/invoice-detail-page.d.ts +46 -0
- package/dist/components/invoice-detail-page.d.ts.map +1 -0
- package/dist/components/invoice-detail-page.js +134 -0
- package/dist/components/invoice-dialog.d.ts +9 -0
- package/dist/components/invoice-dialog.d.ts.map +1 -0
- package/dist/components/invoice-dialog.js +145 -0
- package/dist/components/invoice-number-series-dialog.d.ts +9 -0
- package/dist/components/invoice-number-series-dialog.d.ts.map +1 -0
- package/dist/components/invoice-number-series-dialog.js +134 -0
- package/dist/components/invoice-number-series-format.d.ts +3 -0
- package/dist/components/invoice-number-series-format.d.ts.map +1 -0
- package/dist/components/invoice-number-series-format.js +4 -0
- package/dist/components/invoice-number-series-page.d.ts +5 -0
- package/dist/components/invoice-number-series-page.d.ts.map +1 -0
- package/dist/components/invoice-number-series-page.js +55 -0
- package/dist/components/invoice-table-parts.d.ts +25 -0
- package/dist/components/invoice-table-parts.d.ts.map +1 -0
- package/dist/components/invoice-table-parts.js +32 -0
- package/dist/components/invoices-page-skeleton.d.ts +5 -0
- package/dist/components/invoices-page-skeleton.d.ts.map +1 -0
- package/dist/components/invoices-page-skeleton.js +13 -0
- package/dist/components/invoices-page.d.ts +6 -0
- package/dist/components/invoices-page.d.ts.map +1 -0
- package/dist/components/invoices-page.js +145 -0
- package/dist/components/payment-detail-page.d.ts +47 -0
- package/dist/components/payment-detail-page.d.ts.map +1 -0
- package/dist/components/payment-detail-page.js +90 -0
- package/dist/components/payment-policy-form.d.ts +49 -0
- package/dist/components/payment-policy-form.d.ts.map +1 -0
- package/dist/components/payment-policy-form.js +82 -0
- package/dist/components/payments-page/controls.d.ts +23 -0
- package/dist/components/payments-page/controls.d.ts.map +1 -0
- package/dist/components/payments-page/controls.js +20 -0
- package/dist/components/payments-page-skeleton.d.ts +5 -0
- package/dist/components/payments-page-skeleton.d.ts.map +1 -0
- package/dist/components/payments-page-skeleton.js +13 -0
- package/dist/components/payments-page.d.ts +20 -0
- package/dist/components/payments-page.d.ts.map +1 -0
- package/dist/components/payments-page.js +143 -0
- package/dist/components/profitability-page/sections.d.ts +24 -0
- package/dist/components/profitability-page/sections.d.ts.map +1 -0
- package/dist/components/profitability-page/sections.js +43 -0
- package/dist/components/profitability-page.d.ts +13 -0
- package/dist/components/profitability-page.d.ts.map +1 -0
- package/dist/components/profitability-page.js +175 -0
- package/dist/components/record-booking-payment-dialog/shared.d.ts +54 -0
- package/dist/components/record-booking-payment-dialog/shared.d.ts.map +1 -0
- package/dist/components/record-booking-payment-dialog/shared.js +47 -0
- package/dist/components/record-booking-payment-dialog.d.ts +4 -0
- package/dist/components/record-booking-payment-dialog.d.ts.map +1 -0
- package/dist/components/record-booking-payment-dialog.js +256 -0
- package/dist/components/supplier-invoice-detail-page/dialogs.d.ts +34 -0
- package/dist/components/supplier-invoice-detail-page/dialogs.d.ts.map +1 -0
- package/dist/components/supplier-invoice-detail-page/dialogs.js +119 -0
- package/dist/components/supplier-invoice-detail-page/shared.d.ts +64 -0
- package/dist/components/supplier-invoice-detail-page/shared.d.ts.map +1 -0
- package/dist/components/supplier-invoice-detail-page/shared.js +70 -0
- package/dist/components/supplier-invoice-detail-page.d.ts +4 -0
- package/dist/components/supplier-invoice-detail-page.d.ts.map +1 -0
- package/dist/components/supplier-invoice-detail-page.js +101 -0
- package/dist/components/supplier-invoice-form-dialog.d.ts +45 -0
- package/dist/components/supplier-invoice-form-dialog.d.ts.map +1 -0
- package/dist/components/supplier-invoice-form-dialog.js +102 -0
- package/dist/components/supplier-invoices-page.d.ts +14 -0
- package/dist/components/supplier-invoices-page.d.ts.map +1 -0
- package/dist/components/supplier-invoices-page.js +69 -0
- package/dist/components/supplier-payment-dialog.d.ts +7 -0
- package/dist/components/supplier-payment-dialog.d.ts.map +1 -0
- package/dist/components/supplier-payment-dialog.js +103 -0
- package/dist/components/taxes-page/policy-profile-sheet.d.ts +8 -0
- package/dist/components/taxes-page/policy-profile-sheet.d.ts.map +1 -0
- package/dist/components/taxes-page/policy-profile-sheet.js +52 -0
- package/dist/components/taxes-page/policy-rule-sheet.d.ts +10 -0
- package/dist/components/taxes-page/policy-rule-sheet.d.ts.map +1 -0
- package/dist/components/taxes-page/policy-rule-sheet.js +137 -0
- package/dist/components/taxes-page/shared.d.ts +128 -0
- package/dist/components/taxes-page/shared.d.ts.map +1 -0
- package/dist/components/taxes-page/shared.js +288 -0
- package/dist/components/taxes-page/sheets.d.ts +4 -0
- package/dist/components/taxes-page/sheets.d.ts.map +1 -0
- package/dist/components/taxes-page/sheets.js +3 -0
- package/dist/components/taxes-page/tax-sheet.d.ts +9 -0
- package/dist/components/taxes-page/tax-sheet.d.ts.map +1 -0
- package/dist/components/taxes-page/tax-sheet.js +108 -0
- package/dist/components/taxes-page.d.ts +4 -0
- package/dist/components/taxes-page.d.ts.map +1 -0
- package/dist/components/taxes-page.js +165 -0
- package/dist/hooks/index.d.ts +53 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +52 -0
- package/dist/hooks/use-accountant-share-mutation.d.ts +20 -0
- package/dist/hooks/use-accountant-share-mutation.d.ts.map +1 -0
- package/dist/hooks/use-accountant-share-mutation.js +27 -0
- package/dist/hooks/use-accountant-shares.d.ts +13 -0
- package/dist/hooks/use-accountant-shares.d.ts.map +1 -0
- package/dist/hooks/use-accountant-shares.js +8 -0
- package/dist/hooks/use-admin-booking-payments.d.ts +30 -0
- package/dist/hooks/use-admin-booking-payments.d.ts.map +1 -0
- package/dist/hooks/use-admin-booking-payments.js +18 -0
- package/dist/hooks/use-all-payments.d.ts +35 -0
- package/dist/hooks/use-all-payments.d.ts.map +1 -0
- package/dist/hooks/use-all-payments.js +12 -0
- package/dist/hooks/use-booking-guarantees.d.ts +82 -0
- package/dist/hooks/use-booking-guarantees.d.ts.map +1 -0
- package/dist/hooks/use-booking-guarantees.js +46 -0
- package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.d.ts +44 -0
- package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.js +27 -0
- package/dist/hooks/use-booking-payment-schedules.d.ts +63 -0
- package/dist/hooks/use-booking-payment-schedules.d.ts.map +1 -0
- package/dist/hooks/use-booking-payment-schedules.js +47 -0
- package/dist/hooks/use-cost-categories.d.ts +14 -0
- package/dist/hooks/use-cost-categories.d.ts.map +1 -0
- package/dist/hooks/use-cost-categories.js +9 -0
- package/dist/hooks/use-cost-category-mutation.d.ts +31 -0
- package/dist/hooks/use-cost-category-mutation.d.ts.map +1 -0
- package/dist/hooks/use-cost-category-mutation.js +27 -0
- package/dist/hooks/use-departure-profitability.d.ts +56 -0
- package/dist/hooks/use-departure-profitability.d.ts.map +1 -0
- package/dist/hooks/use-departure-profitability.js +12 -0
- package/dist/hooks/use-finance-action-ledger.d.ts +94 -0
- package/dist/hooks/use-finance-action-ledger.d.ts.map +1 -0
- package/dist/hooks/use-finance-action-ledger.js +20 -0
- package/dist/hooks/use-invoice-attachment-mutation.d.ts +43 -0
- package/dist/hooks/use-invoice-attachment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-attachment-mutation.js +39 -0
- package/dist/hooks/use-invoice-attachments.d.ts +18 -0
- package/dist/hooks/use-invoice-attachments.d.ts.map +1 -0
- package/dist/hooks/use-invoice-attachments.js +12 -0
- package/dist/hooks/use-invoice-bulk-status-mutation.d.ts +51 -0
- package/dist/hooks/use-invoice-bulk-status-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-bulk-status-mutation.js +66 -0
- package/dist/hooks/use-invoice-credit-note-mutation.d.ts +38 -0
- package/dist/hooks/use-invoice-credit-note-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-credit-note-mutation.js +35 -0
- package/dist/hooks/use-invoice-credit-notes.d.ts +17 -0
- package/dist/hooks/use-invoice-credit-notes.d.ts.map +1 -0
- package/dist/hooks/use-invoice-credit-notes.js +12 -0
- package/dist/hooks/use-invoice-fx-rate.d.ts +19 -0
- package/dist/hooks/use-invoice-fx-rate.d.ts.map +1 -0
- package/dist/hooks/use-invoice-fx-rate.js +13 -0
- package/dist/hooks/use-invoice-line-item-mutation.d.ts +40 -0
- package/dist/hooks/use-invoice-line-item-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-line-item-mutation.js +42 -0
- package/dist/hooks/use-invoice-line-items.d.ts +17 -0
- package/dist/hooks/use-invoice-line-items.d.ts.map +1 -0
- package/dist/hooks/use-invoice-line-items.js +12 -0
- package/dist/hooks/use-invoice-mutation.d.ts +225 -0
- package/dist/hooks/use-invoice-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-mutation.js +121 -0
- package/dist/hooks/use-invoice-note-mutation.d.ts +11 -0
- package/dist/hooks/use-invoice-note-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-note-mutation.js +23 -0
- package/dist/hooks/use-invoice-notes.d.ts +13 -0
- package/dist/hooks/use-invoice-notes.d.ts.map +1 -0
- package/dist/hooks/use-invoice-notes.js +12 -0
- package/dist/hooks/use-invoice-number-series-mutation.d.ts +62 -0
- package/dist/hooks/use-invoice-number-series-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-number-series-mutation.js +39 -0
- package/dist/hooks/use-invoice-number-series.d.ts +28 -0
- package/dist/hooks/use-invoice-number-series.d.ts.map +1 -0
- package/dist/hooks/use-invoice-number-series.js +12 -0
- package/dist/hooks/use-invoice-payment-mutation.d.ts +29 -0
- package/dist/hooks/use-invoice-payment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-payment-mutation.js +35 -0
- package/dist/hooks/use-invoice-payments.d.ts +21 -0
- package/dist/hooks/use-invoice-payments.d.ts.map +1 -0
- package/dist/hooks/use-invoice-payments.js +12 -0
- package/dist/hooks/use-invoice.d.ts +32 -0
- package/dist/hooks/use-invoice.d.ts.map +1 -0
- package/dist/hooks/use-invoice.js +12 -0
- package/dist/hooks/use-invoices.d.ts +36 -0
- package/dist/hooks/use-invoices.d.ts.map +1 -0
- package/dist/hooks/use-invoices.js +12 -0
- package/dist/hooks/use-payment-mutation.d.ts +57 -0
- package/dist/hooks/use-payment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-payment-mutation.js +59 -0
- package/dist/hooks/use-payment-session-mutation.d.ts +205 -0
- package/dist/hooks/use-payment-session-mutation.d.ts.map +1 -0
- package/dist/hooks/use-payment-session-mutation.js +38 -0
- package/dist/hooks/use-payment-sessions.d.ts +97 -0
- package/dist/hooks/use-payment-sessions.d.ts.map +1 -0
- package/dist/hooks/use-payment-sessions.js +17 -0
- package/dist/hooks/use-payment.d.ts +31 -0
- package/dist/hooks/use-payment.d.ts.map +1 -0
- package/dist/hooks/use-payment.js +12 -0
- package/dist/hooks/use-product-profitability.d.ts +52 -0
- package/dist/hooks/use-product-profitability.d.ts.map +1 -0
- package/dist/hooks/use-product-profitability.js +12 -0
- package/dist/hooks/use-public-booking-documents.d.ts +29 -0
- package/dist/hooks/use-public-booking-documents.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-documents.js +12 -0
- package/dist/hooks/use-public-booking-payment-options.d.ts +47 -0
- package/dist/hooks/use-public-booking-payment-options.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-payment-options.js +12 -0
- package/dist/hooks/use-public-booking-payments.d.ts +24 -0
- package/dist/hooks/use-public-booking-payments.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-payments.js +12 -0
- package/dist/hooks/use-public-finance-document-by-reference.d.ts +27 -0
- package/dist/hooks/use-public-finance-document-by-reference.d.ts.map +1 -0
- package/dist/hooks/use-public-finance-document-by-reference.js +12 -0
- package/dist/hooks/use-public-payment-session-mutation.d.ts +82 -0
- package/dist/hooks/use-public-payment-session-mutation.d.ts.map +1 -0
- package/dist/hooks/use-public-payment-session-mutation.js +33 -0
- package/dist/hooks/use-public-payment-session.d.ts +73 -0
- package/dist/hooks/use-public-payment-session.d.ts.map +1 -0
- package/dist/hooks/use-public-payment-session.js +12 -0
- package/dist/hooks/use-public-voucher-validation-mutation.d.ts +23 -0
- package/dist/hooks/use-public-voucher-validation-mutation.d.ts.map +1 -0
- package/dist/hooks/use-public-voucher-validation-mutation.js +17 -0
- package/dist/hooks/use-supplier-invoice-attachments.d.ts +17 -0
- package/dist/hooks/use-supplier-invoice-attachments.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice-attachments.js +12 -0
- package/dist/hooks/use-supplier-invoice-mutation.d.ts +353 -0
- package/dist/hooks/use-supplier-invoice-mutation.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice-mutation.js +81 -0
- package/dist/hooks/use-supplier-invoice-payments.d.ts +26 -0
- package/dist/hooks/use-supplier-invoice-payments.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice-payments.js +12 -0
- package/dist/hooks/use-supplier-invoice.d.ts +65 -0
- package/dist/hooks/use-supplier-invoice.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice.js +12 -0
- package/dist/hooks/use-supplier-invoices.d.ts +36 -0
- package/dist/hooks/use-supplier-invoices.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoices.js +12 -0
- package/dist/hooks/use-supplier-payment-mutation.d.ts +55 -0
- package/dist/hooks/use-supplier-payment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-supplier-payment-mutation.js +35 -0
- package/dist/hooks/use-supplier-payments.d.ts +27 -0
- package/dist/hooks/use-supplier-payments.d.ts.map +1 -0
- package/dist/hooks/use-supplier-payments.js +12 -0
- package/dist/hooks/use-traveler-profitability.d.ts +24 -0
- package/dist/hooks/use-traveler-profitability.d.ts.map +1 -0
- package/dist/hooks/use-traveler-profitability.js +11 -0
- package/dist/hooks/use-voucher-mutation.d.ts +105 -0
- package/dist/hooks/use-voucher-mutation.d.ts.map +1 -0
- package/dist/hooks/use-voucher-mutation.js +50 -0
- package/dist/hooks/use-voucher.d.ts +38 -0
- package/dist/hooks/use-voucher.d.ts.map +1 -0
- package/dist/hooks/use-voucher.js +17 -0
- package/dist/hooks/use-vouchers.d.ts +34 -0
- package/dist/hooks/use-vouchers.d.ts.map +1 -0
- package/dist/hooks/use-vouchers.js +18 -0
- package/dist/i18n/en/invoices.d.ts +278 -0
- package/dist/i18n/en/invoices.d.ts.map +1 -0
- package/dist/i18n/en/invoices.js +277 -0
- package/dist/i18n/en/numberingAndPayments.d.ts +387 -0
- package/dist/i18n/en/numberingAndPayments.d.ts.map +1 -0
- package/dist/i18n/en/numberingAndPayments.js +386 -0
- package/dist/i18n/en/profitability.d.ts +147 -0
- package/dist/i18n/en/profitability.d.ts.map +1 -0
- package/dist/i18n/en/profitability.js +146 -0
- package/dist/i18n/en/suppliers.d.ts +187 -0
- package/dist/i18n/en/suppliers.d.ts.map +1 -0
- package/dist/i18n/en/suppliers.js +186 -0
- package/dist/i18n/en.d.ts +998 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +22 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages/core.d.ts +18 -0
- package/dist/i18n/messages/core.d.ts.map +1 -0
- package/dist/i18n/messages/core.js +30 -0
- package/dist/i18n/messages/invoices.d.ts +252 -0
- package/dist/i18n/messages/invoices.d.ts.map +1 -0
- package/dist/i18n/messages/invoices.js +1 -0
- package/dist/i18n/messages/numberingAndPayments.d.ts +277 -0
- package/dist/i18n/messages/numberingAndPayments.d.ts.map +1 -0
- package/dist/i18n/messages/numberingAndPayments.js +1 -0
- package/dist/i18n/messages/profitability.d.ts +151 -0
- package/dist/i18n/messages/profitability.d.ts.map +1 -0
- package/dist/i18n/messages/profitability.js +1 -0
- package/dist/i18n/messages/suppliers.d.ts +167 -0
- package/dist/i18n/messages/suppliers.d.ts.map +1 -0
- package/dist/i18n/messages/suppliers.js +1 -0
- package/dist/i18n/messages.d.ts +29 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +2018 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro/invoices.d.ts +278 -0
- package/dist/i18n/ro/invoices.d.ts.map +1 -0
- package/dist/i18n/ro/invoices.js +277 -0
- package/dist/i18n/ro/numberingAndPayments.d.ts +387 -0
- package/dist/i18n/ro/numberingAndPayments.d.ts.map +1 -0
- package/dist/i18n/ro/numberingAndPayments.js +386 -0
- package/dist/i18n/ro/profitability.d.ts +147 -0
- package/dist/i18n/ro/profitability.d.ts.map +1 -0
- package/dist/i18n/ro/profitability.js +146 -0
- package/dist/i18n/ro/suppliers.d.ts +187 -0
- package/dist/i18n/ro/suppliers.d.ts.map +1 -0
- package/dist/i18n/ro/suppliers.js +186 -0
- package/dist/i18n/ro.d.ts +998 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +22 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/operations.d.ts +484 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +52 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +195 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +49 -0
- package/dist/query-options/public-reporting.d.ts +2129 -0
- package/dist/query-options/public-reporting.d.ts.map +1 -0
- package/dist/query-options/public-reporting.js +193 -0
- package/dist/query-options-action-ledger.d.ts +382 -0
- package/dist/query-options-action-ledger.d.ts.map +1 -0
- package/dist/query-options-action-ledger.js +36 -0
- package/dist/query-options.d.ts +2057 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +328 -0
- package/dist/schemas/accountant.d.ts +168 -0
- package/dist/schemas/accountant.d.ts.map +1 -0
- package/dist/schemas/accountant.js +53 -0
- package/dist/schemas/action-ledger.d.ts +206 -0
- package/dist/schemas/action-ledger.d.ts.map +1 -0
- package/dist/schemas/action-ledger.js +83 -0
- package/dist/schemas/common.d.ts +17 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +10 -0
- package/dist/schemas/invoice.d.ts +1451 -0
- package/dist/schemas/invoice.d.ts.map +1 -0
- package/dist/schemas/invoice.js +438 -0
- package/dist/schemas/profitability.d.ts +333 -0
- package/dist/schemas/profitability.d.ts.map +1 -0
- package/dist/schemas/profitability.js +84 -0
- package/dist/schemas/public.d.ts +481 -0
- package/dist/schemas/public.d.ts.map +1 -0
- package/dist/schemas/public.js +9 -0
- package/dist/schemas/responses.d.ts +632 -0
- package/dist/schemas/responses.d.ts.map +1 -0
- package/dist/schemas/responses.js +27 -0
- package/dist/schemas/supplier.d.ts +226 -0
- package/dist/schemas/supplier.d.ts.map +1 -0
- package/dist/schemas/supplier.js +103 -0
- package/dist/schemas/vouchers.d.ts +283 -0
- package/dist/schemas/vouchers.d.ts.map +1 -0
- package/dist/schemas/vouchers.js +49 -0
- package/dist/schemas.d.ts +10 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +9 -0
- package/dist/ui.d.ts +27 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +26 -0
- package/package.json +181 -0
- package/src/styles.css +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBK,CAAA"}
|
package/dist/i18n/ro.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { common, invoiceDetailPage, invoiceDialog, invoicesPage } from "./ro/invoices.js";
|
|
2
|
+
import { invoiceNumberSeriesDialog, invoiceNumberSeriesPage, paymentDetailPage, paymentPolicy, paymentsPage, recordBookingPaymentDialog, taxesPage, } from "./ro/numberingAndPayments.js";
|
|
3
|
+
import { costCategories, profitability } from "./ro/profitability.js";
|
|
4
|
+
import { supplierInvoiceDetail, supplierInvoicesPage, supplierPaymentDialog, } from "./ro/suppliers.js";
|
|
5
|
+
export const financeUiRo = {
|
|
6
|
+
common,
|
|
7
|
+
invoiceDialog,
|
|
8
|
+
invoicesPage,
|
|
9
|
+
supplierInvoicesPage,
|
|
10
|
+
supplierInvoiceDetail,
|
|
11
|
+
invoiceNumberSeriesPage,
|
|
12
|
+
invoiceNumberSeriesDialog,
|
|
13
|
+
paymentsPage,
|
|
14
|
+
paymentDetailPage,
|
|
15
|
+
invoiceDetailPage,
|
|
16
|
+
paymentPolicy,
|
|
17
|
+
taxesPage,
|
|
18
|
+
supplierPaymentDialog,
|
|
19
|
+
recordBookingPaymentDialog,
|
|
20
|
+
profitability,
|
|
21
|
+
costCategories,
|
|
22
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./checkout-hooks/index.js";
|
|
2
|
+
export * from "./checkout-i18n/index.js";
|
|
3
|
+
export type { PaymentChoice, PaymentStepCapabilities, PaymentStepExtraOption, SavedPaymentAccount, } from "./checkout-types.js";
|
|
4
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, withQueryParams, } from "./client.js";
|
|
5
|
+
export * from "./hooks/index.js";
|
|
6
|
+
export { type FinanceActionLedgerListInput, getAdminBookingPayments, getInvoiceFxRate, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, type InvoiceFxRateInput, listInvoiceActionLedger, listPaymentSessionActionLedger, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
|
|
7
|
+
export { useVoyantFinanceContext, type VoyantFinanceContextValue, VoyantFinanceProvider, type VoyantFinanceProviderProps, } from "./provider.js";
|
|
8
|
+
export { type FinanceActionLedgerListCursor, type FinanceActionLedgerListFilters, type FinanceAllPaymentsListFilters, type FinanceAllPaymentsListSortDir, type FinanceAllPaymentsListSortField, type FinanceDepartureProfitabilityFilters, type FinanceInvoiceFxRateFilters, type FinanceInvoiceListFilters, type FinanceInvoiceListSortDir, type FinanceInvoiceListSortField, type FinanceInvoiceNumberSeriesListFilters, type FinanceInvoiceNumberSeriesScope, type FinancePaymentKind, type FinancePaymentSessionListFilters, type FinancePaymentSessionStatusFilter, type FinanceProductProfitabilityFilters, type FinanceSupplierInvoiceListFilters, type FinanceSupplierInvoiceListSortDir, type FinanceSupplierInvoiceListSortField, type FinanceSupplierPaymentListFilters, type FinanceSupplierPaymentListSortDir, type FinanceSupplierPaymentListSortField, type FinanceTravelerProfitabilityFilters, financeQueryKeys, } from "./query-keys.js";
|
|
9
|
+
export { getAccountantInvoicesQueryOptions, getAccountantSharesQueryOptions, getAccountantSummaryQueryOptions, getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getCostCategoriesQueryOptions, getDepartureProfitabilityQueryOptions, getInvoiceActionLedgerQueryOptions, getInvoiceAttachmentsQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceFxRateQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoiceNumberSeriesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPaymentSessionActionLedgerQueryOptions, getPaymentSessionsQueryOptions, getProductProfitabilityQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierInvoiceAttachmentsQueryOptions, getSupplierInvoicePaymentsQueryOptions, getSupplierInvoiceQueryOptions, getSupplierInvoicesQueryOptions, getSupplierPaymentsQueryOptions, getTravelerProfitabilityQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
|
|
10
|
+
export * from "./schemas.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,YAAY,EACV,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,qBAAqB,CAAA;AAC5B,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,gBAAgB,EAChB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,mCAAmC,EACnC,uBAAuB,EACvB,KAAK,kBAAkB,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,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,qCAAqC,EAC1C,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,iCAAiC,EACjC,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,sCAAsC,EACtC,6BAA6B,EAC7B,qCAAqC,EACrC,kCAAkC,EAClC,iCAAiC,EACjC,iCAAiC,EACjC,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,EAC3B,kCAAkC,EAClC,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,yCAAyC,EACzC,8BAA8B,EAC9B,mCAAmC,EACnC,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,+CAA+C,EAC/C,mCAAmC,EACnC,yCAAyC,EACzC,sCAAsC,EACtC,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,oCAAoC,EACpC,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./checkout-hooks/index.js";
|
|
2
|
+
export * from "./checkout-i18n/index.js";
|
|
3
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, withQueryParams, } from "./client.js";
|
|
4
|
+
export * from "./hooks/index.js";
|
|
5
|
+
export { getAdminBookingPayments, getInvoiceFxRate, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, listInvoiceActionLedger, listPaymentSessionActionLedger, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
|
|
6
|
+
export { useVoyantFinanceContext, VoyantFinanceProvider, } from "./provider.js";
|
|
7
|
+
export { financeQueryKeys, } from "./query-keys.js";
|
|
8
|
+
export { getAccountantInvoicesQueryOptions, getAccountantSharesQueryOptions, getAccountantSummaryQueryOptions, getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getCostCategoriesQueryOptions, getDepartureProfitabilityQueryOptions, getInvoiceActionLedgerQueryOptions, getInvoiceAttachmentsQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceFxRateQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoiceNumberSeriesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPaymentSessionActionLedgerQueryOptions, getPaymentSessionsQueryOptions, getProductProfitabilityQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierInvoiceAttachmentsQueryOptions, getSupplierInvoicePaymentsQueryOptions, getSupplierInvoiceQueryOptions, getSupplierInvoicesQueryOptions, getSupplierPaymentsQueryOptions, getTravelerProfitabilityQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
|
|
9
|
+
export * from "./schemas.js";
|
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import type { FinanceActionLedgerListCursor } from "./query-keys.js";
|
|
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 interface InvoiceFxRateInput {
|
|
9
|
+
baseCurrency: string;
|
|
10
|
+
quoteCurrency: string;
|
|
11
|
+
date?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare function listInvoiceActionLedger(client: FetchWithValidationOptions, invoiceId: string, input?: FinanceActionLedgerListInput): Promise<{
|
|
14
|
+
data: {
|
|
15
|
+
id: string;
|
|
16
|
+
occurredAt: string;
|
|
17
|
+
actionName: string;
|
|
18
|
+
actionVersion: string;
|
|
19
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
20
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
21
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
22
|
+
actorType: string | null;
|
|
23
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
24
|
+
principalId: string;
|
|
25
|
+
principalSubtype: string | null;
|
|
26
|
+
sessionId: string | null;
|
|
27
|
+
apiTokenId: string | null;
|
|
28
|
+
internalRequest: boolean;
|
|
29
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
30
|
+
delegatedByPrincipalId: string | null;
|
|
31
|
+
delegationId: string | null;
|
|
32
|
+
callerType: string | null;
|
|
33
|
+
organizationId: string | null;
|
|
34
|
+
routeOrToolName: string | null;
|
|
35
|
+
workflowRunId: string | null;
|
|
36
|
+
workflowStepId: string | null;
|
|
37
|
+
correlationId: string | null;
|
|
38
|
+
causationActionId: string | null;
|
|
39
|
+
idempotencyScope: string | null;
|
|
40
|
+
idempotencyKey: string | null;
|
|
41
|
+
idempotencyFingerprint: string | null;
|
|
42
|
+
targetType: string;
|
|
43
|
+
targetId: string;
|
|
44
|
+
capabilityId: string | null;
|
|
45
|
+
capabilityVersion: string | null;
|
|
46
|
+
authorizationSource: string | null;
|
|
47
|
+
approvalId: string | null;
|
|
48
|
+
amendsActionId: string | null;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
mutationSummary: string | null;
|
|
51
|
+
}[];
|
|
52
|
+
pageInfo: {
|
|
53
|
+
nextCursor: {
|
|
54
|
+
occurredAt: string;
|
|
55
|
+
id: string;
|
|
56
|
+
} | null;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
export declare function listPaymentSessionActionLedger(client: FetchWithValidationOptions, paymentSessionId: string, input?: FinanceActionLedgerListInput): Promise<{
|
|
60
|
+
data: {
|
|
61
|
+
id: string;
|
|
62
|
+
occurredAt: string;
|
|
63
|
+
actionName: string;
|
|
64
|
+
actionVersion: string;
|
|
65
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
66
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
67
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
68
|
+
actorType: string | null;
|
|
69
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
70
|
+
principalId: string;
|
|
71
|
+
principalSubtype: string | null;
|
|
72
|
+
sessionId: string | null;
|
|
73
|
+
apiTokenId: string | null;
|
|
74
|
+
internalRequest: boolean;
|
|
75
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
76
|
+
delegatedByPrincipalId: string | null;
|
|
77
|
+
delegationId: string | null;
|
|
78
|
+
callerType: string | null;
|
|
79
|
+
organizationId: string | null;
|
|
80
|
+
routeOrToolName: string | null;
|
|
81
|
+
workflowRunId: string | null;
|
|
82
|
+
workflowStepId: string | null;
|
|
83
|
+
correlationId: string | null;
|
|
84
|
+
causationActionId: string | null;
|
|
85
|
+
idempotencyScope: string | null;
|
|
86
|
+
idempotencyKey: string | null;
|
|
87
|
+
idempotencyFingerprint: string | null;
|
|
88
|
+
targetType: string;
|
|
89
|
+
targetId: string;
|
|
90
|
+
capabilityId: string | null;
|
|
91
|
+
capabilityVersion: string | null;
|
|
92
|
+
authorizationSource: string | null;
|
|
93
|
+
approvalId: string | null;
|
|
94
|
+
amendsActionId: string | null;
|
|
95
|
+
createdAt: string;
|
|
96
|
+
mutationSummary: string | null;
|
|
97
|
+
}[];
|
|
98
|
+
pageInfo: {
|
|
99
|
+
nextCursor: {
|
|
100
|
+
occurredAt: string;
|
|
101
|
+
id: string;
|
|
102
|
+
} | null;
|
|
103
|
+
};
|
|
104
|
+
}>;
|
|
105
|
+
export declare function getPublicFinanceDocumentByReference(client: FetchWithValidationOptions, query: PublicFinanceDocumentLookupQuery): Promise<{
|
|
106
|
+
data: {
|
|
107
|
+
invoiceId: string;
|
|
108
|
+
invoiceNumber: string;
|
|
109
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
110
|
+
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
|
|
111
|
+
currency: string;
|
|
112
|
+
totalCents: number;
|
|
113
|
+
paidCents: number;
|
|
114
|
+
balanceDueCents: number;
|
|
115
|
+
issueDate: string;
|
|
116
|
+
dueDate: string;
|
|
117
|
+
renditionId: string | null;
|
|
118
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
119
|
+
format: "pdf" | "html" | "xml" | "json" | null;
|
|
120
|
+
language: string | null;
|
|
121
|
+
generatedAt: string | null;
|
|
122
|
+
fileSize: number | null;
|
|
123
|
+
checksum: string | null;
|
|
124
|
+
downloadUrl: string | null;
|
|
125
|
+
bookingId: string;
|
|
126
|
+
};
|
|
127
|
+
}>;
|
|
128
|
+
export declare function getPublicBookingDocuments(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
129
|
+
data: {
|
|
130
|
+
bookingId: string;
|
|
131
|
+
documents: {
|
|
132
|
+
invoiceId: string;
|
|
133
|
+
invoiceNumber: string;
|
|
134
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
135
|
+
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
|
|
136
|
+
currency: string;
|
|
137
|
+
totalCents: number;
|
|
138
|
+
paidCents: number;
|
|
139
|
+
balanceDueCents: number;
|
|
140
|
+
issueDate: string;
|
|
141
|
+
dueDate: string;
|
|
142
|
+
renditionId: string | null;
|
|
143
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
144
|
+
format: "pdf" | "html" | "xml" | "json" | null;
|
|
145
|
+
language: string | null;
|
|
146
|
+
generatedAt: string | null;
|
|
147
|
+
fileSize: number | null;
|
|
148
|
+
checksum: string | null;
|
|
149
|
+
downloadUrl: string | null;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
}>;
|
|
153
|
+
export declare function getPublicBookingPayments(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
154
|
+
data: {
|
|
155
|
+
bookingId: string;
|
|
156
|
+
payments: {
|
|
157
|
+
id: string;
|
|
158
|
+
invoiceId: string;
|
|
159
|
+
invoiceNumber: string;
|
|
160
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
161
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
162
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
163
|
+
amountCents: number;
|
|
164
|
+
currency: string;
|
|
165
|
+
baseCurrency: string | null;
|
|
166
|
+
baseAmountCents: number | null;
|
|
167
|
+
paymentDate: string;
|
|
168
|
+
referenceNumber: string | null;
|
|
169
|
+
notes: string | null;
|
|
170
|
+
}[];
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Admin variant — same response shape as `getPublicBookingPayments`,
|
|
175
|
+
* but hits the admin endpoint (`/v1/admin/finance/bookings/:id/payments`)
|
|
176
|
+
* so a staff actor can read it. The customer-portal continues to use
|
|
177
|
+
* the public path; the operator dashboard uses this one.
|
|
178
|
+
*/
|
|
179
|
+
export declare function getAdminBookingPayments(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
180
|
+
data: {
|
|
181
|
+
bookingId: string;
|
|
182
|
+
payments: {
|
|
183
|
+
id: string;
|
|
184
|
+
invoiceId: string;
|
|
185
|
+
invoiceNumber: string;
|
|
186
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
187
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
188
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
189
|
+
amountCents: number;
|
|
190
|
+
currency: string;
|
|
191
|
+
baseCurrency: string | null;
|
|
192
|
+
baseAmountCents: number | null;
|
|
193
|
+
paymentDate: string;
|
|
194
|
+
referenceNumber: string | null;
|
|
195
|
+
notes: string | null;
|
|
196
|
+
}[];
|
|
197
|
+
};
|
|
198
|
+
}>;
|
|
199
|
+
export declare function getInvoiceFxRate(client: FetchWithValidationOptions, input: InvoiceFxRateInput): Promise<{
|
|
200
|
+
data: {
|
|
201
|
+
baseCurrency: string;
|
|
202
|
+
quoteCurrency: string;
|
|
203
|
+
rate: number;
|
|
204
|
+
fxCommissionBps: number;
|
|
205
|
+
effectiveRate: number;
|
|
206
|
+
date?: string | undefined;
|
|
207
|
+
source?: string | undefined;
|
|
208
|
+
quotedAt?: string | undefined;
|
|
209
|
+
validUntil?: string | undefined;
|
|
210
|
+
fxCommissionInvoiceMention?: string | undefined;
|
|
211
|
+
};
|
|
212
|
+
}>;
|
|
213
|
+
export declare function getPublicBookingPaymentOptions(client: FetchWithValidationOptions, bookingId: string, filters?: {
|
|
214
|
+
personId?: string;
|
|
215
|
+
organizationId?: string;
|
|
216
|
+
provider?: string;
|
|
217
|
+
instrumentType?: string;
|
|
218
|
+
includeInactive?: boolean;
|
|
219
|
+
}): Promise<{
|
|
220
|
+
data: {
|
|
221
|
+
bookingId: string;
|
|
222
|
+
accounts: {
|
|
223
|
+
id: string;
|
|
224
|
+
label: string;
|
|
225
|
+
provider: string | null;
|
|
226
|
+
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
|
|
227
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
228
|
+
brand: string | null;
|
|
229
|
+
last4: string | null;
|
|
230
|
+
expiryMonth: number | null;
|
|
231
|
+
expiryYear: number | null;
|
|
232
|
+
isDefault: boolean;
|
|
233
|
+
}[];
|
|
234
|
+
schedules: {
|
|
235
|
+
id: string;
|
|
236
|
+
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
237
|
+
status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
|
|
238
|
+
dueDate: string;
|
|
239
|
+
currency: string;
|
|
240
|
+
amountCents: number;
|
|
241
|
+
notes: string | null;
|
|
242
|
+
}[];
|
|
243
|
+
guarantees: {
|
|
244
|
+
id: string;
|
|
245
|
+
bookingPaymentScheduleId: string | null;
|
|
246
|
+
guaranteeType: string;
|
|
247
|
+
status: string;
|
|
248
|
+
currency: string | null;
|
|
249
|
+
amountCents: number | null;
|
|
250
|
+
provider: string | null;
|
|
251
|
+
referenceNumber: string | null;
|
|
252
|
+
expiresAt: string | null;
|
|
253
|
+
notes: string | null;
|
|
254
|
+
}[];
|
|
255
|
+
recommendedTarget: {
|
|
256
|
+
targetType: "booking_payment_schedule" | "booking_guarantee" | null;
|
|
257
|
+
targetId: string | null;
|
|
258
|
+
} | null;
|
|
259
|
+
};
|
|
260
|
+
}>;
|
|
261
|
+
export declare function getPublicPaymentSession(client: FetchWithValidationOptions, sessionId: string): Promise<{
|
|
262
|
+
data: {
|
|
263
|
+
legacyOrderId: string | null;
|
|
264
|
+
target: {
|
|
265
|
+
type: "booking";
|
|
266
|
+
bookingId: string;
|
|
267
|
+
} | {
|
|
268
|
+
type: "invoice";
|
|
269
|
+
invoiceId: string;
|
|
270
|
+
} | {
|
|
271
|
+
type: "booking_payment_schedule";
|
|
272
|
+
bookingPaymentScheduleId: string;
|
|
273
|
+
} | {
|
|
274
|
+
type: "booking_guarantee";
|
|
275
|
+
bookingGuaranteeId: string;
|
|
276
|
+
} | {
|
|
277
|
+
type: "flight_order";
|
|
278
|
+
flightOrderId: string;
|
|
279
|
+
} | {
|
|
280
|
+
type: "program";
|
|
281
|
+
programId: string;
|
|
282
|
+
} | {
|
|
283
|
+
type: "supplier_settlement";
|
|
284
|
+
supplierSettlementId: string;
|
|
285
|
+
} | {
|
|
286
|
+
type: "channel_settlement";
|
|
287
|
+
channelSettlementId: string;
|
|
288
|
+
} | {
|
|
289
|
+
type: "provider_reference";
|
|
290
|
+
provider: string;
|
|
291
|
+
reference: string;
|
|
292
|
+
} | {
|
|
293
|
+
type: "legacy_order";
|
|
294
|
+
legacyOrderId: string;
|
|
295
|
+
} | null;
|
|
296
|
+
provenance: {
|
|
297
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
298
|
+
provider?: string | null | undefined;
|
|
299
|
+
reference?: string | null | undefined;
|
|
300
|
+
idempotencyKey?: string | null | undefined;
|
|
301
|
+
} | null;
|
|
302
|
+
id: string;
|
|
303
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
304
|
+
targetId: string | null;
|
|
305
|
+
bookingId: string | null;
|
|
306
|
+
invoiceId: string | null;
|
|
307
|
+
bookingPaymentScheduleId: string | null;
|
|
308
|
+
bookingGuaranteeId: string | null;
|
|
309
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
310
|
+
provider: string | null;
|
|
311
|
+
providerSessionId: string | null;
|
|
312
|
+
providerPaymentId: string | null;
|
|
313
|
+
externalReference: string | null;
|
|
314
|
+
clientReference: string | null;
|
|
315
|
+
currency: string;
|
|
316
|
+
amountCents: number;
|
|
317
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
318
|
+
payerEmail: string | null;
|
|
319
|
+
payerName: string | null;
|
|
320
|
+
redirectUrl: string | null;
|
|
321
|
+
returnUrl: string | null;
|
|
322
|
+
cancelUrl: string | null;
|
|
323
|
+
expiresAt: string | null;
|
|
324
|
+
completedAt: string | null;
|
|
325
|
+
failureCode: string | null;
|
|
326
|
+
failureMessage: string | null;
|
|
327
|
+
notes: string | null;
|
|
328
|
+
};
|
|
329
|
+
}>;
|
|
330
|
+
export declare function startPublicBookingSchedulePaymentSession(client: FetchWithValidationOptions, bookingId: string, scheduleId: string, input: PublicStartPaymentSessionInput): Promise<{
|
|
331
|
+
data: {
|
|
332
|
+
legacyOrderId: string | null;
|
|
333
|
+
target: {
|
|
334
|
+
type: "booking";
|
|
335
|
+
bookingId: string;
|
|
336
|
+
} | {
|
|
337
|
+
type: "invoice";
|
|
338
|
+
invoiceId: string;
|
|
339
|
+
} | {
|
|
340
|
+
type: "booking_payment_schedule";
|
|
341
|
+
bookingPaymentScheduleId: string;
|
|
342
|
+
} | {
|
|
343
|
+
type: "booking_guarantee";
|
|
344
|
+
bookingGuaranteeId: string;
|
|
345
|
+
} | {
|
|
346
|
+
type: "flight_order";
|
|
347
|
+
flightOrderId: string;
|
|
348
|
+
} | {
|
|
349
|
+
type: "program";
|
|
350
|
+
programId: string;
|
|
351
|
+
} | {
|
|
352
|
+
type: "supplier_settlement";
|
|
353
|
+
supplierSettlementId: string;
|
|
354
|
+
} | {
|
|
355
|
+
type: "channel_settlement";
|
|
356
|
+
channelSettlementId: string;
|
|
357
|
+
} | {
|
|
358
|
+
type: "provider_reference";
|
|
359
|
+
provider: string;
|
|
360
|
+
reference: string;
|
|
361
|
+
} | {
|
|
362
|
+
type: "legacy_order";
|
|
363
|
+
legacyOrderId: string;
|
|
364
|
+
} | null;
|
|
365
|
+
provenance: {
|
|
366
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
367
|
+
provider?: string | null | undefined;
|
|
368
|
+
reference?: string | null | undefined;
|
|
369
|
+
idempotencyKey?: string | null | undefined;
|
|
370
|
+
} | null;
|
|
371
|
+
id: string;
|
|
372
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
373
|
+
targetId: string | null;
|
|
374
|
+
bookingId: string | null;
|
|
375
|
+
invoiceId: string | null;
|
|
376
|
+
bookingPaymentScheduleId: string | null;
|
|
377
|
+
bookingGuaranteeId: string | null;
|
|
378
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
379
|
+
provider: string | null;
|
|
380
|
+
providerSessionId: string | null;
|
|
381
|
+
providerPaymentId: string | null;
|
|
382
|
+
externalReference: string | null;
|
|
383
|
+
clientReference: string | null;
|
|
384
|
+
currency: string;
|
|
385
|
+
amountCents: number;
|
|
386
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
387
|
+
payerEmail: string | null;
|
|
388
|
+
payerName: string | null;
|
|
389
|
+
redirectUrl: string | null;
|
|
390
|
+
returnUrl: string | null;
|
|
391
|
+
cancelUrl: string | null;
|
|
392
|
+
expiresAt: string | null;
|
|
393
|
+
completedAt: string | null;
|
|
394
|
+
failureCode: string | null;
|
|
395
|
+
failureMessage: string | null;
|
|
396
|
+
notes: string | null;
|
|
397
|
+
};
|
|
398
|
+
}>;
|
|
399
|
+
export declare function startPublicBookingGuaranteePaymentSession(client: FetchWithValidationOptions, bookingId: string, guaranteeId: string, input: PublicStartPaymentSessionInput): Promise<{
|
|
400
|
+
data: {
|
|
401
|
+
legacyOrderId: string | null;
|
|
402
|
+
target: {
|
|
403
|
+
type: "booking";
|
|
404
|
+
bookingId: string;
|
|
405
|
+
} | {
|
|
406
|
+
type: "invoice";
|
|
407
|
+
invoiceId: string;
|
|
408
|
+
} | {
|
|
409
|
+
type: "booking_payment_schedule";
|
|
410
|
+
bookingPaymentScheduleId: string;
|
|
411
|
+
} | {
|
|
412
|
+
type: "booking_guarantee";
|
|
413
|
+
bookingGuaranteeId: string;
|
|
414
|
+
} | {
|
|
415
|
+
type: "flight_order";
|
|
416
|
+
flightOrderId: string;
|
|
417
|
+
} | {
|
|
418
|
+
type: "program";
|
|
419
|
+
programId: string;
|
|
420
|
+
} | {
|
|
421
|
+
type: "supplier_settlement";
|
|
422
|
+
supplierSettlementId: string;
|
|
423
|
+
} | {
|
|
424
|
+
type: "channel_settlement";
|
|
425
|
+
channelSettlementId: string;
|
|
426
|
+
} | {
|
|
427
|
+
type: "provider_reference";
|
|
428
|
+
provider: string;
|
|
429
|
+
reference: string;
|
|
430
|
+
} | {
|
|
431
|
+
type: "legacy_order";
|
|
432
|
+
legacyOrderId: string;
|
|
433
|
+
} | null;
|
|
434
|
+
provenance: {
|
|
435
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
436
|
+
provider?: string | null | undefined;
|
|
437
|
+
reference?: string | null | undefined;
|
|
438
|
+
idempotencyKey?: string | null | undefined;
|
|
439
|
+
} | null;
|
|
440
|
+
id: string;
|
|
441
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
442
|
+
targetId: string | null;
|
|
443
|
+
bookingId: string | null;
|
|
444
|
+
invoiceId: string | null;
|
|
445
|
+
bookingPaymentScheduleId: string | null;
|
|
446
|
+
bookingGuaranteeId: string | null;
|
|
447
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
448
|
+
provider: string | null;
|
|
449
|
+
providerSessionId: string | null;
|
|
450
|
+
providerPaymentId: string | null;
|
|
451
|
+
externalReference: string | null;
|
|
452
|
+
clientReference: string | null;
|
|
453
|
+
currency: string;
|
|
454
|
+
amountCents: number;
|
|
455
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
456
|
+
payerEmail: string | null;
|
|
457
|
+
payerName: string | null;
|
|
458
|
+
redirectUrl: string | null;
|
|
459
|
+
returnUrl: string | null;
|
|
460
|
+
cancelUrl: string | null;
|
|
461
|
+
expiresAt: string | null;
|
|
462
|
+
completedAt: string | null;
|
|
463
|
+
failureCode: string | null;
|
|
464
|
+
failureMessage: string | null;
|
|
465
|
+
notes: string | null;
|
|
466
|
+
};
|
|
467
|
+
}>;
|
|
468
|
+
export declare function validatePublicVoucher(client: FetchWithValidationOptions, input: PublicValidateVoucherInput): Promise<{
|
|
469
|
+
data: {
|
|
470
|
+
valid: boolean;
|
|
471
|
+
reason: "expired" | "inactive" | "not_found" | "not_started" | "booking_mismatch" | "currency_mismatch" | "insufficient_balance" | null;
|
|
472
|
+
voucher: {
|
|
473
|
+
id: string;
|
|
474
|
+
code: string;
|
|
475
|
+
label: string | null;
|
|
476
|
+
provider: string | null;
|
|
477
|
+
currency: string | null;
|
|
478
|
+
amountCents: number | null;
|
|
479
|
+
remainingAmountCents: number | null;
|
|
480
|
+
expiresAt: string | null;
|
|
481
|
+
} | null;
|
|
482
|
+
};
|
|
483
|
+
}>;
|
|
484
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAGL,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAOhC,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AAUD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUzC;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,gBAAgB,EAAE,MAAM,EACxB,KAAK,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUzC;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;;GAOxC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;GAM9F;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;GAM7F;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;GAM5F;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,EAAE,kBAAkB;;;;;;;;;;;;;GAM7F;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOF;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM5F;AAED,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC;AAED,wBAAgB,yCAAyC,CACvD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,0BAA0B;;;;;;;;;;;;;;;GAQlC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { fetchWithValidation, withQueryParams } from "./client.js";
|
|
3
|
+
import { financeActionLedgerListResponse, invoiceFxRateResponse, publicBookingFinanceDocumentsResponse, publicBookingFinancePaymentsResponse, publicBookingPaymentOptionsResponse, publicFinanceDocumentLookupResponse, publicPaymentSessionResponse, publicVoucherValidationResponse, } from "./schemas.js";
|
|
4
|
+
function toFinanceActionLedgerQuery(input) {
|
|
5
|
+
return {
|
|
6
|
+
cursorOccurredAt: input?.cursor?.occurredAt,
|
|
7
|
+
cursorId: input?.cursor?.id,
|
|
8
|
+
limit: input?.limit,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export function listInvoiceActionLedger(client, invoiceId, input = {}) {
|
|
12
|
+
return fetchWithValidation(withQueryParams(`/v1/admin/finance/invoices/${invoiceId}/action-ledger`, toFinanceActionLedgerQuery(input)), financeActionLedgerListResponse, client);
|
|
13
|
+
}
|
|
14
|
+
export function listPaymentSessionActionLedger(client, paymentSessionId, input = {}) {
|
|
15
|
+
return fetchWithValidation(withQueryParams(`/v1/admin/finance/payment-sessions/${paymentSessionId}/action-ledger`, toFinanceActionLedgerQuery(input)), financeActionLedgerListResponse, client);
|
|
16
|
+
}
|
|
17
|
+
export function getPublicFinanceDocumentByReference(client, query) {
|
|
18
|
+
return fetchWithValidation(withQueryParams("/v1/public/finance/documents/by-reference", query), publicFinanceDocumentLookupResponse, client);
|
|
19
|
+
}
|
|
20
|
+
export function getPublicBookingDocuments(client, bookingId) {
|
|
21
|
+
return fetchWithValidation(`/v1/public/finance/bookings/${bookingId}/documents`, publicBookingFinanceDocumentsResponse, client);
|
|
22
|
+
}
|
|
23
|
+
export function getPublicBookingPayments(client, bookingId) {
|
|
24
|
+
return fetchWithValidation(`/v1/public/finance/bookings/${bookingId}/payments`, publicBookingFinancePaymentsResponse, client);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Admin variant — same response shape as `getPublicBookingPayments`,
|
|
28
|
+
* but hits the admin endpoint (`/v1/admin/finance/bookings/:id/payments`)
|
|
29
|
+
* so a staff actor can read it. The customer-portal continues to use
|
|
30
|
+
* the public path; the operator dashboard uses this one.
|
|
31
|
+
*/
|
|
32
|
+
export function getAdminBookingPayments(client, bookingId) {
|
|
33
|
+
return fetchWithValidation(`/v1/admin/finance/bookings/${bookingId}/payments`, publicBookingFinancePaymentsResponse, client);
|
|
34
|
+
}
|
|
35
|
+
export function getInvoiceFxRate(client, input) {
|
|
36
|
+
return fetchWithValidation(withQueryParams("/v1/admin/finance/invoice-fx-rate", input), invoiceFxRateResponse, client);
|
|
37
|
+
}
|
|
38
|
+
export function getPublicBookingPaymentOptions(client, bookingId, filters) {
|
|
39
|
+
return fetchWithValidation(withQueryParams(`/v1/public/finance/bookings/${bookingId}/payment-options`, filters), publicBookingPaymentOptionsResponse, client);
|
|
40
|
+
}
|
|
41
|
+
export function getPublicPaymentSession(client, sessionId) {
|
|
42
|
+
return fetchWithValidation(`/v1/public/finance/payment-sessions/${sessionId}`, publicPaymentSessionResponse, client);
|
|
43
|
+
}
|
|
44
|
+
export function startPublicBookingSchedulePaymentSession(client, bookingId, scheduleId, input) {
|
|
45
|
+
return fetchWithValidation(`/v1/public/finance/bookings/${bookingId}/payment-schedules/${scheduleId}/payment-session`, publicPaymentSessionResponse, client, { method: "POST", body: JSON.stringify(input) });
|
|
46
|
+
}
|
|
47
|
+
export function startPublicBookingGuaranteePaymentSession(client, bookingId, guaranteeId, input) {
|
|
48
|
+
return fetchWithValidation(`/v1/public/finance/bookings/${bookingId}/guarantees/${guaranteeId}/payment-session`, publicPaymentSessionResponse, client, { method: "POST", body: JSON.stringify(input) });
|
|
49
|
+
}
|
|
50
|
+
export function validatePublicVoucher(client, input) {
|
|
51
|
+
return fetchWithValidation("/v1/public/finance/vouchers/validate", publicVoucherValidationResponse, client, { method: "POST", body: JSON.stringify(input) });
|
|
52
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantFinanceContext, type VoyantReactContextValue as VoyantFinanceContextValue, VoyantReactProvider as VoyantFinanceProvider, type VoyantReactProviderProps as VoyantFinanceProviderProps, } from "@voyant-travel/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,uBAAuB,EAChD,KAAK,uBAAuB,IAAI,yBAAyB,EACzD,mBAAmB,IAAI,qBAAqB,EAC5C,KAAK,wBAAwB,IAAI,0BAA0B,GAC5D,MAAM,sBAAsB,CAAA"}
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantFinanceContext, VoyantReactProvider as VoyantFinanceProvider, } from "@voyant-travel/react";
|