2025-10-03 14:26:55 +09:00
|
|
|
/**
|
|
|
|
|
* Billing Domain
|
|
|
|
|
*
|
2025-10-08 10:33:33 +09:00
|
|
|
* Exports all billing-related contracts, schemas, and provider mappers.
|
2025-10-03 14:26:55 +09:00
|
|
|
*
|
2025-10-08 10:33:33 +09:00
|
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
2025-10-03 14:26:55 +09:00
|
|
|
*/
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Constants
|
2025-12-10 15:22:10 +09:00
|
|
|
export { INVOICE_STATUS } from "./contract.js";
|
|
|
|
|
export * from "./constants.js";
|
2025-10-03 14:26:55 +09:00
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Schemas (includes derived types)
|
2025-12-10 15:22:10 +09:00
|
|
|
export * from "./schema.js";
|
2025-10-03 14:26:55 +09:00
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Re-export types for convenience
|
|
|
|
|
export type {
|
|
|
|
|
InvoiceStatus,
|
|
|
|
|
InvoiceItem,
|
|
|
|
|
Invoice,
|
|
|
|
|
InvoicePagination,
|
|
|
|
|
InvoiceList,
|
|
|
|
|
InvoiceSsoLink,
|
|
|
|
|
PaymentInvoiceRequest,
|
|
|
|
|
BillingSummary,
|
|
|
|
|
InvoiceQueryParams,
|
|
|
|
|
InvoiceListQuery,
|
2025-12-10 15:22:10 +09:00
|
|
|
} from './schema.js';
|
2025-10-08 10:33:33 +09:00
|
|
|
|
|
|
|
|
// Provider adapters
|
2025-12-10 15:22:10 +09:00
|
|
|
export * as Providers from "./providers/index.js";
|
2025-10-08 13:46:23 +09:00
|
|
|
|
2025-10-08 16:31:42 +09:00
|
|
|
// Re-export provider raw types (request and response)
|
2025-10-08 13:46:23 +09:00
|
|
|
export type {
|
2025-10-08 16:31:42 +09:00
|
|
|
// Request params
|
|
|
|
|
WhmcsGetInvoicesParams,
|
|
|
|
|
WhmcsCreateInvoiceParams,
|
|
|
|
|
WhmcsUpdateInvoiceParams,
|
|
|
|
|
WhmcsCapturePaymentParams,
|
|
|
|
|
// Response types
|
2025-10-08 13:46:23 +09:00
|
|
|
WhmcsInvoiceListResponse,
|
|
|
|
|
WhmcsInvoiceResponse,
|
|
|
|
|
WhmcsCreateInvoiceResponse,
|
|
|
|
|
WhmcsUpdateInvoiceResponse,
|
|
|
|
|
WhmcsCapturePaymentResponse,
|
|
|
|
|
WhmcsCurrency,
|
|
|
|
|
WhmcsCurrenciesResponse,
|
2025-12-10 15:22:10 +09:00
|
|
|
} from "./providers/whmcs/raw.types.js";
|