/* * 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 UpdateReportGlobals = { merchantAccountId?: string | undefined; }; export type UpdateReportRequest = { /** * The ID of the report to edit. */ reportId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; reportUpdate: components.ReportUpdate; }; /** @internal */ export type UpdateReportRequest$Outbound = { report_id: string; merchantAccountId?: string | null | undefined; ReportUpdate: components.ReportUpdate$Outbound; }; /** @internal */ export const UpdateReportRequest$outboundSchema: z.ZodType< UpdateReportRequest$Outbound, z.ZodTypeDef, UpdateReportRequest > = z.object({ reportId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), reportUpdate: components.ReportUpdate$outboundSchema, }).transform((v) => { return remap$(v, { reportId: "report_id", reportUpdate: "ReportUpdate", }); }); export function updateReportRequestToJSON( updateReportRequest: UpdateReportRequest, ): string { return JSON.stringify( UpdateReportRequest$outboundSchema.parse(updateReportRequest), ); }