/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; /** * The type of check stock being printed. Check the "Types of check stock" section in this [link](https://support.gusto.com/article/999877761000000/Pay-your-team-by-check) for more info on check types */ export const PrintingFormat = { Top: "top", Bottom: "bottom", } as const; /** * The type of check stock being printed. Check the "Types of check stock" section in this [link](https://support.gusto.com/article/999877761000000/Pay-your-team-by-check) for more info on check types */ export type PrintingFormat = ClosedEnum; /** * Request body for generating printable payroll checks. */ export type PrintablePayrollChecksBody = { /** * The type of check stock being printed. Check the "Types of check stock" section in this [link](https://support.gusto.com/article/999877761000000/Pay-your-team-by-check) for more info on check types */ printingFormat: PrintingFormat; /** * The starting check number we will start generating checks from. Use to override the sequence that will be used to generate check numbers. */ startingCheckNumber?: number | undefined; }; /** @internal */ export const PrintingFormat$outboundSchema: z.ZodNativeEnum< typeof PrintingFormat > = z.nativeEnum(PrintingFormat); /** @internal */ export type PrintablePayrollChecksBody$Outbound = { printing_format: string; starting_check_number?: number | undefined; }; /** @internal */ export const PrintablePayrollChecksBody$outboundSchema: z.ZodType< PrintablePayrollChecksBody$Outbound, z.ZodTypeDef, PrintablePayrollChecksBody > = z.object({ printingFormat: PrintingFormat$outboundSchema, startingCheckNumber: z.number().int().optional(), }).transform((v) => { return remap$(v, { printingFormat: "printing_format", startingCheckNumber: "starting_check_number", }); }); export function printablePayrollChecksBodyToJSON( printablePayrollChecksBody: PrintablePayrollChecksBody, ): string { return JSON.stringify( PrintablePayrollChecksBody$outboundSchema.parse(printablePayrollChecksBody), ); }