/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; export type VerifyResponse = { isValid: boolean; invalidReason?: string | undefined; invalidMessage?: string | undefined; payer?: string | undefined; }; /** @internal */ export const VerifyResponse$inboundSchema: z.ZodMiniType< VerifyResponse, unknown > = z.object({ isValid: types.boolean(), invalidReason: types.optional(types.string()), invalidMessage: types.optional(types.string()), payer: types.optional(types.string()), }); export function verifyResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => VerifyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerifyResponse' from JSON`, ); }