/* * 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 { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Acceptance acknowledgement for an asynchronous employees annual FICA wage report. Returned with HTTP 202; poll the report status endpoint using `request_uuid`. */ export type EmployeesAnnualFicaWageReportAcceptance = { /** * The UUID of the report request. Use this to poll for report completion. */ requestUuid: string; /** * The UUID of the company. */ companyUuid: string; /** * The start year for the report. */ startYear: number; /** * The end year for the report. */ endYear: number; }; /** @internal */ export const EmployeesAnnualFicaWageReportAcceptance$inboundSchema: z.ZodType< EmployeesAnnualFicaWageReportAcceptance, z.ZodTypeDef, unknown > = z.object({ request_uuid: z.string(), company_uuid: z.string(), start_year: z.number().int(), end_year: z.number().int(), }).transform((v) => { return remap$(v, { "request_uuid": "requestUuid", "company_uuid": "companyUuid", "start_year": "startYear", "end_year": "endYear", }); }); export function employeesAnnualFicaWageReportAcceptanceFromJSON( jsonString: string, ): SafeParseResult< EmployeesAnnualFicaWageReportAcceptance, SDKValidationError > { return safeParse( jsonString, (x) => EmployeesAnnualFicaWageReportAcceptance$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'EmployeesAnnualFicaWageReportAcceptance' from JSON`, ); }