/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PazeSessionReviewLinks = { /** * Follow-up link to change the selected card. */ changeCard: string | null; /** * Follow-up link to change the shipping address. */ changeShippingAddress: string | null; }; /** @internal */ export const PazeSessionReviewLinks$inboundSchema: z.ZodType< PazeSessionReviewLinks, z.ZodTypeDef, unknown > = z.object({ CHANGE_CARD: z.nullable(z.string()), CHANGE_SHIPPING_ADDRESS: z.nullable(z.string()), }).transform((v) => { return remap$(v, { "CHANGE_CARD": "changeCard", "CHANGE_SHIPPING_ADDRESS": "changeShippingAddress", }); }); export function pazeSessionReviewLinksFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PazeSessionReviewLinks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PazeSessionReviewLinks' from JSON`, ); }