/* * 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 GetBatchGlobals = { /** * Optional string used to pick a non-default API version to use. See our API version guide. */ shippoApiVersion?: string | undefined; }; export type GetBatchRequest = { /** * Object ID of the batch */ batchId: string; /** * The page number you want to select */ page?: number | undefined; /** * The number of results to return per page (max 100, default 5) */ results?: number | undefined; }; /** @internal */ export type GetBatchRequest$Outbound = { BatchId: string; page: number; results: number; }; /** @internal */ export const GetBatchRequest$outboundSchema: z.ZodMiniType< GetBatchRequest$Outbound, GetBatchRequest > = z.pipe( z.object({ batchId: z.string(), page: z._default(z.int(), 1), results: z._default(z.int(), 5), }), z.transform((v) => { return remap$(v, { batchId: "BatchId", }); }), ); export function getBatchRequestToJSON( getBatchRequest: GetBatchRequest, ): string { return JSON.stringify(GetBatchRequest$outboundSchema.parse(getBatchRequest)); }