/* * 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 GetTransactionRefundSettlementGlobals = { merchantAccountId?: string | undefined; }; export type GetTransactionRefundSettlementRequest = { /** * The unique identifier of the transaction. */ transactionId: string; /** * The unique identifier of the refund settlement. */ settlementId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type GetTransactionRefundSettlementRequest$Outbound = { transaction_id: string; settlement_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const GetTransactionRefundSettlementRequest$outboundSchema: z.ZodType< GetTransactionRefundSettlementRequest$Outbound, z.ZodTypeDef, GetTransactionRefundSettlementRequest > = z.object({ transactionId: z.string(), settlementId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { transactionId: "transaction_id", settlementId: "settlement_id", }); }); export function getTransactionRefundSettlementRequestToJSON( getTransactionRefundSettlementRequest: GetTransactionRefundSettlementRequest, ): string { return JSON.stringify( GetTransactionRefundSettlementRequest$outboundSchema.parse( getTransactionRefundSettlementRequest, ), ); }