/* * 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 LatitudeOptions = { /** * The `promotionReference` field passed to the purchase API. */ promotionReference?: string | null | undefined; }; /** @internal */ export type LatitudeOptions$Outbound = { promotion_reference?: string | null | undefined; }; /** @internal */ export const LatitudeOptions$outboundSchema: z.ZodType< LatitudeOptions$Outbound, z.ZodTypeDef, LatitudeOptions > = z.object({ promotionReference: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { promotionReference: "promotion_reference", }); }); export function latitudeOptionsToJSON( latitudeOptions: LatitudeOptions, ): string { return JSON.stringify(LatitudeOptions$outboundSchema.parse(latitudeOptions)); }