/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; /** * Request object for resolving a submission blocker. Each submission_blocker should include a selected unblock option. */ export type PayrollSubmissionBlockerRequestType = { /** * The type of submission_blocker that is blocking the payment. */ blockerType: string; /** * The selected option to unblock the payment's submission_blocker. */ selectedOption: string; }; /** @internal */ export type PayrollSubmissionBlockerRequestType$Outbound = { blocker_type: string; selected_option: string; }; /** @internal */ export const PayrollSubmissionBlockerRequestType$outboundSchema: z.ZodType< PayrollSubmissionBlockerRequestType$Outbound, z.ZodTypeDef, PayrollSubmissionBlockerRequestType > = z.object({ blockerType: z.string(), selectedOption: z.string(), }).transform((v) => { return remap$(v, { blockerType: "blocker_type", selectedOption: "selected_option", }); }); export function payrollSubmissionBlockerRequestTypeToJSON( payrollSubmissionBlockerRequestType: PayrollSubmissionBlockerRequestType, ): string { return JSON.stringify( PayrollSubmissionBlockerRequestType$outboundSchema.parse( payrollSubmissionBlockerRequestType, ), ); }