/* * 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 GetTransactionRefundGlobals = { merchantAccountId?: string | undefined; }; export type GetTransactionRefundRequest = { /** * The ID of the transaction */ transactionId: string; /** * 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 GetTransactionRefundRequest$Outbound = { transaction_id: string; refund_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetTransactionRefundRequest$outboundSchema: z.ZodType< GetTransactionRefundRequest$Outbound, z.ZodTypeDef, GetTransactionRefundRequest > = z.object({ transactionId: z.string(), refundId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { transactionId: "transaction_id", refundId: "refund_id", }); }); export function getTransactionRefundRequestToJSON( getTransactionRefundRequest: GetTransactionRefundRequest, ): string { return JSON.stringify( GetTransactionRefundRequest$outboundSchema.parse( getTransactionRefundRequest, ), ); }