/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type DepartmentUpdateRequestBody = { /** * The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. */ version: string; /** * Name of the department */ title: string; }; /** @internal */ export type DepartmentUpdateRequestBody$Outbound = { version: string; title: string; }; /** @internal */ export const DepartmentUpdateRequestBody$outboundSchema: z.ZodType< DepartmentUpdateRequestBody$Outbound, z.ZodTypeDef, DepartmentUpdateRequestBody > = z.object({ version: z.string(), title: z.string(), }); export function departmentUpdateRequestBodyToJSON( departmentUpdateRequestBody: DepartmentUpdateRequestBody, ): string { return JSON.stringify( DepartmentUpdateRequestBody$outboundSchema.parse( departmentUpdateRequestBody, ), ); }