ETASCOM CRM V3 - Documentation API
    Preparing search index...
    SimpleCreateOrderSchema: ZodObject<
        {
            number: ZodString;
            clientId: ZodString;
            orderDate: ZodString;
            status: ZodDefault<
                ZodEnum<
                    [
                        "DRAFT",
                        "CONFIRMED",
                        "IN_PRODUCTION",
                        "SHIPPED",
                        "DELIVERED",
                        "CANCELLED",
                    ],
                >,
            >;
            totalAmount: ZodNumber;
            currencyId: ZodOptional<ZodString>;
            salesOfferId: ZodOptional<ZodString>;
            notes: ZodOptional<ZodString>;
            lines: ZodArray<
                ZodObject<
                    {
                        id: ZodOptional<ZodString>;
                        finishedProductId: ZodOptional<ZodString>;
                        description: ZodString;
                        quantity: ZodNumber;
                        unitPrice: ZodNumber;
                        totalPrice: ZodNumber;
                        taxId: ZodOptional<ZodString>;
                        taxRate: ZodNumber;
                        taxAmount: ZodNumber;
                        deliveredQuantity: ZodNumber;
                        remainingQuantity: ZodNumber;
                        notes: ZodOptional<ZodString>;
                        sequence: ZodNumber;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        id?: string;
                        finishedProductId?: string;
                        description: string;
                        quantity: number;
                        unitPrice: number;
                        totalPrice: number;
                        taxId?: string;
                        taxRate: number;
                        taxAmount: number;
                        deliveredQuantity: number;
                        remainingQuantity: number;
                        notes?: string;
                        sequence: number;
                    },
                    {
                        id?: string;
                        finishedProductId?: string;
                        description: string;
                        quantity: number;
                        unitPrice: number;
                        totalPrice: number;
                        taxId?: string;
                        taxRate: number;
                        taxAmount: number;
                        deliveredQuantity: number;
                        remainingQuantity: number;
                        notes?: string;
                        sequence: number;
                    },
                >,
                "many",
            >;
        },
        "strip",
        ZodTypeAny,
        {
            number: string;
            clientId: string;
            orderDate: string;
            status: | "DRAFT"
            | "CANCELLED"
            | "CONFIRMED"
            | "IN_PRODUCTION"
            | "SHIPPED"
            | "DELIVERED";
            totalAmount: number;
            currencyId?: string;
            salesOfferId?: string;
            notes?: string;
            lines: {
                id?: string;
                finishedProductId?: string;
                description: string;
                quantity: number;
                unitPrice: number;
                totalPrice: number;
                taxId?: string;
                taxRate: number;
                taxAmount: number;
                deliveredQuantity: number;
                remainingQuantity: number;
                notes?: string;
                sequence: number;
            }[];
        },
        {
            number: string;
            clientId: string;
            orderDate: string;
            status?: | "DRAFT"
            | "CANCELLED"
            | "CONFIRMED"
            | "IN_PRODUCTION"
            | "SHIPPED"
            | "DELIVERED";
            totalAmount: number;
            currencyId?: string;
            salesOfferId?: string;
            notes?: string;
            lines: {
                id?: string;
                finishedProductId?: string;
                description: string;
                quantity: number;
                unitPrice: number;
                totalPrice: number;
                taxId?: string;
                taxRate: number;
                taxAmount: number;
                deliveredQuantity: number;
                remainingQuantity: number;
                notes?: string;
                sequence: number;
            }[];
        },
    > = ...