2025-06-26 11:32:55 +00:00
|
|
|
import { MetadataSchema } from "@erp/core";
|
|
|
|
|
import * as z from "zod/v4";
|
|
|
|
|
|
2025-08-12 11:23:50 +00:00
|
|
|
export const GetCustomerInvoiceByIdResponseSchema = z.object({
|
2025-06-26 11:32:55 +00:00
|
|
|
id: z.uuid(),
|
|
|
|
|
invoice_status: z.string(),
|
|
|
|
|
invoice_number: z.string(),
|
|
|
|
|
invoice_series: z.string(),
|
|
|
|
|
issue_date: z.iso.datetime({ offset: true }),
|
|
|
|
|
operation_date: z.iso.datetime({ offset: true }),
|
|
|
|
|
language_code: z.string(),
|
|
|
|
|
currency: z.string(),
|
|
|
|
|
|
|
|
|
|
metadata: MetadataSchema.optional(),
|
|
|
|
|
});
|
|
|
|
|
|
2025-08-12 11:23:50 +00:00
|
|
|
export type GetCustomerInvoiceByIdResponseDTO = z.infer<
|
|
|
|
|
typeof GetCustomerInvoiceByIdResponseSchema
|
2025-06-26 11:32:55 +00:00
|
|
|
>;
|