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