import { AmountSchema, MetadataSchema, PercentageSchema, QuantitySchema } from "@erp/core"; import * as z from "zod/v4"; export const GetCustomerInvoiceByIdResponseSchema = z.object({ id: z.uuid(), company_id: z.uuid(), invoice_number: z.string(), status: z.string(), series: z.string(), issue_date: z.string(), operation_date: z.string(), notes: z.string(), language_code: z.string(), currency_code: z.string(), items: z.array( z.object({ position: z.string(), description: z.string(), quantity: QuantitySchema, unit_price_amount: AmountSchema, discount: PercentageSchema, total_amount: AmountSchema, }) ), metadata: MetadataSchema.optional(), }); export type GetCustomerInvoiceByIdResponseDTO = z.infer< typeof GetCustomerInvoiceByIdResponseSchema >;