/* * 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 CustomerOrderReceipt = { /** * The URL to the receipt PDF. */ url: string; }; /** @internal */ export const CustomerOrderReceipt$inboundSchema: z.ZodMiniType< CustomerOrderReceipt, unknown > = z.object({ url: z.string(), }); export function customerOrderReceiptFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => CustomerOrderReceipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CustomerOrderReceipt' from JSON`, ); }