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