diff --git a/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts b/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts index 39a3e048..3bbe2aae 100644 --- a/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts +++ b/modules/customer-invoices/src/api/application/proformas/services/proforma-finder.ts @@ -13,12 +13,6 @@ export interface IProformaFinder { transaction?: unknown ): Promise>; - findProformaByFactuGESId( - companyId: UniqueID, - factugesId: string, - transaction?: unknown - ): Promise>; - 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> { - return this.repository.getByFactuGESIdInCompany(companyId, factugesId, transaction); - } - async proformaExists( companyId: UniqueID, proformaId: UniqueID, diff --git a/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts b/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts index fb74d29d..db223070 100644 --- a/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts +++ b/modules/customer-invoices/src/common/dto/request/proformas/get-proforma-by-id.request.dto.ts @@ -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;