/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Order's receipt data. */ export type OrderReceipt = { /** * The URL to the receipt PDF. */ url: string; }; /** @internal */ export const OrderReceipt$inboundSchema: z.ZodMiniType = z.object({ url: z.string(), }); export function orderReceiptFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OrderReceipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OrderReceipt' from JSON`, ); }