/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetCustomsDeclarationGlobals = { /** * Optional string used to pick a non-default API version to use. See our API version guide. */ shippoApiVersion?: string | undefined; }; export type GetCustomsDeclarationRequest = { /** * Object ID of the customs declaration */ customsDeclarationId: string; /** * The page number you want to select */ page?: number | undefined; }; /** @internal */ export type GetCustomsDeclarationRequest$Outbound = { CustomsDeclarationId: string; page: number; }; /** @internal */ export const GetCustomsDeclarationRequest$outboundSchema: z.ZodMiniType< GetCustomsDeclarationRequest$Outbound, GetCustomsDeclarationRequest > = z.pipe( z.object({ customsDeclarationId: z.string(), page: z._default(z.int(), 1), }), z.transform((v) => { return remap$(v, { customsDeclarationId: "CustomsDeclarationId", }); }), ); export function getCustomsDeclarationRequestToJSON( getCustomsDeclarationRequest: GetCustomsDeclarationRequest, ): string { return JSON.stringify( GetCustomsDeclarationRequest$outboundSchema.parse( getCustomsDeclarationRequest, ), ); }