/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type ForterAntiFraudOptionsCartItemBeneficiaryAddress = { /** * The country code of the beneficiary's address. */ country: string; /** * First line of the beneficiary's address. */ address1?: string | null | undefined; /** * Second line of the beneficiary's address. */ address2?: string | null | undefined; /** * Zip or postal code of the beneficiary's address. */ zip?: string | null | undefined; /** * State or region of the beneficiary's address. */ region?: string | null | undefined; /** * Company name associated with the beneficiary's address. */ company?: string | null | undefined; /** * City of the beneficiary's address. */ city?: string | null | undefined; }; /** @internal */ export type ForterAntiFraudOptionsCartItemBeneficiaryAddress$Outbound = { country: string; address1?: string | null | undefined; address2?: string | null | undefined; zip?: string | null | undefined; region?: string | null | undefined; company?: string | null | undefined; city?: string | null | undefined; }; /** @internal */ export const ForterAntiFraudOptionsCartItemBeneficiaryAddress$outboundSchema: z.ZodType< ForterAntiFraudOptionsCartItemBeneficiaryAddress$Outbound, z.ZodTypeDef, ForterAntiFraudOptionsCartItemBeneficiaryAddress > = z.object({ country: z.string(), address1: z.nullable(z.string()).optional(), address2: z.nullable(z.string()).optional(), zip: z.nullable(z.string()).optional(), region: z.nullable(z.string()).optional(), company: z.nullable(z.string()).optional(), city: z.nullable(z.string()).optional(), }); export function forterAntiFraudOptionsCartItemBeneficiaryAddressToJSON( forterAntiFraudOptionsCartItemBeneficiaryAddress: ForterAntiFraudOptionsCartItemBeneficiaryAddress, ): string { return JSON.stringify( ForterAntiFraudOptionsCartItemBeneficiaryAddress$outboundSchema.parse( forterAntiFraudOptionsCartItemBeneficiaryAddress, ), ); }