/* * 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 * as components from "../components/index.js"; export type CompletePazeMobileSessionGlobals = { merchantAccountId?: string | undefined; }; export type CompletePazeMobileSessionRequest = { /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; pazeSessionCompleteRequest: components.PazeSessionCompleteRequest; }; /** @internal */ export type CompletePazeMobileSessionRequest$Outbound = { merchantAccountId?: string | null | undefined; PazeSessionCompleteRequest: components.PazeSessionCompleteRequest$Outbound; }; /** @internal */ export const CompletePazeMobileSessionRequest$outboundSchema: z.ZodType< CompletePazeMobileSessionRequest$Outbound, z.ZodTypeDef, CompletePazeMobileSessionRequest > = z.object({ merchantAccountId: z.nullable(z.string()).optional(), pazeSessionCompleteRequest: components.PazeSessionCompleteRequest$outboundSchema, }).transform((v) => { return remap$(v, { pazeSessionCompleteRequest: "PazeSessionCompleteRequest", }); }); export function completePazeMobileSessionRequestToJSON( completePazeMobileSessionRequest: CompletePazeMobileSessionRequest, ): string { return JSON.stringify( CompletePazeMobileSessionRequest$outboundSchema.parse( completePazeMobileSessionRequest, ), ); }