Uecko_ERP/modules/customer-invoices/src/common/dto/shared/issued-invoices/issued-invoice-recipient-summary.dto.ts

17 lines
544 B
TypeScript
Raw Normal View History

2026-04-20 17:20:42 +00:00
import { CountryCodeSchema, PostalCodeSchema, TinSchema } from "@erp/core";
import { z } from "zod/v4";
export const IssuedInvoiceRecipientSummarySchema = z.object({
id: z.uuid(),
tin: TinSchema,
name: z.string(),
street: z.string().nullable(),
street2: z.string().nullable(),
city: z.string().nullable(),
province: z.string().nullable(),
postal_code: PostalCodeSchema.nullable(),
country: CountryCodeSchema.nullable(),
});
export type IssuedInvoiceRecipientSummaryDTO = z.infer<typeof IssuedInvoiceRecipientSummarySchema>;