18 lines
633 B
TypeScript
18 lines
633 B
TypeScript
import { z } from "zod/v4";
|
|
|
|
const ProformaTaxModeSchema = z.enum(["single", "per_line"]);
|
|
|
|
export const ProformaTaxConfigSchema = z.object({
|
|
tax_mode: ProformaTaxModeSchema,
|
|
default_iva_code: z.string().nullable(),
|
|
uses_equivalence_surcharge: z.boolean(),
|
|
default_rec_code: z.string().nullable(),
|
|
uses_retention: z.boolean(),
|
|
default_retention_code: z.string().nullable(),
|
|
});
|
|
|
|
export const ProformaTaxConfigPatchSchema = ProformaTaxConfigSchema.partial();
|
|
|
|
export type ProformaTaxConfigDTO = z.infer<typeof ProformaTaxConfigSchema>;
|
|
export type ProformaTaxConfigPatchDTO = z.infer<typeof ProformaTaxConfigPatchSchema>;
|