services refactor

This commit is contained in:
2025-12-17 22:17:02 +01:00
parent 26f7a2b6aa
commit 055a7f67b5
93 changed files with 7434 additions and 659 deletions

View File

@@ -0,0 +1,17 @@
import type { GetPaymentsOutputDto } from '../dtos';
import { PaymentViewModel } from '../view-models';
import { presentPayment } from './PaymentPresenter';
/**
* Payment List Presenter
*
* Transforms payment list DTOs into ViewModels for UI consumption.
*/
export class PaymentListPresenter {
/**
* Transform payment list DTO to ViewModels
*/
present(dto: GetPaymentsOutputDto): PaymentViewModel[] {
return dto.payments.map(payment => presentPayment(payment));
}
}