This commit is contained in:
David Arranz 2026-05-20 19:02:31 +02:00
parent 00627096ed
commit 996cf4ceb4
2 changed files with 1 additions and 15 deletions

View File

@ -13,12 +13,6 @@ export interface IProformaFinder {
transaction?: unknown
): Promise<Result<Proforma, Error>>;
findProformaByFactuGESId(
companyId: UniqueID,
factugesId: string,
transaction?: unknown
): Promise<Result<Proforma, Error>>;
proformaExists(
companyId: UniqueID,
invoiceId: UniqueID,
@ -43,14 +37,6 @@ export class ProformaFinder implements IProformaFinder {
return this.repository.getByIdInCompany(companyId, proformaId, transaction);
}
async findProformaByFactuGESId(
companyId: UniqueID,
factugesId: string,
transaction?: unknown
): Promise<Result<Proforma, Error>> {
return this.repository.getByFactuGESIdInCompany(companyId, factugesId, transaction);
}
async proformaExists(
companyId: UniqueID,
proformaId: UniqueID,

View File

@ -1,7 +1,7 @@
import { z } from "zod/v4";
export const GetProformaByIdRequestSchema = z.object({
proforma_id: z.string(),
proforma_id: z.uuid(),
});
export type GetProformaByIdRequestDTO = z.infer<typeof GetProformaByIdRequestSchema>;