/* * 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 DeleteBuyerGlobals = { merchantAccountId?: string | undefined; }; export type DeleteBuyerRequest = { /** * The ID of the buyer to delete. */ buyerId: string; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; /** @internal */ export type DeleteBuyerRequest$Outbound = { buyer_id: string; merchantAccountId?: string | null | undefined; }; /** @internal */ export const DeleteBuyerRequest$outboundSchema: z.ZodType< DeleteBuyerRequest$Outbound, z.ZodTypeDef, DeleteBuyerRequest > = z.object({ buyerId: z.string(), merchantAccountId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { buyerId: "buyer_id", }); }); export function deleteBuyerRequestToJSON( deleteBuyerRequest: DeleteBuyerRequest, ): string { return JSON.stringify( DeleteBuyerRequest$outboundSchema.parse(deleteBuyerRequest), ); }