45 lines
972 B
TypeScript

/**
* Billing Domain
*
* Exports all billing-related contracts, schemas, and provider mappers.
*
* Types are derived from Zod schemas (Schema-First Approach)
*/
// Constants
export { INVOICE_STATUS } from "./contract";
export * from "./constants";
// Schemas (includes derived types)
export * from "./schema";
// Re-export types for convenience
export type {
InvoiceStatus,
InvoiceItem,
Invoice,
InvoicePagination,
InvoiceList,
InvoiceSsoLink,
PaymentInvoiceRequest,
BillingSummary,
InvoiceQueryParams,
InvoiceListQuery,
} from './schema';
// Provider adapters
export * as Providers from "./providers";
// Re-export provider raw types and response types
export * from "./providers/whmcs/raw.types";
export type {
WhmcsInvoiceListResponse,
WhmcsInvoiceResponse,
WhmcsCreateInvoiceResponse,
WhmcsUpdateInvoiceResponse,
WhmcsCapturePaymentResponse,
WhmcsCurrency,
WhmcsCurrenciesResponse,
} from "./providers/whmcs/raw.types";