2025-10-03 14:26:55 +09:00
|
|
|
/**
|
|
|
|
|
* Payments Domain
|
2025-12-25 17:30:02 +09:00
|
|
|
*
|
2025-10-08 10:33:33 +09:00
|
|
|
* Exports all payment-related contracts, schemas, and provider mappers.
|
2025-12-25 17:30:02 +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 { PAYMENT_METHOD_TYPE, PAYMENT_GATEWAY_TYPE, type InvoicePaymentLink } from "./contract.js";
|
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 {
|
|
|
|
|
PaymentMethodType,
|
|
|
|
|
PaymentMethod,
|
|
|
|
|
PaymentMethodList,
|
|
|
|
|
PaymentGatewayType,
|
|
|
|
|
PaymentGateway,
|
|
|
|
|
PaymentGatewayList,
|
2025-12-25 17:30:02 +09:00
|
|
|
} from "./schema.js";
|
2025-10-08 10:33:33 +09:00
|
|
|
|
2025-10-03 14:26:55 +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
|
|
|
|
|
WhmcsGetPayMethodsParams,
|
|
|
|
|
// Response types
|
2025-10-08 13:46:23 +09:00
|
|
|
WhmcsPaymentMethod,
|
|
|
|
|
WhmcsPaymentMethodListResponse,
|
|
|
|
|
WhmcsPaymentGateway,
|
|
|
|
|
WhmcsPaymentGatewayListResponse,
|
2025-12-10 15:22:10 +09:00
|
|
|
} from "./providers/whmcs/raw.types.js";
|