@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,481 @@
|
|
|
1
|
+
import { publicBookingFinanceDocumentsSchema, publicBookingFinancePaymentsSchema, publicBookingPaymentOptionsSchema, publicFinanceBookingDocumentSchema, publicFinanceBookingPaymentSchema, publicFinanceDocumentLookupQuerySchema, publicFinanceDocumentLookupSchema, publicPaymentOptionsQuerySchema, publicPaymentSessionSchema, publicStartPaymentSessionSchema, publicValidateVoucherSchema, publicVoucherValidationSchema } from "@voyant-travel/finance/public-validation";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
export { publicBookingFinanceDocumentsSchema, publicBookingFinancePaymentsSchema, publicBookingPaymentOptionsSchema, publicFinanceBookingDocumentSchema, publicFinanceBookingPaymentSchema, publicFinanceDocumentLookupQuerySchema, publicFinanceDocumentLookupSchema, publicPaymentOptionsQuerySchema, publicPaymentSessionSchema, publicStartPaymentSessionSchema, publicValidateVoucherSchema, publicVoucherValidationSchema, };
|
|
4
|
+
export declare const publicBookingPaymentOptionsResponse: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
bookingId: z.ZodString;
|
|
7
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
label: z.ZodString;
|
|
10
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
11
|
+
instrumentType: z.ZodEnum<{
|
|
12
|
+
credit_card: "credit_card";
|
|
13
|
+
debit_card: "debit_card";
|
|
14
|
+
cash: "cash";
|
|
15
|
+
wallet: "wallet";
|
|
16
|
+
direct_bill: "direct_bill";
|
|
17
|
+
voucher: "voucher";
|
|
18
|
+
other: "other";
|
|
19
|
+
bank_account: "bank_account";
|
|
20
|
+
}>;
|
|
21
|
+
status: z.ZodEnum<{
|
|
22
|
+
expired: "expired";
|
|
23
|
+
active: "active";
|
|
24
|
+
inactive: "inactive";
|
|
25
|
+
revoked: "revoked";
|
|
26
|
+
failed_verification: "failed_verification";
|
|
27
|
+
}>;
|
|
28
|
+
brand: z.ZodNullable<z.ZodString>;
|
|
29
|
+
last4: z.ZodNullable<z.ZodString>;
|
|
30
|
+
expiryMonth: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
expiryYear: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
isDefault: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
schedules: z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
scheduleType: z.ZodEnum<{
|
|
37
|
+
other: "other";
|
|
38
|
+
deposit: "deposit";
|
|
39
|
+
installment: "installment";
|
|
40
|
+
balance: "balance";
|
|
41
|
+
hold: "hold";
|
|
42
|
+
}>;
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
paid: "paid";
|
|
45
|
+
pending: "pending";
|
|
46
|
+
cancelled: "cancelled";
|
|
47
|
+
expired: "expired";
|
|
48
|
+
due: "due";
|
|
49
|
+
waived: "waived";
|
|
50
|
+
}>;
|
|
51
|
+
dueDate: z.ZodString;
|
|
52
|
+
currency: z.ZodString;
|
|
53
|
+
amountCents: z.ZodNumber;
|
|
54
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
guarantees: z.ZodArray<z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
bookingPaymentScheduleId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
guaranteeType: z.ZodString;
|
|
60
|
+
status: z.ZodString;
|
|
61
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
62
|
+
amountCents: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
64
|
+
referenceNumber: z.ZodNullable<z.ZodString>;
|
|
65
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
66
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
recommendedTarget: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
targetType: z.ZodNullable<z.ZodEnum<{
|
|
70
|
+
booking_payment_schedule: "booking_payment_schedule";
|
|
71
|
+
booking_guarantee: "booking_guarantee";
|
|
72
|
+
}>>;
|
|
73
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const publicBookingFinanceDocumentsResponse: z.ZodObject<{
|
|
78
|
+
data: z.ZodObject<{
|
|
79
|
+
bookingId: z.ZodString;
|
|
80
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
81
|
+
invoiceId: z.ZodString;
|
|
82
|
+
invoiceNumber: z.ZodString;
|
|
83
|
+
invoiceType: z.ZodEnum<{
|
|
84
|
+
invoice: "invoice";
|
|
85
|
+
proforma: "proforma";
|
|
86
|
+
credit_note: "credit_note";
|
|
87
|
+
}>;
|
|
88
|
+
invoiceStatus: z.ZodEnum<{
|
|
89
|
+
draft: "draft";
|
|
90
|
+
pending_external_allocation: "pending_external_allocation";
|
|
91
|
+
issued: "issued";
|
|
92
|
+
partially_paid: "partially_paid";
|
|
93
|
+
paid: "paid";
|
|
94
|
+
overdue: "overdue";
|
|
95
|
+
void: "void";
|
|
96
|
+
}>;
|
|
97
|
+
currency: z.ZodString;
|
|
98
|
+
totalCents: z.ZodNumber;
|
|
99
|
+
paidCents: z.ZodNumber;
|
|
100
|
+
balanceDueCents: z.ZodNumber;
|
|
101
|
+
issueDate: z.ZodString;
|
|
102
|
+
dueDate: z.ZodString;
|
|
103
|
+
renditionId: z.ZodNullable<z.ZodString>;
|
|
104
|
+
documentStatus: z.ZodEnum<{
|
|
105
|
+
pending: "pending";
|
|
106
|
+
failed: "failed";
|
|
107
|
+
ready: "ready";
|
|
108
|
+
stale: "stale";
|
|
109
|
+
missing: "missing";
|
|
110
|
+
}>;
|
|
111
|
+
format: z.ZodNullable<z.ZodEnum<{
|
|
112
|
+
pdf: "pdf";
|
|
113
|
+
html: "html";
|
|
114
|
+
xml: "xml";
|
|
115
|
+
json: "json";
|
|
116
|
+
}>>;
|
|
117
|
+
language: z.ZodNullable<z.ZodString>;
|
|
118
|
+
generatedAt: z.ZodNullable<z.ZodString>;
|
|
119
|
+
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
120
|
+
checksum: z.ZodNullable<z.ZodString>;
|
|
121
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const publicFinanceDocumentLookupResponse: z.ZodObject<{
|
|
126
|
+
data: z.ZodObject<{
|
|
127
|
+
invoiceId: z.ZodString;
|
|
128
|
+
invoiceNumber: z.ZodString;
|
|
129
|
+
invoiceType: z.ZodEnum<{
|
|
130
|
+
invoice: "invoice";
|
|
131
|
+
proforma: "proforma";
|
|
132
|
+
credit_note: "credit_note";
|
|
133
|
+
}>;
|
|
134
|
+
invoiceStatus: z.ZodEnum<{
|
|
135
|
+
draft: "draft";
|
|
136
|
+
pending_external_allocation: "pending_external_allocation";
|
|
137
|
+
issued: "issued";
|
|
138
|
+
partially_paid: "partially_paid";
|
|
139
|
+
paid: "paid";
|
|
140
|
+
overdue: "overdue";
|
|
141
|
+
void: "void";
|
|
142
|
+
}>;
|
|
143
|
+
currency: z.ZodString;
|
|
144
|
+
totalCents: z.ZodNumber;
|
|
145
|
+
paidCents: z.ZodNumber;
|
|
146
|
+
balanceDueCents: z.ZodNumber;
|
|
147
|
+
issueDate: z.ZodString;
|
|
148
|
+
dueDate: z.ZodString;
|
|
149
|
+
renditionId: z.ZodNullable<z.ZodString>;
|
|
150
|
+
documentStatus: z.ZodEnum<{
|
|
151
|
+
pending: "pending";
|
|
152
|
+
failed: "failed";
|
|
153
|
+
ready: "ready";
|
|
154
|
+
stale: "stale";
|
|
155
|
+
missing: "missing";
|
|
156
|
+
}>;
|
|
157
|
+
format: z.ZodNullable<z.ZodEnum<{
|
|
158
|
+
pdf: "pdf";
|
|
159
|
+
html: "html";
|
|
160
|
+
xml: "xml";
|
|
161
|
+
json: "json";
|
|
162
|
+
}>>;
|
|
163
|
+
language: z.ZodNullable<z.ZodString>;
|
|
164
|
+
generatedAt: z.ZodNullable<z.ZodString>;
|
|
165
|
+
fileSize: z.ZodNullable<z.ZodNumber>;
|
|
166
|
+
checksum: z.ZodNullable<z.ZodString>;
|
|
167
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
168
|
+
bookingId: z.ZodString;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const publicBookingFinancePaymentsResponse: z.ZodObject<{
|
|
172
|
+
data: z.ZodObject<{
|
|
173
|
+
bookingId: z.ZodString;
|
|
174
|
+
payments: z.ZodArray<z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
invoiceId: z.ZodString;
|
|
177
|
+
invoiceNumber: z.ZodString;
|
|
178
|
+
invoiceType: z.ZodEnum<{
|
|
179
|
+
invoice: "invoice";
|
|
180
|
+
proforma: "proforma";
|
|
181
|
+
credit_note: "credit_note";
|
|
182
|
+
}>;
|
|
183
|
+
status: z.ZodEnum<{
|
|
184
|
+
pending: "pending";
|
|
185
|
+
completed: "completed";
|
|
186
|
+
failed: "failed";
|
|
187
|
+
refunded: "refunded";
|
|
188
|
+
}>;
|
|
189
|
+
paymentMethod: z.ZodEnum<{
|
|
190
|
+
bank_transfer: "bank_transfer";
|
|
191
|
+
credit_card: "credit_card";
|
|
192
|
+
debit_card: "debit_card";
|
|
193
|
+
cash: "cash";
|
|
194
|
+
cheque: "cheque";
|
|
195
|
+
wallet: "wallet";
|
|
196
|
+
direct_bill: "direct_bill";
|
|
197
|
+
voucher: "voucher";
|
|
198
|
+
other: "other";
|
|
199
|
+
}>;
|
|
200
|
+
amountCents: z.ZodNumber;
|
|
201
|
+
currency: z.ZodString;
|
|
202
|
+
baseCurrency: z.ZodNullable<z.ZodString>;
|
|
203
|
+
baseAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
204
|
+
paymentDate: z.ZodString;
|
|
205
|
+
referenceNumber: z.ZodNullable<z.ZodString>;
|
|
206
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export declare const publicPaymentSessionResponse: z.ZodObject<{
|
|
211
|
+
data: z.ZodPipe<z.ZodObject<{
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"booking">;
|
|
215
|
+
bookingId: z.ZodString;
|
|
216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
+
type: z.ZodLiteral<"invoice">;
|
|
218
|
+
invoiceId: z.ZodString;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<"booking_payment_schedule">;
|
|
221
|
+
bookingPaymentScheduleId: z.ZodString;
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
type: z.ZodLiteral<"booking_guarantee">;
|
|
224
|
+
bookingGuaranteeId: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"flight_order">;
|
|
227
|
+
flightOrderId: z.ZodString;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
type: z.ZodLiteral<"program">;
|
|
230
|
+
programId: z.ZodString;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"supplier_settlement">;
|
|
233
|
+
supplierSettlementId: z.ZodString;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"channel_settlement">;
|
|
236
|
+
channelSettlementId: z.ZodString;
|
|
237
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
238
|
+
type: z.ZodLiteral<"provider_reference">;
|
|
239
|
+
provider: z.ZodString;
|
|
240
|
+
reference: z.ZodString;
|
|
241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
242
|
+
type: z.ZodLiteral<"legacy_order">;
|
|
243
|
+
legacyOrderId: z.ZodString;
|
|
244
|
+
}, z.core.$strip>], "type">>>;
|
|
245
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
246
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
247
|
+
other: "other";
|
|
248
|
+
operator: "operator";
|
|
249
|
+
storefront: "storefront";
|
|
250
|
+
customer_portal: "customer_portal";
|
|
251
|
+
payment_provider: "payment_provider";
|
|
252
|
+
supplier_channel: "supplier_channel";
|
|
253
|
+
migration: "migration";
|
|
254
|
+
}>>;
|
|
255
|
+
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
256
|
+
reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
257
|
+
idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
258
|
+
}, z.core.$strip>>>;
|
|
259
|
+
targetType: z.ZodEnum<{
|
|
260
|
+
other: "other";
|
|
261
|
+
booking: "booking";
|
|
262
|
+
order: "order";
|
|
263
|
+
invoice: "invoice";
|
|
264
|
+
booking_payment_schedule: "booking_payment_schedule";
|
|
265
|
+
booking_guarantee: "booking_guarantee";
|
|
266
|
+
flight_order: "flight_order";
|
|
267
|
+
}>;
|
|
268
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
269
|
+
bookingId: z.ZodNullable<z.ZodString>;
|
|
270
|
+
legacyOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
invoiceId: z.ZodNullable<z.ZodString>;
|
|
272
|
+
bookingPaymentScheduleId: z.ZodNullable<z.ZodString>;
|
|
273
|
+
bookingGuaranteeId: z.ZodNullable<z.ZodString>;
|
|
274
|
+
status: z.ZodEnum<{
|
|
275
|
+
paid: "paid";
|
|
276
|
+
pending: "pending";
|
|
277
|
+
failed: "failed";
|
|
278
|
+
requires_redirect: "requires_redirect";
|
|
279
|
+
processing: "processing";
|
|
280
|
+
authorized: "authorized";
|
|
281
|
+
cancelled: "cancelled";
|
|
282
|
+
expired: "expired";
|
|
283
|
+
}>;
|
|
284
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
285
|
+
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
286
|
+
providerPaymentId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
externalReference: z.ZodNullable<z.ZodString>;
|
|
288
|
+
clientReference: z.ZodNullable<z.ZodString>;
|
|
289
|
+
currency: z.ZodString;
|
|
290
|
+
amountCents: z.ZodNumber;
|
|
291
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
292
|
+
bank_transfer: "bank_transfer";
|
|
293
|
+
credit_card: "credit_card";
|
|
294
|
+
debit_card: "debit_card";
|
|
295
|
+
cash: "cash";
|
|
296
|
+
cheque: "cheque";
|
|
297
|
+
wallet: "wallet";
|
|
298
|
+
direct_bill: "direct_bill";
|
|
299
|
+
voucher: "voucher";
|
|
300
|
+
other: "other";
|
|
301
|
+
}>>;
|
|
302
|
+
payerEmail: z.ZodNullable<z.ZodString>;
|
|
303
|
+
payerName: z.ZodNullable<z.ZodString>;
|
|
304
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
305
|
+
returnUrl: z.ZodNullable<z.ZodString>;
|
|
306
|
+
cancelUrl: z.ZodNullable<z.ZodString>;
|
|
307
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
308
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
309
|
+
failureCode: z.ZodNullable<z.ZodString>;
|
|
310
|
+
failureMessage: z.ZodNullable<z.ZodString>;
|
|
311
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
312
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
313
|
+
legacyOrderId: string | null;
|
|
314
|
+
target: {
|
|
315
|
+
type: "booking";
|
|
316
|
+
bookingId: string;
|
|
317
|
+
} | {
|
|
318
|
+
type: "invoice";
|
|
319
|
+
invoiceId: string;
|
|
320
|
+
} | {
|
|
321
|
+
type: "booking_payment_schedule";
|
|
322
|
+
bookingPaymentScheduleId: string;
|
|
323
|
+
} | {
|
|
324
|
+
type: "booking_guarantee";
|
|
325
|
+
bookingGuaranteeId: string;
|
|
326
|
+
} | {
|
|
327
|
+
type: "flight_order";
|
|
328
|
+
flightOrderId: string;
|
|
329
|
+
} | {
|
|
330
|
+
type: "program";
|
|
331
|
+
programId: string;
|
|
332
|
+
} | {
|
|
333
|
+
type: "supplier_settlement";
|
|
334
|
+
supplierSettlementId: string;
|
|
335
|
+
} | {
|
|
336
|
+
type: "channel_settlement";
|
|
337
|
+
channelSettlementId: string;
|
|
338
|
+
} | {
|
|
339
|
+
type: "provider_reference";
|
|
340
|
+
provider: string;
|
|
341
|
+
reference: string;
|
|
342
|
+
} | {
|
|
343
|
+
type: "legacy_order";
|
|
344
|
+
legacyOrderId: string;
|
|
345
|
+
} | null;
|
|
346
|
+
provenance: {
|
|
347
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
348
|
+
provider?: string | null | undefined;
|
|
349
|
+
reference?: string | null | undefined;
|
|
350
|
+
idempotencyKey?: string | null | undefined;
|
|
351
|
+
} | null;
|
|
352
|
+
id: string;
|
|
353
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
354
|
+
targetId: string | null;
|
|
355
|
+
bookingId: string | null;
|
|
356
|
+
invoiceId: string | null;
|
|
357
|
+
bookingPaymentScheduleId: string | null;
|
|
358
|
+
bookingGuaranteeId: string | null;
|
|
359
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
360
|
+
provider: string | null;
|
|
361
|
+
providerSessionId: string | null;
|
|
362
|
+
providerPaymentId: string | null;
|
|
363
|
+
externalReference: string | null;
|
|
364
|
+
clientReference: string | null;
|
|
365
|
+
currency: string;
|
|
366
|
+
amountCents: number;
|
|
367
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
368
|
+
payerEmail: string | null;
|
|
369
|
+
payerName: string | null;
|
|
370
|
+
redirectUrl: string | null;
|
|
371
|
+
returnUrl: string | null;
|
|
372
|
+
cancelUrl: string | null;
|
|
373
|
+
expiresAt: string | null;
|
|
374
|
+
completedAt: string | null;
|
|
375
|
+
failureCode: string | null;
|
|
376
|
+
failureMessage: string | null;
|
|
377
|
+
notes: string | null;
|
|
378
|
+
}, {
|
|
379
|
+
id: string;
|
|
380
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
381
|
+
targetId: string | null;
|
|
382
|
+
bookingId: string | null;
|
|
383
|
+
invoiceId: string | null;
|
|
384
|
+
bookingPaymentScheduleId: string | null;
|
|
385
|
+
bookingGuaranteeId: string | null;
|
|
386
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
387
|
+
provider: string | null;
|
|
388
|
+
providerSessionId: string | null;
|
|
389
|
+
providerPaymentId: string | null;
|
|
390
|
+
externalReference: string | null;
|
|
391
|
+
clientReference: string | null;
|
|
392
|
+
currency: string;
|
|
393
|
+
amountCents: number;
|
|
394
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
395
|
+
payerEmail: string | null;
|
|
396
|
+
payerName: string | null;
|
|
397
|
+
redirectUrl: string | null;
|
|
398
|
+
returnUrl: string | null;
|
|
399
|
+
cancelUrl: string | null;
|
|
400
|
+
expiresAt: string | null;
|
|
401
|
+
completedAt: string | null;
|
|
402
|
+
failureCode: string | null;
|
|
403
|
+
failureMessage: string | null;
|
|
404
|
+
notes: string | null;
|
|
405
|
+
target?: {
|
|
406
|
+
type: "booking";
|
|
407
|
+
bookingId: string;
|
|
408
|
+
} | {
|
|
409
|
+
type: "invoice";
|
|
410
|
+
invoiceId: string;
|
|
411
|
+
} | {
|
|
412
|
+
type: "booking_payment_schedule";
|
|
413
|
+
bookingPaymentScheduleId: string;
|
|
414
|
+
} | {
|
|
415
|
+
type: "booking_guarantee";
|
|
416
|
+
bookingGuaranteeId: string;
|
|
417
|
+
} | {
|
|
418
|
+
type: "flight_order";
|
|
419
|
+
flightOrderId: string;
|
|
420
|
+
} | {
|
|
421
|
+
type: "program";
|
|
422
|
+
programId: string;
|
|
423
|
+
} | {
|
|
424
|
+
type: "supplier_settlement";
|
|
425
|
+
supplierSettlementId: string;
|
|
426
|
+
} | {
|
|
427
|
+
type: "channel_settlement";
|
|
428
|
+
channelSettlementId: string;
|
|
429
|
+
} | {
|
|
430
|
+
type: "provider_reference";
|
|
431
|
+
provider: string;
|
|
432
|
+
reference: string;
|
|
433
|
+
} | {
|
|
434
|
+
type: "legacy_order";
|
|
435
|
+
legacyOrderId: string;
|
|
436
|
+
} | null | undefined;
|
|
437
|
+
provenance?: {
|
|
438
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
439
|
+
provider?: string | null | undefined;
|
|
440
|
+
reference?: string | null | undefined;
|
|
441
|
+
idempotencyKey?: string | null | undefined;
|
|
442
|
+
} | null | undefined;
|
|
443
|
+
legacyOrderId?: string | null | undefined;
|
|
444
|
+
}>>;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
export declare const publicVoucherValidationResponse: z.ZodObject<{
|
|
447
|
+
data: z.ZodObject<{
|
|
448
|
+
valid: z.ZodBoolean;
|
|
449
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
450
|
+
expired: "expired";
|
|
451
|
+
inactive: "inactive";
|
|
452
|
+
not_found: "not_found";
|
|
453
|
+
not_started: "not_started";
|
|
454
|
+
booking_mismatch: "booking_mismatch";
|
|
455
|
+
currency_mismatch: "currency_mismatch";
|
|
456
|
+
insufficient_balance: "insufficient_balance";
|
|
457
|
+
}>>;
|
|
458
|
+
voucher: z.ZodNullable<z.ZodObject<{
|
|
459
|
+
id: z.ZodString;
|
|
460
|
+
code: z.ZodString;
|
|
461
|
+
label: z.ZodNullable<z.ZodString>;
|
|
462
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
463
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
464
|
+
amountCents: z.ZodNullable<z.ZodNumber>;
|
|
465
|
+
remainingAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
466
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
export type PublicBookingPaymentOptionsRecord = z.infer<typeof publicBookingPaymentOptionsSchema>;
|
|
471
|
+
export type PublicBookingFinanceDocumentsRecord = z.infer<typeof publicBookingFinanceDocumentsSchema>;
|
|
472
|
+
export type PublicFinanceDocumentLookupQuery = z.input<typeof publicFinanceDocumentLookupQuerySchema>;
|
|
473
|
+
export type PublicFinanceDocumentLookupRecord = z.infer<typeof publicFinanceDocumentLookupSchema>;
|
|
474
|
+
export type PublicBookingFinancePaymentsRecord = z.infer<typeof publicBookingFinancePaymentsSchema>;
|
|
475
|
+
export type PublicFinanceBookingDocumentRecord = z.infer<typeof publicFinanceBookingDocumentSchema>;
|
|
476
|
+
export type PublicFinanceBookingPaymentRecord = z.infer<typeof publicFinanceBookingPaymentSchema>;
|
|
477
|
+
export type PublicPaymentSessionRecord = z.infer<typeof publicPaymentSessionSchema>;
|
|
478
|
+
export type PublicStartPaymentSessionInput = z.input<typeof publicStartPaymentSessionSchema>;
|
|
479
|
+
export type PublicValidateVoucherInput = z.input<typeof publicValidateVoucherSchema>;
|
|
480
|
+
export type PublicVoucherValidationRecord = z.infer<typeof publicVoucherValidationSchema>;
|
|
481
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/schemas/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,iCAAiC,EACjC,sCAAsC,EACtC,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAI5B,OAAO,EACL,mCAAmC,EACnC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,iCAAiC,EACjC,sCAAsC,EACtC,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,GAC9B,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAoD,CAAA;AACpG,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjD,CAAA;AACD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAoD,CAAA;AACpG,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhD,CAAA;AACD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6C,CAAA;AACtF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;iBAAgD,CAAA;AAE5F,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AACnG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AACnG,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AACnF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAC5F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { publicBookingFinanceDocumentsSchema, publicBookingFinancePaymentsSchema, publicBookingPaymentOptionsSchema, publicFinanceBookingDocumentSchema, publicFinanceBookingPaymentSchema, publicFinanceDocumentLookupQuerySchema, publicFinanceDocumentLookupSchema, publicPaymentOptionsQuerySchema, publicPaymentSessionSchema, publicStartPaymentSessionSchema, publicValidateVoucherSchema, publicVoucherValidationSchema, } from "@voyant-travel/finance/public-validation";
|
|
2
|
+
import { singleEnvelope } from "./common.js";
|
|
3
|
+
export { publicBookingFinanceDocumentsSchema, publicBookingFinancePaymentsSchema, publicBookingPaymentOptionsSchema, publicFinanceBookingDocumentSchema, publicFinanceBookingPaymentSchema, publicFinanceDocumentLookupQuerySchema, publicFinanceDocumentLookupSchema, publicPaymentOptionsQuerySchema, publicPaymentSessionSchema, publicStartPaymentSessionSchema, publicValidateVoucherSchema, publicVoucherValidationSchema, };
|
|
4
|
+
export const publicBookingPaymentOptionsResponse = singleEnvelope(publicBookingPaymentOptionsSchema);
|
|
5
|
+
export const publicBookingFinanceDocumentsResponse = singleEnvelope(publicBookingFinanceDocumentsSchema);
|
|
6
|
+
export const publicFinanceDocumentLookupResponse = singleEnvelope(publicFinanceDocumentLookupSchema);
|
|
7
|
+
export const publicBookingFinancePaymentsResponse = singleEnvelope(publicBookingFinancePaymentsSchema);
|
|
8
|
+
export const publicPaymentSessionResponse = singleEnvelope(publicPaymentSessionSchema);
|
|
9
|
+
export const publicVoucherValidationResponse = singleEnvelope(publicVoucherValidationSchema);
|