/* * 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 AddReportGlobals = { merchantAccountId?: string | undefined; }; export type AddReportRequest = { /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; reportCreate: components.ReportCreate; }; /** @internal */ export type AddReportRequest$Outbound = { merchantAccountId?: string | null | undefined; ReportCreate: components.ReportCreate$Outbound; }; /** @internal */ export const AddReportRequest$outboundSchema: z.ZodType< AddReportRequest$Outbound, z.ZodTypeDef, AddReportRequest > = z.object({ merchantAccountId: z.nullable(z.string()).optional(), reportCreate: components.ReportCreate$outboundSchema, }).transform((v) => { return remap$(v, { reportCreate: "ReportCreate", }); }); export function addReportRequestToJSON( addReportRequest: AddReportRequest, ): string { return JSON.stringify( AddReportRequest$outboundSchema.parse(addReportRequest), ); }