/* * 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 TransactionRefundAllCreate = { /** * An optional reason to attach extra context to the refund requests. */ reason?: string | null | undefined; /** * An external identifier that can be used to match the refunds against your own records. */ externalIdentifier?: string | null | undefined; }; /** @internal */ export type TransactionRefundAllCreate$Outbound = { reason?: string | null | undefined; external_identifier?: string | null | undefined; }; /** @internal */ export const TransactionRefundAllCreate$outboundSchema: z.ZodType< TransactionRefundAllCreate$Outbound, z.ZodTypeDef, TransactionRefundAllCreate > = z.object({ reason: z.nullable(z.string()).optional(), externalIdentifier: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { externalIdentifier: "external_identifier", }); }); export function transactionRefundAllCreateToJSON( transactionRefundAllCreate: TransactionRefundAllCreate, ): string { return JSON.stringify( TransactionRefundAllCreate$outboundSchema.parse(transactionRefundAllCreate), ); }