18 lines
525 B
TypeScript
18 lines
525 B
TypeScript
import { MetadataSchema } from "@erp/core";
|
|
import * as z from "zod/v4";
|
|
|
|
export const CustomerCreationResponseSchema = z.object({
|
|
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(),
|
|
});
|
|
|
|
export type CustomerCreationResponseDTO = z.infer<typeof CustomerCreationResponseSchema>;
|