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