Files
gridpilot.gg/apps/website/lib/services/payments/PaymentService.ts
2026-01-16 01:00:03 +01:00

17 lines
524 B
TypeScript

import { Result } from '@/lib/contracts/Result';
import { DomainError, Service } from '@/lib/contracts/services/Service';
/**
* Payment Service - DTO Only
*
* Returns raw API DTOs. No ViewModels or UX logic.
* All client-side presentation logic must be handled by hooks/components.
*/
export class PaymentService implements Service {
constructor() {}
async getPaymentById(paymentId: string): Promise<Result<{ id: string; amount: number }, DomainError>> {
return Result.ok({ id: paymentId, amount: 0 });
}
}