2025-08-11 17:49:52 +00:00
|
|
|
import * as z from "zod/v4";
|
|
|
|
|
|
2025-08-12 11:23:50 +00:00
|
|
|
export const CreateCustomerRequestSchema = z.object({
|
2025-08-11 17:49:52 +00:00
|
|
|
id: z.uuid(),
|
2025-08-25 17:42:56 +00:00
|
|
|
reference: z.string().optional(),
|
2025-08-21 08:14:12 +00:00
|
|
|
|
2025-08-25 17:42:56 +00:00
|
|
|
is_company: z.boolean(),
|
2025-08-21 08:14:12 +00:00
|
|
|
name: z.string(),
|
|
|
|
|
trade_name: z.string(),
|
|
|
|
|
tin: z.string(),
|
|
|
|
|
|
|
|
|
|
street: z.string(),
|
|
|
|
|
city: z.string(),
|
|
|
|
|
state: z.string(),
|
|
|
|
|
postal_code: z.string(),
|
|
|
|
|
country: z.string(),
|
|
|
|
|
|
|
|
|
|
email: z.string(),
|
|
|
|
|
phone: z.string(),
|
|
|
|
|
fax: z.string(),
|
|
|
|
|
website: z.string(),
|
|
|
|
|
|
|
|
|
|
legal_record: z.string(),
|
|
|
|
|
|
2025-08-25 17:42:56 +00:00
|
|
|
default_tax: z.array(z.string()),
|
2025-08-21 08:14:12 +00:00
|
|
|
status: z.string(),
|
|
|
|
|
lang_code: z.string(),
|
|
|
|
|
currency_code: z.string(),
|
2025-08-11 17:49:52 +00:00
|
|
|
});
|
|
|
|
|
|
2025-08-12 11:23:50 +00:00
|
|
|
export type CreateCustomerRequestDTO = z.infer<typeof CreateCustomerRequestSchema>;
|