/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetReportGlobals = { merchantAccountId?: string | undefined; }; export type GetReportRequest = { /** * The ID of the report to retrieve details for. */ reportId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type GetReportRequest$Outbound = { report_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetReportRequest$outboundSchema: z.ZodType< GetReportRequest$Outbound, z.ZodTypeDef, GetReportRequest > = z.object({ reportId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { reportId: "report_id", }); }); export function getReportRequestToJSON( getReportRequest: GetReportRequest, ): string { return JSON.stringify( GetReportRequest$outboundSchema.parse(getReportRequest), ); }