.
This commit is contained in:
parent
00627096ed
commit
996cf4ceb4
@ -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,
|
||||
|
||||
@ -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>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user