/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import * as openEnums from "../../types/enums.js"; import { OpenEnum } from "../../types/enums.js"; export const Type = { Tangible: "TANGIBLE", NonTangible: "NON_TANGIBLE", } as const; export type Type = OpenEnum; export type ForterAntiFraudOptionsCartItemBasicItemData = { /** * Indicates whether the item is a physical good or a service/digital item. */ type?: Type | null | undefined; }; /** @internal */ export const Type$outboundSchema: z.ZodType = openEnums.outboundSchema(Type); /** @internal */ export type ForterAntiFraudOptionsCartItemBasicItemData$Outbound = { type?: string | null | undefined; }; /** @internal */ export const ForterAntiFraudOptionsCartItemBasicItemData$outboundSchema: z.ZodType< ForterAntiFraudOptionsCartItemBasicItemData$Outbound, z.ZodTypeDef, ForterAntiFraudOptionsCartItemBasicItemData > = z.object({ type: z.nullable(Type$outboundSchema).optional(), }); export function forterAntiFraudOptionsCartItemBasicItemDataToJSON( forterAntiFraudOptionsCartItemBasicItemData: ForterAntiFraudOptionsCartItemBasicItemData, ): string { return JSON.stringify( ForterAntiFraudOptionsCartItemBasicItemData$outboundSchema.parse( forterAntiFraudOptionsCartItemBasicItemData, ), ); }